Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

CommitmentError

What CommitmentError means, which codes it carries and how to catch it in ensforge. A .eth commit-reveal registration step is out of order or out of time.

Error class4 codes · @ensforge/sdk

A .eth commit-reveal registration step is out of order or out of time.

Fields

FieldTypeDescription
commitmentHexHash of the commitment the step concerns, when known.
readyAtbigintUnix time (seconds) from which register succeeds.
expiresAtbigintUnix time (seconds) after which the commitment is too old.

Codes

CodeMeaningRetryable
COMMITMENT_TOO_NEWThe registration commitment is not ready yet.Yes
COMMITMENT_TOO_OLDThe registration commitment has expired.No
COMMITMENT_EXISTSAn unexpired commitment with the same data already exists.No
COMMITMENT_NOT_FOUNDNo commitment was found for this registration.No

Catch it

Effect.catchTag("CommitmentError", …) or error instanceof Errors.CommitmentError. See Handle errors.

Was this page helpful?