The sequencer periodically commits authorization batches to a Merkle tree and posts the root on-chain. These endpoints allow you to track commitments and generate inclusion proofs for authorizations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nhestrompia/shielded-x402/llms.txt
Use this file to discover all available pages before exploring further.
Get latest commitment
Retrieve the most recent commitment epoch.
Response
Uint64 string of the latest epoch ID. Returns
0 if no commitments exist.32-byte hex Merkle root of the commitment. Returns zero hash if no commitments exist.
Number of authorization leaves in this epoch.
32-byte hex root of the previous epoch.
Identifier of the sequencer key that created the commitment.
Uint64 Unix timestamp when the commitment was posted on-chain. Null if not yet posted.
Transaction hash of the on-chain commitment post. Null if not yet posted.
Example
Get inclusion proof
Generate a Merkle inclusion proof for a specific authorization.
Query parameters
32-byte hex identifier of the authorization to generate a proof for.
Response
Uint64 string of the epoch containing this authorization.
32-byte hex Merkle root of the commitment epoch.
32-byte hex hash of the authorization leaf.
Array of 32-byte hex sibling hashes for the Merkle proof.
Zero-based index of the leaf in the Merkle tree.
Uint64 string of the authorization’s sequence number in the append-only log.
32-byte hex root of the previous epoch.
32-byte hex identifier of the authorization.
32-byte hex salt used in the leaf computation (derived from sequencer secret).
Identifier of the sequencer key.
Transaction hash of the on-chain commitment. Only present if the commitment has been posted.
Error codes
| Code | Description |
|---|---|
NOT_FOUND | Authorization not found or not yet committed |
authorization not found | AuthId doesn’t exist |
authorization leaf not found | Leaf data missing |
authorization not committed yet | Authorization hasn’t been included in a commitment epoch |
commitment epoch not found | Epoch data missing |
commitment root mismatch for epoch | Internal consistency error in Merkle tree |