DappErrorCode
The error codes CIP-0103 inherits from EIP-1474 / EIP-1193.
Two families share the space and mean different things. The 4xxx codes are provider errors — the wallet understood the request and declined it. The negative codes are JSON-RPC's own, for requests that were malformed or failed downstream. Getting this wrong is user-visible: a dApp that treats USER_REJECTED as a transport failure will retry a request the user just declined.
Entries
The user declined. Terminal: do not retry, and change no state.
The caller has no grant for this account or method.
The method is not supported by this provider.
The provider is disconnected from the dApp.
The provider is connected, but not to a network.
Malformed parameters — ours or the caller's.
Well-formed parameters the ledger nonetheless rejected.
The transaction was rejected by the ledger.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.