DnsError
What DnsError means, which codes it carries and how to catch it in ensforge. Importing or reading a DNS name failed. Lists its fields and every code.
Error class4 codes · @ensforge/sdk
Importing or reading a DNS name failed.
Fields
| Field | Type | Description |
|---|---|---|
onchainOwner | Address | |
dnsOwner | Address |
Codes
| Code | Meaning | Retryable |
|---|---|---|
DNS_RECORD_MISSING | The _ens TXT record is missing. | No |
DNSSEC_PROOF_FAILED | The DNSSEC proof could not be built or verified. | No |
PROOF_STALE | The DNSSEC proof is older than the one on-chain. | No |
TLD_NOT_PUBLIC | The top-level domain is not a public suffix and cannot be imported. | No |
Catch it
Effect.catchTag("DnsError", …) or error instanceof Errors.DnsError. See Handle errors.
Was this page helpful?