Skip to main content

OMSWallet

OMSWallet

Main entry point for OMS Wallet.

Authentication and sessions

OMSWalletSessionAuth

OMSWalletEmailSessionAuth

OMSWalletOidcSessionAuthFlow

OMSWalletOidcSessionAuth

OMSWalletSessionState

Current durable wallet-session state for a WalletClient.

OMSWalletSessionExpiredEvent

Event delivered when a wallet session expires.

WalletType

Wallet

WalletKeyOrigin

Whether a wallet key was created in WaaS custody or imported by its owner.

Page

WalletImportCipherSuite

HPKE cipher suites accepted by the wallet-import transport.

WalletImportPrivateKey

Plaintext private-key input for high-level wallet import.

WalletImportPrivateKey.Ethereum

Ethereum private key supplied as hexadecimal text.

WalletImportPrivateKey.EthereumBytes

Ethereum private key supplied as 32 raw bytes.

WalletImportPrivateKey.Solana

Solana seed or keypair supplied as base58 text.

WalletImportPrivateKey.SolanaBytes

Solana seed or keypair supplied as 32 or 64 raw bytes.

WalletImportRecipientKey

Attested public key returned for an advanced wallet-import encryption flow.

EncryptedWalletImportKeyMaterial

Caller-encrypted private-key material accepted by advanced wallet import.

WalletCredential

A credential currently authorized to use the selected wallet.

RemoteCredentialMetadata

Display metadata supplied by a remote application credential.

SmartSessionGrant

Owner-approved EVM operation allowed during a bounded smart session.

SmartSessionGrant.NativeTransfer

SmartSessionGrant.Erc20Transfer

AccessGrantType

Filter for direct or remotely authorized wallet access.

AccessGrant

Direct or remote credential access associated with a wallet.

AccessGrant.Direct

AccessGrant.Remote

AccessGrantPage

One page of wallet access grants and its continuation cursor.

AuthorizedRemoteAccess

Identifiers returned after an owner authorizes a remote smart session.

RemoteAccessSession

Owner-visible details for one authorized smart session.

SmartSessionGrantUsage

Current usage for one bounded smart-session grant.

CustomOidcProviderConfig

Caller-owned OIDC provider configuration for authorization-code redirect auth.

OmsRelayOidcProvider

Opaque OIDC provider value whose OAuth callback is owned by the OMS relay.

OmsRelayOidcProviders

SDK-owned OMS relay provider values.

OidcRedirectAuthMode

WaaS redirect auth-code mode supported by OIDC redirect providers.

StartOidcRedirectAuthResult

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

OidcRedirectAuthResult

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

OidcRedirectAuthResult.Completed

OidcRedirectAuthResult.NotOidcRedirectCallback

OidcRedirectAuthResult.NoPendingAuth

WalletSelectionResult

Result returned after selecting or creating a wallet.

WalletSelectionBehavior

Controls whether auth completion should select a wallet automatically or let the app complete wallet selection.

PendingWalletSelection

Authenticated state waiting for the app to select or create a wallet.

CompleteAuthResult

Result returned by auth completion APIs when wallet selection can be automatic or app-driven.

CompleteAuthResult.WalletSelected

CompleteAuthResult.WalletSelection

WalletClient

WalletClient.DEFAULT_SESSION_LIFETIME_SECONDS

Default requested WaaS wallet session lifetime in seconds.

WalletClient.MAX_SESSION_LIFETIME_SECONDS

Maximum requested WaaS wallet session lifetime in seconds.

WalletClient.walletAddress

Address of the currently selected wallet, or null when no wallet is selected.

WalletClient.session

Snapshot of the current completed wallet-session state.

WalletClient.onSessionExpired

Registers a listener for expired wallet sessions.

WalletClient.signOut

WalletClient.startEmailAuth

WalletClient.signInWithOidcIdToken

WalletClient.startOidcRedirectAuth

WalletClient.handleOidcRedirectCallback

WalletClient.completeEmailAuth

WalletClient.useWallet

Selects an existing wallet by its WaaS wallet id.

WalletClient.createWallet

Creates and selects a new wallet for the authenticated user.

WalletClient.importWallet

Imports and activates an Ethereum or Solana private key through the attested import transport.

WalletClient.getWalletImportRecipientKey

Fetches an attested recipient key for caller-managed wallet-import encryption.

WalletClient.importEncryptedWallet

Imports and activates caller-encrypted private-key material.

WalletClient.listWallets

Lists all wallets available to the authenticated credential.

WalletClient.inspectRemoteCredential

Returns display metadata for a remote credential before the owner approves access.

WalletClient.authorizeRemoteAccess

