📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

Method: POST /walletsolidity/getblockbynum

dropdown

Method REST /walletsolidity/getblockbynum example for Tron (TRX)

POST /walletsolidity/getblockbynum

Method not allowed

Queries whether a specified block is confirmed. If the block can be obtained, the block is confirmed by the network; if the block cannot be obtained, the block is not confirmed by the network

Parameters

num - int32

Request

curl --location --request POST 'https://trx.getblock.io/walletsolidity/getblockbynum' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"num": 47963997}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}