UNSUPPORTED_ON_DEPLOYMENT
What UNSUPPORTED_ON_DEPLOYMENT 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
This feature is not available on this deployment.
What to show users
| Title | Message | Action |
|---|---|---|
| Not supported | This action is not available on this network. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.getOperator | for ENSv1 contracts without ENSv1. |
approval.setOperator | for ENSv1 contracts without ENSv1. |
dns.getOffchainResolver | without a DNSSEC gateway or gatewayUrls. |
dns.getProof | without a DNSSEC gateway or gatewayUrls. |
dns.getStatus | without a DNSSEC gateway or gatewayUrls. |
migration.get | where ENSv2 is not deployed. |
migration.migrate | where ENSv2 is not deployed. |
name.getLabel | without an ENSv2 deployment. |
primaryName.set | for a chain without an L2 reverse registrar. |
primaryName.signClaim | for a chain without an L2 reverse registrar. |
registration.commit | for an unaccepted token or without ENSv2. |
registration.getCommitmentStatus | without ENSv2. |
registration.getParameters | without ENSv2. |
registration.getPrice | for an unaccepted token or without ENSv2. |
registration.getRenewalPrice | for an unaccepted token or without ENSv2. |
registration.isAvailable | without ENSv2. |
registration.register | for an unaccepted token or without ENSv2. |
registration.renew | for an unaccepted token or without ENSv2. |
registry.deploy | without ENSv2, or for an ENSv1 attachTo. |
resolver.create | without ENSv2, or for records a PermissionedResolver cannot store. |
wrapper.getFuses | without ENSv1. |
Any write can fail with UnsupportedError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("UNSUPPORTED_ON_DEPLOYMENT") narrows to this error. See Handle errors.
Was this page helpful?