Tronscan 波场网站标志Tronscan 波场

TRON API Returns the Genesis Block? Check the num Parameter

,

If TRON’s walletsolidity/getblockbynum returns the genesis block, check the JSON request body. Leaving out num selects height zero. To fetch the latest solidified block, use the dedicated getnowblock endpoint.

TRON API comparison showing an omitted num parameter and explicit zero returning the genesis block

A reproducible Mainnet comparison

On 19 November 2026, two POST requests to https://api.trongrid.io/walletsolidity/getblockbynum returned the same block ID. One body was {}; the other was {"num":0}.

The full returned ID was 00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc. This comparison checks the endpoint’s default behaviour. It does not measure synchronization speed or establish the latest chain height.

The official GetBlockByNum reference documents the default. Its displayed host is Shasta, so use the Mainnet host above when repeating this particular case.

Choose the request that answers your question

Question Request Check
What is at a known height? getblockbynum with an explicit num Returned block ID and header
What is the latest solidified block? walletsolidity/getnowblock Header height and timestamp
Did the call return a usable block? Inspect the response body Expected fields and errors

Check the payload before retrying

  1. Record the host, endpoint and actual outgoing JSON body.
  2. Send an explicit integer in num for a height query.
  3. Compare the returned block ID with the intended height and network.
  4. Inspect the JSON body even when HTTP status is 200. An Error field or empty object needs investigation.

The official block structure guide explains the block ID and header fields. For the broader network model, see our TRON network guide.

Frequently asked questions

Does an empty request mean the latest block?

For this height-query endpoint, it selects height zero. Use getnowblock for the latest block in the selected node view.

Why do two networks need separate checks?

Mainnet and testnet have separate histories. Record the host as well as the height when comparing results.

Is HTTP 200 enough to accept a block?

Read the JSON body and confirm the expected block fields. Parameter errors may also arrive with HTTP 200.

Can an empty object prove the block never existed?

The reference lists several possible causes, including synchronization or historical-data availability. Preserve the response and check the requested height before drawing a conclusion.

Does the block body include a transaction receipt?

Transaction bodies and execution receipts are separate records. Query the receipt by transaction ID when checking execution, fees or events.