eth_getTransactionByBlockHashAndIndex
Returns information about a transaction by block hash and transaction index position.
Parameters
Returns
Request
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockHashAndIndex",
"params": ["0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", "0x0"],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
"blockNumber": "0x1b4",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"gas": "0x76c0",
"gasPrice": "0x2540be400",
"hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b",
"input": "0x",
"nonce": "0x15",
"to": "0x87265f0e8b7b9b5f7e1a8e4d2c6f9a1b3e8d7c6a",
"transactionIndex": "0x0",
"value": "0xde0b6b3a7640000"
}
}
Last updated