Skip to main content

/wallet/getblockbyid REST API Endpoint

Returns the block by ID(block hash).

Updated on
Oct 4, 2023

/wallet/getblockbyid REST API Endpoint

Body Parameters

num
integer
REQUIRED
The block height

Returns

blockID
The block hash
block_header
The balance of the account
raw_data
The size of the energy window associated with a blockchain account
number
The block number
txTrieRoot
The root of transaction merkle tree
witness_address
The witness address
parentHash
The parent block hash
accountStateRoot
The root of account state tree
witness_id
The witness id
version
The version of the block
timestamp
The block timestamp
witness_signature
The signature of the witness, ensuring the integrity and authenticity of the block
transactions
The transaction object with the following fields:
ret
The result of the transaction
contractRet
The contract result of the transaction
signature
The signature associated with the contract
txID
The transaction id
raw_data
The raw transaction data, including the contract and its parameters
contract
The details of the smart contract involved in the transaction
parameter
The parameter of the smart contract function being called in the transaction
value
The value object containing following fields:
data
The data associated with the contract
owner_address
The address of the owner of the token being transferred
contract_address
The address of the contract
type_url
The type of data being represented by the parameter or output
type
The type of smart contract
ref_block_bytes
The bytes of the previous block hash
ref_block_hash
The hash of the previous block
expiration
The expiration time of the transaction
fee_limit
The maximum fee limit for the transaction
timestamp
The timestamp of the transaction
raw_data_hex
The raw transaction data, encoded in hexadecimal format
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbyid \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"value": "00000000000f424013e51b18e0782a32fa079ddafdb2f4c343468cf8896dc887"
7
}
8
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free