Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported ChainsTRONTRON HTTP API

wallet/getblockbyid - Get TRON Block by Hash

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

TRON RPC endpoint: endpoint URLs, plans and pricing.

Get block information by block hash ID.

Endpoint

Text
POST /wallet/getblockbyid
cURL request
# Get block by hash ID
    curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getblockbyid \
      -H "Content-Type: application/json" \
      -d '{
        "value": "0000000003787ac74d9bb8f8c9c59ac3f3e3b9b8c9e3e8f9c8d7e8f9c8d7e8f9"
      }'

    # Get block with full transaction details
    curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getblockbyid \
      -H "Content-Type: application/json" \
      -d '{
        "value": "0000000003787ac74d9bb8f8c9c59ac3f3e3b9b8c9e3e8f9c8d7e8f9c8d7e8f9",
        "detail": true
      }'

Implementation Examples

Use Cases

  • Block Verification: Verify block contents by hash
  • Transaction Confirmation: Confirm transaction inclusion in specific block
  • Chain Reorganization Detection: Monitor for block hash changes
  • Block Explorer: Display block details by hash
  • Forensic Analysis: Investigate specific blocks

Related Methods

  • wallet/getblockbynum - Get block by height
  • wallet/getblockbylatestnum - Get recent blocks
  • wallet/getnowblock - Get latest block
  • wallet/gettransactionbyid - Get transaction details

wallet/getblockbynum

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

wallet/getblockbylatestnum

Get multiple recent TRON blocks by specifying a range from the latest block via Dwellir's high-performance RPC endpoint.

On this page

EndpointImplementation ExamplesUse CasesRelated Methods