API Reference

eth_getTransactionByBlockHashAndIndex - DogeOS

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

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

PARAMETERS

  1. Block Hash - (required) A 32-byte block hash.
  2. Transaction Index - (required) An integer of the transaction index position.

REQUEST

{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByBlockHashAndIndex",
  "params": [
    "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
    "0x0"
  ],
  "id": 0
}

RESPONSE

See eth_getTransactionByHash.

{
  "jsonrpc": "2.0",
  "id": 0,
  "result": {
    "blockHash": "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
    "blockNumber": "0x2fa00",
    "from": "0x871f1181aa63c988325539cf4b502e092595b50e",
    "gas": "0xa21b",
    "gasPrice": "0xef426c",
    "maxFeePerGas": "0x1de8474",
    "maxPriorityFeePerGas": "0x64",
    "hash": "0x493650c1985b3bd12dccb9a70edaa6cd70366d0acdb13af5343c1a31f1272aa9",
    "input": "0x39455d3a000000000000000000000000000000000000000000000000000000000016e3600000000000000000000000000000000000000000000000000000000004679ef9",
    "nonce": "0x59c",
    "to": "0x5300000000000000000000000000000000000002",
    "transactionIndex": "0x0",
    "value": "0x0",
    "type": "0x2",
    "accessList": [],
    "chainId": "0x5fdaf3",
    "v": "0x1",
    "r": "0x4ad08a9517142acddf1cdd461040bfd19e84d6d9ee39f65476febe76d59eff1",
    "s": "0x25b0ee4a429bc006447b4d9b01e745c906553464e204cb2b531d0cc4ac687760",
    "yParity": "0x1"
  }
}
Language
Click Try It! to start a request and see the response here!