Skip to main content

bb_getTx RPC Method

Returns transaction object for the transaction hash.

Updated on
Nov 14, 2024

bb_getTx 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 details of the result
txid
The transaction id
version
The transaction version
vin
An array of transaction objects used as inputs for the current transaction
txid
The transaction id
vout
The output index
sequence
The transaction sequence
n
The nonce of this transaction
addresses
An array of addresses in this transaction
isAddress
Boolean value of whether there is an address or not
value
The value of this transaction in satoshis
vout
An array of output transaction objects for the current transaction
value
The value of this transaction in satoshis
n
The nonce of this transaction
spent
Boolean value of whether the transaction has been spent
hex
The raw hexadecimal representation of the transaction
addresses
An array of addresses in this transaction
isAddress
Boolean value of whether there is an address or not
blockHash
The hash of the block at which the transaction was included
blockHeight
The block height at which the transaction output was created
confirmations
The number of confirmations since this transaction was included in a block
blockTime
The unix timestamp of when the block was confirmed
size
The size of the transaction in bytes
vsize
The virtual size of the transaction in bytes (read more)
value
The total value of the transaction in satoshis
valueIn
The value transmitted in the transaction less fees denominated in satoshis
fees
The fees for the transaction denominated in satoshis
hex
The raw hexadecimal representation of the transaction
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "bb_getTx", "params": ["8970770f2069d60d6ff0f8f405a702b0caac03ce418061fd4af7326ba2e67810"]}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free