POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getblock
wallet/getblock
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblock \
  --header 'Content-Type: application/json' \
  --data '{
  "id_or_num": "66677878",
  "detail": true,
  "visible": true
}'
{
  "blockID": "<string>",
  "block_header": {
    "raw_data": {},
    "witness_signature": "<string>"
  },
  "transactions": [
    {}
  ]
}
TRON API method that retrieves detailed block information from the TRON blockchain by block number or block hash.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • id_or_num — block hash (as hex string) or block number to retrieve
  • detail — optional boolean. When true, returns detailed transaction information. Default is false.
  • visible — optional boolean parameter. When set to true, addresses are in base58 format. Default is false.

Response

  • blockID — the block hash
  • block_header — block header information including:
    • raw_data — raw header data with timestamp, number, parent hash, etc.
    • witness_signature — block producer signature
  • transactions — array of transactions in the block (detailed if detail=true)

Use case

The wallet/getblock method is used for:
  • Retrieving specific block information for analysis
  • Building block explorers and blockchain visualization tools
  • Verifying block contents and transaction inclusion
  • Monitoring blockchain state at specific block heights
  • Analyzing block production patterns and timing

Body

application/json

Response

200 - application/json

Block information

The response is of type object.