eth_getTransactionByBlockNumberAndIndex
POST https://mainnet.valuechain.xyz
Returns the transaction at an index in a block identified by number or tag.
Parameters
Name
Type
Required
Description
block
quantity or tag
Yes
Hex block number, or earliest, latest, safe, finalized, or pending. See block tags.
index
quantity
Yes
Transaction index.
Result
Transaction (object or null): Transaction object, or null if the index is out of range.
Example
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d",
"blockHash": "0x565381ec3a896e084662587ed4eba8f3b6745ffeff7b1d7b672b4b1bb724f3b5",
"blockNumber": "0xd81e9f",
"transactionIndex": "0x0"
}
}Code examples
cURL
JavaScript
Python
Last updated