Skip to content
Alchemy Logo

zone_getCommit

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

Returns the block hash, state root, and block commitment of an Interop Zone block, along with the beacon heights at which the block was committed and settled.

committedAt and settledAt are beacon chain heights. settledAt and settledStateRoot are null until the block is settled.

The commit history starts at zone block 19309 (0x4b6d). Requesting an earlier height returns an "invalid params" error whose data.firstHeight is the first available 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 zone block height, as a hex-encoded quantity. Must be 0x4b6d (19309) or higher.

Responses

200

The commitment and settlement record for the requested zone block.

Errors

-32602block 1 precedes this node's commit history, which starts at 19309
-32001The block isn't committed, executed, or published yet
-32000Read failure or timeout
Was this page helpful?