Skip to main content

/wallet/getblockbylimitnext REST API Endpoint

Returns the list of Block Objects included in the 'Block Height' range specified.

Updated on
Oct 4, 2023

/wallet/getblockbylimitnext REST API Endpoint

Body Parameters

startNum
integer
REQUIRED
The starting block height, including this block
endNum
integer
REQUIRED
The ending block height, excluding that block

Returns

blocks
An array of blocks
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
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbylimitnext \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"startNum": 1,
7
"endNum": 5
8
}
9
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free