INVALID_ADDRESS
What INVALID_ADDRESS means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
InvalidInputErrorNot retryable
@ensforge/sdk
What happened
undefined is not a valid address.
What to show users
| Title | Message | Action |
|---|---|---|
| Invalid address | This address is not valid. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.getDelegate | for invalid input. |
approval.getOperator | for invalid addresses. |
approval.setDelegate | for invalid input. |
approval.setOperator | for invalid addresses. |
approval.setToken | for invalid input. |
dns.claim | for invalid input. |
indexer.getEvents | for invalid input. |
indexer.getHistory | for invalid input. |
indexer.getNamesForAddress | for invalid input. |
indexer.getPermissions | for invalid input. |
indexer.getPrimaryName | for invalid input. |
indexer.getRecords | for invalid input. |
indexer.getRegistry | for an invalid address. |
indexer.getRegistryLabels | for an invalid address. |
indexer.getResolver | for an invalid address. |
indexer.getResolverLinks | for an invalid address. |
indexer.getResolverRoles | for an invalid address. |
indexer.getResolvers | for an invalid address. |
migration.get | for invalid input. |
migration.migrate | for invalid input. |
name.reclaim | for invalid input. |
name.setManager | for invalid input. |
name.transfer | for invalid input. |
permission.check | for invalid input. |
permission.get | for invalid input. |
permission.setRecordAccess | for invalid input or an unconfirmed widening. |
plan.list | for an invalid account. |
primaryName.get | for invalid input, or with strict an unnormalized name. |
primaryName.set | for invalid input. |
primaryName.signClaim | for invalid input. |
record.set | for invalid input. |
registration.commit | for invalid input. |
registration.getPrice | for invalid input. |
registration.getRenewalPrice | for invalid input. |
registration.register | for invalid input. |
registration.renew | for invalid input. |
registry.attach | for invalid input. |
registry.deploy | for invalid input. |
registry.get | for invalid input. |
registry.setUri | for invalid input. |
registry.upgrade | for invalid input or an up-to-date registry. |
resolver.create | for invalid input, or a salt whose resolver already exists. |
resolver.set | for invalid input. |
resolver.upgrade | for invalid input or an up-to-date resolver. |
role.get | for invalid input or targets. |
role.grant | for invalid input or targets. |
role.revoke | for invalid input or targets. |
subname.create | for invalid input. |
subname.update | for invalid input. |
wrapper.unwrap | for invalid input. |
wrapper.wrap | for invalid input or fuses. |
hca.addDeposit | for an invalid address. |
hca.authorizeSession | for invalid addresses. |
hca.get | for an invalid address. |
hca.getDeposit | for an invalid address. |
hca.getUpgrade | for invalid addresses. |
hca.predictAddress | for an invalid owner. |
hca.upgrade | for an invalid address. |
hca.verify | for an invalid address. |
hca.withdrawDeposit | for an invalid recipient. |
hcaAdmin.getGovernance | for an invalid address. |
hcaAdmin.grantUpgradeSetRoles | for an invalid address. |
hcaAdmin.revokeUpgradeSetRoles | for an invalid address. |
hcaAdmin.setDeploymentApproval | for an invalid address. |
hcaAdmin.setUpgradeApproval | for an invalid address. |
hcaAdmin.transferGovernance | for an invalid address. |
Catch it
Errors.hasCode("INVALID_ADDRESS") narrows to this error. See Handle errors.
Was this page helpful?