eth_getTransactionByBlockHashAndIndex
Returns information about a transaction by block hash and transaction index position.
Parameters
Blockhash
- hash of the requested block.Index position
of the transaction in hex code.
Sample Request
curl https://lb.nodies.app/v1/<INSERT URL> \
-H "x-api-key: <API-KEY>" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockHashAndIndex",
"params": [
"0x0d63c4917b5666e99af85d4416db156b96be79de15b14aec8fc74494d3a18ec5",
"0x0"
]
}'
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x0d63c4917b5666e99af85d4416db156b96be79de15b14aec8fc74494d3a18ec5",
"blockNumber": "0x1575288",
"from": "0xdec166ba01a6dbd50b624bd1eb6c676da71ec361",
"gas": "0x5e7d9",
"gasPrice": "0x22ecb25c00",
"hash": "0x0229e9db67c7f0137ee19e291b5a86ae8b45cfc840ffa12f2f7eb36a61d48172",
"input": "0xc9bf72b66d3632324437304e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000003b4e0000000000000000000000000000000000000000000000000000000000025a3700000000000000000000000000000000000000000000000000000000000016e2000000000000000000000000000000000000000000000000000000000000f97c0000000000000000000000000000000000000000000000000000000000026ed9000000000000000000000000000000000000000000000000000000000000296e000000000000000000000000000000000000000000000000000000000002502d00000000000000000000000000000000000000000000000000000000000157ae00000000000000000000000000000000000000000000000000000000000036690000000000000000000000000000000000000000000000000000000000009296000000000000000000000000000000000000000000000000000000000001ee7f000000000000000000000000000000000000000000000000000000000001f72c",
"nonce": "0xbbc43",
"to": "0x89aac1f5ccdd54dd8a09e5c858f19a665e4fa32b",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"chainId": "0x89",
"v": "0x135",
"r": "0x5328ec99b23e1b852e5b84d4af9766b520f746b2bd312fdedd087fc454bdb735",
"s": "0x6fc0e1fe03b7fdc5bd90af3023d8548395df1ee4c4c50cdd95a0a45415da0370"
}
}
Last updated