Skip to content
Alchemy Logo

archive_getReceiptProof

POST
https://zerointerop-mainnet.g.alchemy.com/v2/{apiKey}
CUs20

Returns a ZoneReceiptsProof for the receipts at the given transaction indexes of an Interop Zone block, proven against a followed beacon height.

Use a beacon height at or after the block's settledAt value from zone_getCommit. If the beacon height has been pruned, the "invalid params" error's data.firstRetained is the oldest height still held. If the receipt isn't available at that beacon height, the -32002 error's data.settledHeight is the zone's settled height.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"required

The beacon chain height to prove against, as a hex-encoded quantity. Must be at or after the block's settledAt beacon height.

stringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"required

The zone block number, as a hex-encoded quantity.

stringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"required

The index of the first transaction to prove, as a hex-encoded quantity.

stringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"optional

The number of receipts to include, starting at the transaction index, as a hex-encoded quantity. When omitted, the proof covers only the receipt at the transaction index.

Responses

200

The receipts and the proof data linking them to the beacon height.

Errors

-32602Invalid params, or the beacon height has been pruned
-32002The receipt isn't available at this beacon height
-32000Read failure or timeout
Was this page helpful?