eth_getTransactionByBlockHashAndIndex
POST
Returns transaction information by block hash and transaction index.
📘 The TRON protocol has no concept of an Ethereum account nonce.
To satisfy the JSON-RPC QUANTITY type, nonce is always returned as a fixed 0x0.
param[0]
blockHashstringrequired
The 32-byte hash of the block to look up.param[1]
transactionIndexstringrequired
The transaction index within the block. Pass it in hexadecimal.Responses
hashstring
The transaction hash.blockHashstring
The hash of the block containing the transaction.blockNumberstring
The number of the block containing the transaction.transactionIndexstring
The transaction index within the block.fromstring
The address of the account that sent the transaction.tostring
The address of the account or contract that received the transaction.valuestring
The amount of TRX transferred, in sun, hex-encoded.gasstring
The fee limit set on the transaction. TRON may return 0x0.gasPricestring
The energy price, in sun.inputstring
The contract call data. For a plain transfer it is 0x.noncestring
The transaction nonce.The TRON protocol has no concept of an Ethereum account nonce, so it is always returned as a fixed 0x0.typestring
The transaction type. TRON returns 0x0.vstring
The recovery identifier of the signature.rstring
The r value of the signature.sstring
The s value of the signature.codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "ERROR_CODE","message": "Unauthorized"}
cURL
curl -X POST 'https://tron-mainnet.nodit.io' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{"jsonrpc": "2.0","id": 1,"method": "eth_getTransactionByBlockHashAndIndex","params": ["0x00000000020ef11c87517739090601aa0a7be1de6faebf35ddb14e7ab7d1cc5b","0x0"]}'