eth_getTransactionByBlockNumberAndIndex
Returns the information about a transaction requested by Block number and index.
Last updated
Was this helpful?
Returns the information about a transaction requested by Block number and index.
Last updated
Was this helpful?
Was this helpful?
// Request
curl https://t3rn.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params":["latest", "0x0"],"id":1}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x39a25ab43d931a80ef6fe3782b216d383a93601126d7e8c6790f462f0ac651d3",
"blockNumber": "0x31245d",
"from": "0x00000000000000000000000000000000000a4b05",
"gas": "0x0",
"gasPrice": "0x0",
"hash": "0x12b710c61e07c4b8fb50cf94e38ca78b4dc0c6169f21d6a94da8b48ccd404eba",
"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007a9007000000000000000000000000000000000000000000000000000000000031245d0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0",
"to": "0x00000000000000000000000000000000000a4b05",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x6a",
"chainId": "0x14e",
"v": "0x0",
"r": "0x0",
"s": "0x0"
}
}