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/getblockbynum - Get TRON Block by Height

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

TRON RPC endpoint: endpoint URLs, plans and pricing.

Get block information by block height number.

Endpoint

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

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

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.

On this page

EndpointImplementation ExamplesUse CasesRelated Methods