eth_getTransactionByBlockHashAndIndex

Returns information about a transaction by block hash and transaction index position.

Parameters

  1. Blockhash - hash of the requested block.

  2. 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": [
    "0x608c43455eaed1452685b73576b7571cad171804f037b18773a7b36a5972d327",
    "0x0"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x608c43455eaed1452685b73576b7571cad171804f037b18773a7b36a5972d327",
    "blockNumber": "0x1180caf",
    "from": "0xb4cae3da1c04abcbbd8c25186343c850d5b2207d",
    "gas": "0x56afa",
    "gasPrice": "0x2aa12fda2",
    "hash": "0xe70371f811385314446b79818815b6bdc565a961d86fc1fc236334e4bab7be29",
    "input": "0x70fef1da0000000000000000000000000ed024d39d55e486573ee32e583bc37eb5a6271f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000001f123bd9e55f7ef7d3653688cf2248ef4d7f8394000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005200a0e9b161bc59feecb165fe2592bef3e1847a000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000652b674f0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0xc0",
    "to": "0xdb5889e35e379ef0498aae126fc2cce1fbd23216",
    "transactionIndex": "0x0",
    "value": "0x0",
    "type": "0x0",
    "chainId": "0x1",
    "v": "0x26",
    "r": "0x2e41fb3ec4029846ad78370d55732aaf5372a64e77baa7a6fb732416bee310ea",
    "s": "0x5612b23a7788ba0fd8bdfdcbd9ca0e3ca8b7e56bc26b12af8c8708bb20734d20"
  }
}

Last updated