Skip to main content

bb_gettxspecific RPC Method

Returns transaction data in the exact format as returned by backend, including all coin specific fields.

Updated on
Nov 17, 2023

bb_gettxspecific RPC Method

Please note that this RPC method requires the Blockbook RPC add-on enabled on your QuickNode endpoint.

Parameters

txid
string
REQUIRED
The transaction id

Returns

result
object
The result object with the following fields:
txid
string
The transaction id
hash
string
The hash of the transaction
version
integer
The block version
size
integer
The size of the block in bytes
vsize
integer
The virtual size of the transaction in bytes (read more)
weight
integer
The transaction's weight (between vsize*4 - 3 and vsize*4)
lockTime
integer
The earliest time a transaction could have been mined into a block.
vin
array
An array of transaction objects used as inputs for the current transaction
coinbase
string
The coinbase field for the input, which is the input script for the generation transaction
txinwitness
array
The witness data for the transaction input
sequence
integer
The sequence number for the input
vout
array
An array containing information about each output from the transaction
value
integer
The value in BTC
n
integer
The output index
scriptPubKey
object
A JSON object containing information about the PubKey script
asm
string
The script public key in the form of string
desc
string
The inferred descriptor for the output
hex
string
The hex of the script's public key in string format
address
string
The Bitcoin address
type
string
The type of script, e.g. pubkeyhash, multisig
hex
string
The hexadecimal representation of the transaction
blockHash
string
The hash of the block at which the transaction was included
confirmations
integer
The number of confirmations since this transaction was included in a block
time
integer
The block time expressed in UNIX epoch time
blockTime
integer
The unix timestamp of when the block was confirmed
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "bb_gettxspecific", "params": ["1c0a0c55a91c658688f3a9673b6f4ddb37e36b7160be93cb79dc1f507772834e"]}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free