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 14, 2024

bb_getTxSpecific RPC Method

Please note that this RPC method requires the Base Blockbook JSON-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
l1Fee
string
The transaction fee on Layer 1 in hexadecimal format
l1FeeScalar
string
A scalar multiplier applied to the L1 fee to adjust it according to specific parameters or scaling factors defined by the Layer 1 protocol
l1GasPrice
string
The gas price on Layer 1, provided in hexadecimal format
l1GasUsed
string
The amount of gas used on Layer 1 for the transaction, expressed in hexadecimal
Request
1
curl --location 'https://docs-demo.base-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "bb_getTxSpecific",
5
"params": [
6
"0x1dbde63190df25dc002c8bae5d93fd7449d009fb103fb67bb756726365859add"
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