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
POST /wallet/getblockbynumRequest Parameters
Required parameter: Block height number
Response Body
`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
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
Related Methods
- wallet/getnowblock - Get latest block
- wallet/gettransactionbyid - Get transaction details
- wallet/getaccount - Get account information
wallet/getnowblock
Get the latest block information from TRON network including block number, transactions, and timestamp via Dwellir's lightning-fast RPC endpoints.
wallet/getblockbyid
Get TRON block information by block hash ID including transactions and block header via Dwellir's optimized RPC endpoint.