Skip to main content

OMSWallet

OMSWallet

WalletClient

Authentication and sessions

WalletClient.walletAddress

WalletClient.walletId

WalletClient.session

Snapshot of the current durable wallet-session state.

WalletClient.addSessionExpiredObserver(_:)

WalletClient.startEmailAuth(email:sessionLifetimeSeconds:)

Initiates email-based OTP authentication by sending a one-time code to the given address.

WalletClient.completeEmailAuth(code:walletSelection:walletType:)

Completes the email OTP authentication flow.

WalletClient.signInWithOidcIdToken(idToken:issuer:audience:walletType:walletSelection:sessionLifetimeSeconds:provider:providerLabel:)

Signs in with an OIDC ID token.

WalletClient.startOIDCRedirectAuth(provider:walletType:loginHint:authorizeParams:walletSelection:sessionLifetimeSeconds:)

Starts OIDC authorization-code redirect authentication.

WalletClient.startOIDCRedirectAuth(provider:omsRelayReturnURI:walletType:loginHint:walletSelection:sessionLifetimeSeconds:)

Starts OIDC authorization-code redirect authentication through the built-in OMS relay for the fixed Google and Apple provider values.

WalletClient.handleOIDCRedirectCallback(_:walletSelection:sessionLifetimeSeconds:)

Safely handles an incoming OIDC authorization-code redirect callback.

WalletClient.listWallets()

Lists all wallets available to the authenticated credential.

WalletClient.useWallet(walletId:)

Activates an existing wallet by its WaaS wallet ID and persists its address and signer metadata to the keychain.

WalletClient.createWallet(walletType:reference:)

Creates a new wallet of the specified type for the authenticated user and persists its address and signer metadata to the keychain.

WalletClient.getIdToken(ttlSeconds:customClaims:)

WalletClient.listAccess(pageSize:)

Returns a list of credentials that currently have access to this wallet.

WalletClient.listAccessPage(pageSize:cursor:)

Returns one credential-access page for this wallet.

WalletClient.listAccessPages(pageSize:)

Returns credential-access pages for this wallet until WaaS stops returning a cursor.

WalletClient.revokeAccess(targetCredentialId:)

Revokes access for a specific credential, preventing it from interacting with this wallet going forward.

WalletClient.signOut()

Clears the wallet session from the device keychain.

WalletSelectionBehavior

CompleteAuthResult

PendingWalletSelection

WalletSelectionResult

Wallet

WalletType

CredentialInfo

CustomOIDCProviderConfiguration

A caller-owned OIDC provider configuration for authorization-code redirect auth.

OIDCAuthMode

OIDC redirect auth-code mode.

OMSRelayOIDCProvider

A fixed OIDC provider whose OAuth callback is owned by the OMS relay.

OMSRelayOIDCProviders

SDK-owned OMS relay provider values.

StartOIDCRedirectAuthResult

Result returned after starting an OIDC authorization-code redirect flow.

OIDCRedirectAuthResult

Result of handling an incoming OIDC authorization-code redirect callback.

OMSWalletSessionState

OMSWalletSessionAuth

OMSWalletEmailSessionAuth

OMSWalletOidcSessionAuth

OMSWalletOidcSessionAuthFlow

OMSWalletSessionExpiredEvent

OMSWalletSessionExpiredObservation

ListAccessResponse

ListAccessPages

Transactions and signing

WalletClient.signMessage(network:message:)

Signs an arbitrary message using the wallet’s session key.

WalletClient.signTypedData(network:typedData:)

WalletClient.isValidMessageSignature(network:walletAddress:message:signature:)

WalletClient.isValidTypedDataSignature(network:walletAddress:typedData:signature:)

WalletClient.sendTransaction(network:to:value:selectFeeOption:mode:waitForStatus:statusPolling:)

WalletClient.sendTransaction(network:request:selectFeeOption:waitForStatus:statusPolling:)

WalletClient.callContract(network:contract:method:args:selectFeeOption:mode:waitForStatus:statusPolling:)

WalletClient.getTransactionStatus(txnId:)

Returns the current execution status for a prepared or submitted transaction.

SendTransactionRequest

SendTransactionResponse

TransactionMode

TransactionStatusPollingOptions

TransactionStatusResponse

TransactionStatus

TransactionStatusResolution

FeeOptionSelector

FeeOptionWithBalance

FeeOption

FeeOptionSelection

FeeToken

AbiArg

Indexer

IndexerClient

IndexerClient.getBalances(_:)

IndexerClient.getTransactionHistory(_:)

GetBalancesParams

BalancesResult

NativeTokenBalance

ContractTokenBalance

TokenBalance

TokenBalancesPage

TokenBalancesPageRequest

TokenContractInfo

TokenMetadata

TokenMetadataAsset

GetTransactionHistoryParams

TransactionHistoryResult

Transaction

TransactionTransfer

IndexerNetworkType

ContractVerificationStatus

MetadataOptions

Page

SortBy

SortOrder

Networks, types, and errors

Network

JSONValue

JSON value used by SDK APIs that accept or return dynamic JSON payloads.

OMSWalletError

OMSWalletErrorCode

OMSWalletOperation

OMSWalletUpstreamError

OMSWalletUpstreamService

UnitConversionError

parseUnits(value:decimals:)

formatUnits(value:decimals:)