Utils
ActionRejectedError
This Error indicates a request was rejected by the user.
In most clients (such as MetaMask), when an operation requires user authorization (such as signer.sendTransaction
),
the client presents a dialog box to the user. If the user denies the request this error is thrown.
Extends
quaisError
<"ACTION_REJECTED"
>
Properties
Property | Type | Description | Inherited from |
---|---|---|---|
action | | "unknown" | "sendTransaction" | "signTransaction" | "signMessage" | "signTypedData" | "requestAccess" | The requested action. | - |
code | ErrorCode | The string error code. | quaisError .code |
error? | Error | Any related error. | quaisError .error |
info? | Record <string , any > | Additional info regarding the error that may be useful. This is generally helpful mostly for human-based debugging. | quaisError .info |
reason | "rejected" | "pending" | "expired" | The reason the action was rejected. If there is already a pending request, some clients may indicate there is already a "pending" action. Thisprevents an app from spamming the user. | - |
shortMessage | string | A short message describing the error, with minimal additional details. | quaisError .shortMessage |
Was this page helpful?