SmartAccountErrorCode
public enum SmartAccountErrorCode : Int, Sendable, CaseIterable
Stable numeric identifier for every Smart Account error condition.
Error code ranges:
1xxx: Configuration errors2xxx: Wallet state errors3xxx: Credential errors4xxx: WebAuthn errors5xxx: Transaction errors6xxx: Signer errors7xxx: Validation errors8xxx: Storage errors9xxx: Session errors10xxx: Indexer errors
-
Undocumented
Declaration
Swift
case invalidConfig = 1001 -
Undocumented
Declaration
Swift
case missingConfig = 1002 -
Undocumented
Declaration
Swift
case walletNotConnected = 2001 -
Undocumented
Declaration
Swift
case walletAlreadyExists = 2002 -
Undocumented
Declaration
Swift
case walletNotFound = 2003 -
Undocumented
Declaration
Swift
case credentialNotFound = 3001 -
Undocumented
Declaration
Swift
case credentialAlreadyExists = 3002 -
Undocumented
Declaration
Swift
case credentialInvalid = 3003 -
Deploying a credential-backed wallet contract failed.
Declaration
Swift
case credentialDeploymentFailed = 3004 -
WebAuthn registration failed before a credential was created.
Declaration
Swift
case webAuthnRegistrationFailed = 4001 -
Undocumented
Declaration
Swift
case webAuthnAuthenticationFailed = 4002 -
Undocumented
Declaration
Swift
case webAuthnNotSupported = 4003 -
Undocumented
Declaration
Swift
case webAuthnCancelled = 4004 -
Undocumented
Declaration
Swift
case transactionSimulationFailed = 5001 -
Undocumented
Declaration
Swift
case transactionSigningFailed = 5002 -
Undocumented
Declaration
Swift
case transactionSubmissionFailed = 5003 -
Polling for transaction completion timed out.
Declaration
Swift
case transactionTimeout = 5004 -
Undocumented
Declaration
Swift
case signerNotFound = 6001 -
Undocumented
Declaration
Swift
case signerInvalid = 6002 -
The supplied address is not a valid Stellar
G…orC…strkey.Declaration
Swift
case invalidAddress = 7001 -
Undocumented
Declaration
Swift
case invalidAmount = 7002 -
Undocumented
Declaration
Swift
case invalidInput = 7003 -
Undocumented
Declaration
Swift
case storageReadFailed = 8001 -
Undocumented
Declaration
Swift
case storageWriteFailed = 8002 -
The session has expired and must be re-established.
Declaration
Swift
case sessionExpired = 9001 -
Undocumented
Declaration
Swift
case sessionInvalid = 9002 -
Undocumented
Declaration
Swift
case indexerRequestFailed = 10001 -
Undocumented
Declaration
Swift
case indexerTimeout = 10002 -
Stable numeric error code.
Equivalent to
rawValue; provided as a named accessor so callers can refer to the error code by name without depending on the underlying enum representation.Declaration
Swift
public var code: Int { get }
View on GitHub
Install in Dash