Docs

wallet/getblockbynum - Get TRON Block by Height

Get TRON block information by height number including transactions and block header via Dwellir's optimized RPC endpoint.

Get block information by block height number.

Endpoint

Text
POST /wallet/getblockbynum

Request Parameters

Request
numnumber

Required parameter: Block height number

Response Body

Response
resultOBJECT

`blockID` - Block hash `block_header` - Block header information `raw_data` - Raw block data `number` - Block height `txTrieRoot` - Transaction trie root `witness_address` - Block producer address `parentHash` - Parent block hash `timestamp` - Block timestamp `witness_signature` - Witness signature `transactions` - Array of transactions in the block

Implementation Examples

Bash
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getblockbynum \
  -H "Content-Type: application/json" \
  -d '{
    "num": 58234567
  }'

Use Cases

  • Block Explorer: Display block details and transactions
  • Transaction Verification: Confirm transaction inclusion
  • Chain Analysis: Analyze block production patterns
  • Data Indexing: Index historical blockchain data
  • Network Monitoring: Track block production rate