POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_getBlockByHash
eth_getBlockByHash
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getBlockByHash \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getBlockByHash",
  "id": 1,
  "params": [
    "0x1b4",
    true
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
TRON API method that returns detailed block information by block hash, providing an Ethereum-compatible interface for accessing TRON blockchain data.
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

  • jsonrpc — the JSON-RPC protocol version (always “2.0”)
  • method — the method name (always “eth_getBlockByHash”)
  • params — array containing method parameters
    • blockHash — the block hash as a hex string
    • fullTransactionObjects — boolean indicating whether to return full transaction objects (true) or just transaction hashes (false)
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — block object containing block information including hash, number, parent hash, timestamp, transactions, and other block metadata

Use case

The jsonrpc eth_getBlockByHash method is used for:
  • Retrieving specific block information when you know the block hash through Web3 interfaces
  • Verifying block data integrity and exploring blockchain structure
  • Building block explorer functionality that allows hash-based block lookups
  • Implementing transaction confirmation logic that tracks specific blocks

Body

application/json

Response

200 - application/json

Block information including transactions

The response is of type object.