Authorizes owner-approved EVM smart-session grants for a remote credential. Omit sessionId to create a session; pass an existing session ID to replace that session’s grants and requested expiry without changing its signer. WaaS caps the effective expiry at the remote credential’s expiry.

WalletClient.listAccess

Returns all access grants, following WaaS cursors with the requested pageSize.

WalletClient.listAccessPages

Emits credential-access pages for the selected wallet until WaaS stops returning a cursor.

WalletClient.listAccessPage

Returns one credential-access page for the selected wallet.

WalletClient.getRemoteAccessSession

Returns one owner-visible smart-session and checks that it belongs to the active wallet.

WalletClient.getRemoteAccessSessionUsage

Returns grant usage for an owner-visible smart session on network.

WalletClient.getIdToken

Returns an ID token for the currently selected wallet.

WalletClient.revokeAccess

Revokes one access grant from the selected wallet. Use listAccess or listAccessPage to find the direct or remote grant. Omit sessionId for a direct grant; for a remote grant, pass its session ID to revoke exactly that session.

Transactions and signing

TransactionMode

TransactionStatus

FeeToken

FeeOption

FeeOptionSelection

AbiArg

TransactionStatusResponse

FeeOptionSelector

Selects a fee option before execution. Sponsored transactions pass an empty list; returning null acknowledges the free fee, while throwing stops execution.

FeeOptionWithBalance

SendTransactionRequest

SendTransactionResponse

TransactionStatusResolution

TransactionStatusPollingOptions

WalletClient.signMessage

Signs message with the currently selected wallet on network.

WalletClient.signSolanaMessage

Signs message with the currently selected Solana wallet.

WalletClient.signTypedData

Signs EIP-712 typedData with the currently selected wallet on network.

WalletClient.isValidMessageSignature

Validates signature for message through the WaaS public wallet RPC.

WalletClient.isValidSolanaMessageSignature

Validates signature for a Solana message through the WaaS public wallet RPC.

WalletClient.isValidTypedDataSignature

Validates signature for EIP-712 typedData through the WaaS public wallet RPC.

WalletClient.sendTransaction

Sends a transaction from the currently selected wallet on network.

WalletClient.sendSolanaTransfer

Sends a native SOL or SPL token transfer from the selected Solana wallet.

WalletClient.callContract

Calls a state-changing smart contract function through the WaaS prepare/execute flow.

WalletClient.getTransactionStatus

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

Indexer

IndexerClient

IndexerClient.getBalances

Gets token and native balances for walletAddress.

IndexerClient.getTransactionHistory

Gets transaction history for walletAddress.

IndexerClient.getSolanaBalances

Gets native SOL and fungible-token balances for walletAddress.

SolanaVerificationStatus

Verification state assigned to Solana asset metadata.

SolanaVerificationSource

Source used to verify Solana asset metadata.

SolanaTokenProgram

Token program owning a Solana mint.

SolanaBalance

Common public fields returned for a Solana balance.

SolanaBalance.Native

Native SOL balance.

SolanaBalance.FungibleToken

SPL Token or Token-2022 balance.

SolanaNetworkError

Per-network failure returned alongside partial Solana balance results.

SolanaBalancesResult

Solana balances and partial network errors returned by the gateway.

TokenBalancesPageRequest

IndexerNetworkType

ContractVerificationStatus

TokenBalancesPage

MetadataOptions

TokenContractInfo

TokenMetadataAsset

TokenMetadata

TokenBalance

NativeTokenBalance

ContractTokenBalance

TokenBalancesResult

TransactionTransfer

Transaction

TransactionHistoryResult

Networks, types, and errors

Network

A network supported by the OMS Wallet SDK.

OMSWalletNetworks

Networks currently supported by this SDK build.

SolanaNetwork

SolanaNetworks

OMSWalletErrorCode

Stable SDK-level error categories for app-facing error handling.

OMSWalletOperation

Stable identifiers for SDK operations that can appear on OMSWalletException.

OMSWalletUpstreamService

Remote OMS service that produced diagnostic failure details.

OMSWalletUpstreamError

Normalized diagnostic detail from a remote OMS service response or transport failure.

OMSWalletException

Base exception type thrown by public OMS Wallet SDK APIs.

OMSWalletSessionException

OMSWalletRequestException

OMSWalletResponseException

OMSWalletTransactionException

OMSWalletSelectionException

OMSWalletValidationException

OMSWalletStorageException

OMSWalletAttestationException

Thrown when a wallet-import response cannot be authenticated as an approved enclave.

formatUnits

Divides value by 10^decimals and formats it as a decimal string.

parseUnits

Multiplies the decimal string value by 10^decimals.