TRANSFER_DISALLOWED
What TRANSFER_DISALLOWED means, why UnauthorizedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
UnauthorizedErrorNot retryable
@ensforge/sdk
What happened
This name cannot be transferred right now.
What to show users
| Title | Message | Action |
|---|---|---|
| Transfer blocked | This name cannot be transferred with the roles held on it. |
How to fix
The owner lacks the role to transfer it, or other accounts hold roles on it (revoke them, or transfer with unsafe: true); requirements says which.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
name.transfer | when the account may not send it, or the recipient (an HCA) refuses it. |
Catch it
Errors.hasCode("TRANSFER_DISALLOWED") narrows to this error. See Handle errors.
Was this page helpful?