TRANSACTION_REVERTED
What TRANSACTION_REVERTED means, why TransactionError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
TransactionErrorNot retryable
@ensforge/sdk
What happened
The transaction reverted on-chain.
What to show users
| Title | Message | Action |
|---|---|---|
| Transaction failed | The transaction was rejected by the 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.setDelegate | when confirmation fails or the wallet's nonce is already used. |
approval.setOperator | when confirmation fails or the wallet's nonce is already used. |
approval.setToken | when confirmation fails or the wallet's nonce is already used. |
dns.claim | when confirmation fails or the wallet's nonce is already used. |
dns.setRecords | when confirmation fails or the wallet's nonce is already used. |
migration.migrate | when confirmation fails or the wallet's nonce is already used. |
name.reclaim | when confirmation fails or the wallet's nonce is already used. |
name.setManager | when confirmation fails or the wallet's nonce is already used. |
name.setTtl | when confirmation fails or the wallet's nonce is already used. |
name.transfer | when confirmation fails or the wallet's nonce is already used. |
permission.setRecordAccess | when confirmation fails or the wallet's nonce is already used. |
plan.resume | when confirmation fails or the wallet's nonce is already used. |
plan.send | when confirmation fails or the wallet's nonce is already used. |
primaryName.set | when confirmation fails or the wallet's nonce is already used. |
record.set | when confirmation fails or the wallet's nonce is already used. |
registration.commit | when confirmation fails or the wallet's nonce is already used. |
registration.register | when confirmation fails or the wallet's nonce is already used. |
registration.renew | when confirmation fails or the wallet's nonce is already used. |
registry.attach | when confirmation fails or the wallet's nonce is already used. |
registry.deploy | when confirmation fails or the wallet's nonce is already used. |
registry.setUri | when confirmation fails or the wallet's nonce is already used. |
registry.upgrade | when confirmation fails or the wallet's nonce is already used. |
resolver.create | when confirmation fails or the wallet's nonce is already used. |
resolver.link | when confirmation fails or the wallet's nonce is already used. |
resolver.set | when confirmation fails or the wallet's nonce is already used. |
resolver.upgrade | when confirmation fails or the wallet's nonce is already used. |
role.grant | when confirmation fails or the wallet's nonce is already used. |
role.revoke | when confirmation fails or the wallet's nonce is already used. |
subname.create | when confirmation fails or the wallet's nonce is already used. |
subname.remove | when confirmation fails or the wallet's nonce is already used. |
subname.update | when confirmation fails or the wallet's nonce is already used. |
wrapper.setChildFuses | when confirmation fails or the wallet's nonce is already used. |
wrapper.setFuses | when confirmation fails or the wallet's nonce is already used. |
wrapper.unwrap | when confirmation fails or the wallet's nonce is already used. |
wrapper.wrap | when confirmation fails or the wallet's nonce is already used. |
hca.addDeposit | when confirmation fails. |
hca.deploy | when confirmation fails. |
hca.execute | when confirmation fails. |
hca.revokeSessions | when confirmation fails. |
hca.upgrade | when confirmation fails. |
hca.withdrawDeposit | when confirmation fails. |
hcaAdmin.grantUpgradeSetRoles | when confirmation fails. |
hcaAdmin.renounceGovernance | when confirmation fails. |
hcaAdmin.revokeUpgradeSetRoles | when confirmation fails. |
hcaAdmin.setDeploymentApproval | when confirmation fails. |
hcaAdmin.setUpgradeApproval | when confirmation fails. |
hcaAdmin.transferGovernance | when confirmation fails. |
Any write can fail with TransactionError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("TRANSACTION_REVERTED") narrows to this error. See Handle errors.
Was this page helpful?