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

PAYMENT_TOKEN_UNSUPPORTED

What PAYMENT_TOKEN_UNSUPPORTED means, why UnsupportedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

UnsupportedErrorNot retryable
@ensforge/sdk

What happened

The registrar does not accept this payment token.

What to show users

TitleMessageAction
Payment not acceptedThis token is not accepted for registration.

Retry safety

Retrying the same call fails the same way until the cause is fixed (retryable: false).

Actions that throw it

ActionWhen
registration.commitfor an unaccepted token or without ENSv2.
registration.getPricefor an unaccepted token or without ENSv2.
registration.getRenewalPricefor an unaccepted token or without ENSv2.
registration.registerfor an unaccepted token or without ENSv2.
registration.renewfor an unaccepted token or without ENSv2.

Any write can fail with UnsupportedError: it is part of Errors.WriteError.

Catch it

Errors.hasCode("PAYMENT_TOKEN_UNSUPPORTED") narrows to this error. See Handle errors.

Was this page helpful?