Azxa
← Linea overview

Linea · debug

debug_getRawReceipts

Returns an array of EIP-2718 binary-encoded receipts.

Parameters

  • Block required
    Schema
    {
      "title": "Block number or tag",
      "oneOf": [
        {
          "type": "string",
          "title": "Block number",
          "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
        },
        {
          "type": "string",
          "title": "Block tag",
          "description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
          "enum": [
            "earliest",
            "finalized",
            "safe",
            "latest",
            "pending"
          ]
        }
      ]
    }

Result

Receipts

Schema
{
  "type": "array",
  "title": "Receipt array",
  "items": {
    "type": "string",
    "title": "hex encoded bytes",
    "pattern": "^0x[0-9a-f]*$"
  }
}

Example request

Endpoint: https://your-linea-node.azxa.io

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_getRawReceipts",
  "params": [
    "0x32026E"
  ]
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0xf901a60182c70eb901000000000000000000000000000000000000000000000000000000000000…00000000000029b92700",
    "0xf901a70183018e1cb9010000000000000000000000000000000000000000000000000000000000…00000000000029b92700"
  ]
}

Test fixture

Fixture: get-block-n

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_getRawReceipts",
  "params": [
    "0x3"
  ]
}
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0xf90128a009ebe9c3ee77cd8d23faf37c62cf702b3c00e71dcadbef4d21355f35921b49ca825208…000000000000000000c0",
    "0xf90129a0e5b3989ac75cad727375e7247d9465898d29ba5649b7eaa210e09dedd62503268301f7…000000000000000000c0",
    "0xf904afa092f133cfe28a328e38b3c310a7c2a272b22b73e8aece7fe2301f98bfe10ac2ee8302fb…0000000000000000000a"
  ]
}

cURL

curl -X POST https://your-linea-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"debug_getRawReceipts","params":["0x32026E"]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background