/walletsolidity/getblockbylimitnext - Tron
Example code for the getblockbylimitnext Solidity API method. Complete guide on how to use getblockbylimitnext Solidity API method in GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/getblockbylimitnext' \
--header 'Content-Type: application/json' \
--data-raw '{
"startNum": 68000000,
"endNum": 68000005
}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/getblockbylimitnext',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"startNum": 68000000, "endNum": 68000005})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/getblockbylimitnext',
headers={'Content-Type': 'application/json'},
json={"startNum": 68000000, "endNum": 68000005}
)
print(response.json())Response
{
"block": [
{
"blockID": "0000000002f3a5b0f6d2e6c9a1b4e7f0a3b6c9d2e5f8a1b4c7d0e3f6a9b2c5d8",
"block_header": {
"raw_data": {
"number": 68000000,
"timestamp": 1719400000000
}
}
}
]
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Was this helpful?