# TRANSACTION_REVERTED

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

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

Source: https://ensforge.com/docs/reference/errors/TRANSACTION_REVERTED

<ErrorMeta errorClass="TransactionError" href="/docs/reference/errors/transaction-error" package="@ensforge/sdk" />

## What happened [#what-happened]

The transaction reverted on-chain.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Transaction failed | The transaction was rejected by the network. |  |

## Retry safety [#retry-safety]

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

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`approval.setDelegate`](/docs/reference/sdk/approval/set-delegate) | when confirmation fails or the wallet's nonce is already used. |
| [`approval.setOperator`](/docs/reference/sdk/approval/set-operator) | when confirmation fails or the wallet's nonce is already used. |
| [`approval.setToken`](/docs/reference/sdk/approval/set-token) | when confirmation fails or the wallet's nonce is already used. |
| [`dns.claim`](/docs/reference/sdk/dns/claim) | when confirmation fails or the wallet's nonce is already used. |
| [`dns.setRecords`](/docs/reference/sdk/dns/set-records) | when confirmation fails or the wallet's nonce is already used. |
| [`migration.migrate`](/docs/reference/sdk/migration/migrate) | when confirmation fails or the wallet's nonce is already used. |
| [`name.reclaim`](/docs/reference/sdk/name/reclaim) | when confirmation fails or the wallet's nonce is already used. |
| [`name.setManager`](/docs/reference/sdk/name/set-manager) | when confirmation fails or the wallet's nonce is already used. |
| [`name.setTtl`](/docs/reference/sdk/name/set-ttl) | when confirmation fails or the wallet's nonce is already used. |
| [`name.transfer`](/docs/reference/sdk/name/transfer) | when confirmation fails or the wallet's nonce is already used. |
| [`permission.setRecordAccess`](/docs/reference/sdk/permission/set-record-access) | when confirmation fails or the wallet's nonce is already used. |
| [`plan.resume`](/docs/reference/sdk/plan/resume) | when confirmation fails or the wallet's nonce is already used. |
| [`plan.send`](/docs/reference/sdk/plan/send) | when confirmation fails or the wallet's nonce is already used. |
| [`primaryName.set`](/docs/reference/sdk/primary-name/set) | when confirmation fails or the wallet's nonce is already used. |
| [`record.set`](/docs/reference/sdk/record/set) | when confirmation fails or the wallet's nonce is already used. |
| [`registration.commit`](/docs/reference/sdk/registration/commit) | when confirmation fails or the wallet's nonce is already used. |
| [`registration.register`](/docs/reference/sdk/registration/register) | when confirmation fails or the wallet's nonce is already used. |
| [`registration.renew`](/docs/reference/sdk/registration/renew) | when confirmation fails or the wallet's nonce is already used. |
| [`registry.attach`](/docs/reference/sdk/registry/attach) | when confirmation fails or the wallet's nonce is already used. |
| [`registry.deploy`](/docs/reference/sdk/registry/deploy) | when confirmation fails or the wallet's nonce is already used. |
| [`registry.setUri`](/docs/reference/sdk/registry/set-uri) | when confirmation fails or the wallet's nonce is already used. |
| [`registry.upgrade`](/docs/reference/sdk/registry/upgrade) | when confirmation fails or the wallet's nonce is already used. |
| [`resolver.create`](/docs/reference/sdk/resolver/create) | when confirmation fails or the wallet's nonce is already used. |
| [`resolver.link`](/docs/reference/sdk/resolver/link) | when confirmation fails or the wallet's nonce is already used. |
| [`resolver.set`](/docs/reference/sdk/resolver/set) | when confirmation fails or the wallet's nonce is already used. |
| [`resolver.upgrade`](/docs/reference/sdk/resolver/upgrade) | when confirmation fails or the wallet's nonce is already used. |
| [`role.grant`](/docs/reference/sdk/role/grant) | when confirmation fails or the wallet's nonce is already used. |
| [`role.revoke`](/docs/reference/sdk/role/revoke) | when confirmation fails or the wallet's nonce is already used. |
| [`subname.create`](/docs/reference/sdk/subname/create) | when confirmation fails or the wallet's nonce is already used. |
| [`subname.remove`](/docs/reference/sdk/subname/remove) | when confirmation fails or the wallet's nonce is already used. |
| [`subname.update`](/docs/reference/sdk/subname/update) | when confirmation fails or the wallet's nonce is already used. |
| [`wrapper.setChildFuses`](/docs/reference/sdk/wrapper/set-child-fuses) | when confirmation fails or the wallet's nonce is already used. |
| [`wrapper.setFuses`](/docs/reference/sdk/wrapper/set-fuses) | when confirmation fails or the wallet's nonce is already used. |
| [`wrapper.unwrap`](/docs/reference/sdk/wrapper/unwrap) | when confirmation fails or the wallet's nonce is already used. |
| [`wrapper.wrap`](/docs/reference/sdk/wrapper/wrap) | when confirmation fails or the wallet's nonce is already used. |
| [`hca.addDeposit`](/docs/reference/hca/hca/add-deposit) | when confirmation fails. |
| [`hca.deploy`](/docs/reference/hca/hca/deploy) | when confirmation fails. |
| [`hca.execute`](/docs/reference/hca/hca/execute) | when confirmation fails. |
| [`hca.revokeSessions`](/docs/reference/hca/hca/revoke-sessions) | when confirmation fails. |
| [`hca.upgrade`](/docs/reference/hca/hca/upgrade) | when confirmation fails. |
| [`hca.withdrawDeposit`](/docs/reference/hca/hca/withdraw-deposit) | when confirmation fails. |
| [`hcaAdmin.grantUpgradeSetRoles`](/docs/reference/hca/hca-admin/grant-upgrade-set-roles) | when confirmation fails. |
| [`hcaAdmin.renounceGovernance`](/docs/reference/hca/hca-admin/renounce-governance) | when confirmation fails. |
| [`hcaAdmin.revokeUpgradeSetRoles`](/docs/reference/hca/hca-admin/revoke-upgrade-set-roles) | when confirmation fails. |
| [`hcaAdmin.setDeploymentApproval`](/docs/reference/hca/hca-admin/set-deployment-approval) | when confirmation fails. |
| [`hcaAdmin.setUpgradeApproval`](/docs/reference/hca/hca-admin/set-upgrade-approval) | when confirmation fails. |
| [`hcaAdmin.transferGovernance`](/docs/reference/hca/hca-admin/transfer-governance) | when confirmation fails. |

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

## Catch it [#catch-it]

`Errors.hasCode("TRANSACTION_REVERTED")` narrows to this error. See [Handle errors](/docs/sdk/handle-errors).