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

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x656fcfdec6065b932607243d2fab1e80963454f7e058af1238a0f8aa62598ad8",
    "blockNumber": "0x6b330b",
    "from": "0xe93685f3bba03016f02bd1828badd6195988d950",
    "gas": "0x123ff4",
    "gasPrice": "0x47868c00",
    "hash": "0x051b249d53cda6b02b0fc73f822bf09ddba19d2f1917ef7c7802fef19c99549c",
    "input": "0x0508941e00000000000000000000000000000000000000000000000000000000000000a500000000000000000000000004866796aabb6b58e6bc4d91a2ae99105b2c58ae000000000000000000000000000000000000000000000000000000000003d090c7035aad2e0c8cdc3c0e7911c7b1cda5d672a8c06c6551606349c5475e0ca066c7035aad2e0c8cdc3c0e7911c7b1cda5d672a8c06c6551606349c5475e0ca06600000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5650ec938eda846e1ee3518f75a457382af52020000000000000000000000000000000000000000000000000000000000000094000000000000000000000000042b8289c97896529ec2fe49ba1a8b9c956a86cc00000000000002d400a56dd28c2c5b91dd63b4d4e78ecac713987837176800b104866796aabb6b58e6bc4d91a2ae99105b2c58ae000000000000000000000000a5650ec938eda846e1ee3518f75a457382af52020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0xc2718",
    "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
    "transactionIndex": "0x0",
    "value": "0xf8b0a10e470000",
    "type": "0x0",
    "chainId": "0x8ae",
    "v": "0x1180",
    "r": "0xbed76996fdeb5154f113b744401328068937c120eba436ca90f3af2295b5aa9",
    "s": "0x22a36da73871fa96c1b70c31232866346041eed8c59c2ab33fc50e0eb4779909"
  }
}

Last updated