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
May 3, 2024

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:
tx
object
The tx object which contains the following fields:
nonce
string
The nonce or transaction count of the sender's account
gasPrice
string
The gas price specified by the sender in wei
gas
string
The gas limit or maximum amount of gas that can be used for executing the transaction
to
string
The recipient address of the transaction
value
string
The amount of Ether sent with the transaction
input
string
The data or input parameters for the transaction, typically encoded as hexadecimal
hash
string
The hash of the transaction
blockNumber
string
The block number in which the transaction was included
blockHash
string
The hash of the block in which the transaction was included
from
string
The sender's address
transactionIndex
string
The index of the transaction within the block
receipt
object
The receipt object which contains the following fields:
gasUsed
string
The amount of gas used by the transaction
status
string
The status of the transaction
logs
array
An array of log objects generated by the transaction. Each log object contains:
address
string
The address of the contract that emitted the log
topics
string
An array of up to four 32-byte log topics
data
string
The data portion of the log
blockNumber
string
(Optional) The block number where this log was in. null when it's a pending log
transactionHash
string
(Optional) The hash of the transactions this log was created from. null when its a pending log
transactionIndex
string
(Optional) The integer of the transaction's index position that the log was created from. null when it's a pending log
blockHash
string
(Optional) The hash of the block where this log was in. null when it's a pending log
logIndex
string
(Optional) The integer of the log index position in the block. null when it's a pending log
removed
boolean
(Optional) It is true when the log was removed due to a chain reorganization, and false if it's a valid log
Request
1
curl --location 'https://docs-demo.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "bb_getTxSpecific",
5
"params": [
6
"0xd5ab71b461328b84ade881cdb8fb923ba9254abf5e290f8f7b3299082fb5218f"
7
],
8
"id": 1,
9
"jsonrpc": "2.0"
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free