Docs

eth_getBlockByHash - TRON RPC Method

Retrieve complete block data by block hash on TRON. Essential for TRON developers building payment rails, exchanges, and consumer crypto applications building on the TVM-compatible Layer 1 for TRC-20 payments, wallet APIs, and low-cost smart contract execution.

Returns information about a block by hash on TRON.

Why TRON? Build on the TVM-compatible Layer 1 for TRC-20 payments, wallet APIs, and low-cost smart contract execution with TVM compatibility paired with native TRON wallet APIs, DPoS block production, and low-cost transaction flows.

Use Cases

The eth_getBlockByHash method is essential for:

  • Block verification - Verify block data using its unique hash
  • Chain reorganization handling - Track blocks during reorgs
  • Cross-chain bridges - Verify block finality for TRC-20 transfers, wallet operations, and EVM-compatible smart contract integrations
  • Deterministic queries - Get consistent block data regardless of chain state

Sample Freshness

Use a recent block hash when you copy these examples into your own tooling. Shared RPC infrastructure can return null if the block is no longer available on the node you are querying, so replace placeholders with a fresh block hash when you test or automate against this method later.

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid block hash format
-32000Block not foundBlock with this hash does not exist