POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockHashAndIndex
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getTransactionByBlockHashAndIndex \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByBlockHashAndIndex",
  "params": [
    "00000000020ef11c87517739090601aa0a7be1de6faebf35ddb14e7ab7d1cc5b",
    "0x0"
  ],
  "id": "<string>"
}'
{
  "jsonrpc": "2.0",
  "id": 64,
  "result": {}
}
TRON API method that returns information about a transaction by block hash and transaction index using Ethereum-compatible JSON-RPC format. This method provides Ethereum tooling compatibility for retrieving specific transactions from blocks on TRON.
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_getTransactionByBlockHashAndIndex”)
  • params — array containing method parameters
    • blockHash — the hash of the target block as a hexadecimal string
    • transactionIndex — the transaction index position in the block as a hexadecimal string
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — transaction object with Ethereum-compatible fields or null if not found

Use case

The jsonrpc eth_getTransactionByBlockHashAndIndex method is used for:
  • Retrieving specific transactions from blocks using Ethereum-compatible tools
  • Building block explorers and transaction analysis tools for TRON
  • Supporting Ethereum-based indexing and analytics applications on TRON
  • Enabling precise transaction lookups by block hash and position

Body

application/json

Response

200 - application/json

Transaction object or null if not found

The response is of type object.