Skip to main content

OMSWallet

OMSWallet

OMSWalletParams

Authentication and sessions

WalletClient.activeWallet

The active wallet, or undefined when signed out or while a manual wallet selection is pending. Same shape as listWallets() entries. The same frozen object is returned until it changes.

WalletClient.session

Expiry and auth metadata for the active session; defined exactly when activeWallet is. The same frozen object is returned until it changes.

WalletClient.onSessionChange

Calls listener after every change of activeWallet or session, in order and shortly after the change (never during the call that made it). Subscribe first, then read activeWallet and session, so no change is missed. A listener added while signed out first receives the last expired change, if a session expired since the last sign-in or sign-out (for example while the page was closed). Returns a function that unsubscribes.

WalletClient.startEmailAuth

WalletClient.completeEmailAuth

WalletClient.signInWithOidcIdToken

WalletClient.startOidcRedirectAuth

WalletClient.completeOidcRedirectAuth

WalletClient.signInWithOidcRedirect

WalletClient.signOut

WalletClient.listWallets

WalletClient.useWallet

WalletClient.claimWallet

Claims a preallocated wallet for the signed-in user and makes it the active wallet. Requires an active session; during a pending manual selection use PendingWalletSelection.claimAndSelectWallet.

WalletClient.createWallet

WalletClient.importWallet

WalletClient.getWalletImportRecipientKey

WalletClient.importEncryptedWallet

WalletClient.getIdToken

WalletClient.listAccess

WalletClient.listAccessPage

Returns one access page. Pass the previous page’s page.cursor to continue.

WalletClient.listAccessPages

WalletClient.inspectRemoteCredential

WalletClient.authorizeRemoteAccess

WalletClient.getRemoteAccessSession

WalletClient.getRemoteAccessSessionUsage

WalletClient.revokeAccess

StartEmailAuthParams

CompleteEmailAuthParams

CompleteEmailAuthResult

SignInWithOidcIdTokenParams

CompleteOidcIdTokenAuthResult

StartOidcRedirectAuthParams

StartOidcRedirectAuthResult

CompleteOidcRedirectAuthParams

CompleteOidcRedirectAuthResult

SignInWithOidcRedirectParams

OmsRelayOidcProviders

Fixed OMS relay providers. Their OAuth configuration is not caller-editable.

OmsRelayOidcProvider

An opaque SDK-owned OMS relay provider value. Obtain values from OmsRelayOidcProviders; object literals are invalid.

CustomOidcProviderConfig

A caller-owned OIDC provider configuration.

AuthMode

OIDC redirect auth modes accepted by CustomOidcProviderConfig.authMode.

OidcAuthMode

WalletType

WalletKeyOrigin

WalletImportCipherSuite

WalletSelectionBehavior

WalletAccount

EthereumWalletAccount

SolanaWalletAccount

TronWalletAccount

WalletActivationResult

ImportWalletParams

WalletImportRecipientKey

EncryptedWalletImportKeyMaterial

ImportEncryptedWalletParams

PendingWalletSelection

OMSWalletEmailSessionAuth

OMSWalletOidcSessionAuthFlow

OMSWalletOidcSessionAuth

OMSWalletSessionAuth

OMSWalletSession

OMSWalletSessionChangeEvent

The state right after a session change: what activeWallet and session returned then.

OMSWalletSessionChangeReason

Why activeWallet or session changed.
  • signedIn: a sign-in made a wallet active, in this client or in another tab.
  • walletChanged: another wallet of the same sign-in became active, here or in another tab.
  • expiryUpdated: session.expiresAt moved. Safe to ignore unless you show the expiry.
  • signedOut: there is no session any more and it did not expire: signOut(), a sign-in started while signed in, or another tab taking over. Not necessarily the user’s choice.
  • expired: the session expired, or the wallet API no longer accepts it.

OMSWalletSessionChangeListener

OMSWalletExpiredSession

A session that expired, as reported by an expired session change.

DEFAULT_SESSION_LIFETIME_SECONDS

Session lifetime requested when sessionLifetimeSeconds is omitted (180 days, the maximum).

MAX_SESSION_LIFETIME_SECONDS

Largest accepted sessionLifetimeSeconds (180 days).

GetIdTokenParams

WalletCredential

AccessGrant

DirectAccessGrant

RemoteAccessGrant

RemoteCredentialMetadata

SmartSessionGrant

ListAccessParams

ListAccessPageParams

AccessGrantPage

AuthorizeRemoteAccessParams

AuthorizedRemoteAccess

RemoteAccessSession

SmartSessionGrantUsage

RevokeAccessParams

StorageManager

LocalStorageManager

Browser implementation backed by localStorage. For Node.js or custom runtimes, supply your own StorageManager to OMSWallet.

SessionStorageManager

MemoryStorageManager

createDefaultStorage

CredentialSigningAlgorithm

CredentialSigner

WebCryptoP256CredentialSigner

EthereumPrivateKeyCredentialSigner

Remote applications

RemoteAccessClient

Signs remote-application requests for owner-authorized smart sessions.

RemoteAccessClientParams

RegisterRemoteCredentialParams

RegisteredRemoteCredential

RevokeRemoteCredentialParams

ListRemoteAccessSessionsParams

RemoteAccessSessionPage

PrepareRemoteTransactionParams

PreparedRemoteTransaction

ExecuteRemoteTransactionParams

ExecutedRemoteTransaction

Transactions and signing

WalletClient.signMessage

WalletClient.signSolanaMessage

WalletClient.signTypedData

WalletClient.isValidMessageSignature

WalletClient.isValidSolanaMessageSignature

WalletClient.isValidTypedDataSignature

WalletClient.signTronMessage

WalletClient.signTronTypedData

WalletClient.isValidTronMessageSignature

WalletClient.isValidTronTypedDataSignature

WalletClient.sendTransaction

WalletClient.sendSolanaTransfer

WalletClient.sendTronTransaction

WalletClient.callTronContract

WalletClient.callContract

WalletClient.getTransactionStatus

SignMessageParams

SignSolanaMessageParams

SignTypedDataParams

IsValidMessageSignatureParams

IsValidSolanaMessageSignatureParams

IsValidTypedDataSignatureParams

SignTronMessageParams

SignTronTypedDataParams

IsValidTronMessageSignatureParams

IsValidTronTypedDataSignatureParams

AbiArg

SendTransactionBase

SendNativeTransactionParams

SendDataTransactionParams

SendContractTransactionParams

SendTransactionParams

SendSolanaTransferParams

SendTronTransactionParams

A Tron transaction. Tron wallets are EOAs and always execute in native mode. Omitting data sends a plain TRX transfer. Passing data (including '0x') makes the transaction a contract call; '0x' calls the contract’s payable fallback.

CallTronContractParams

A Tron contract call, ABI-encoded by the wallet service. Address-typed arguments accept Base58Check (T…) addresses.

SendTransactionResponse

TransactionMode

TransactionStatus

TransactionStatusResponse

TransactionStatusPollingOptions

FeeOption

FeeToken

FeeOptionSelection

FeeOptionWithBalance

FeeOptionSelector

feeOptionSelection

Indexer

IndexerClient

GetBalancesParams

BalancesResult

GetSolanaBalancesParams

SolanaBalancesResult

SolanaBalance

SolanaNativeBalance

SolanaFungibleTokenBalance

SolanaNetworkError

SolanaVerificationStatus

SolanaVerificationSource

GetTronBalancesParams

TronBalancesResult

TronBalance

TronNativeBalance

TronFungibleTokenBalance

TronNetworkError

TronVerificationStatus

GetTransactionHistoryParams

TransactionHistoryResult

IndexerNetworkType

ContractVerificationStatus

MetadataOptions

SortBy

TokenBalancesPageRequest

TokenBalancesPage

TokenBalance

NativeTokenBalance

ContractTokenBalance

TokenContractInfo

TokenMetadata

TokenMetadataAsset

Transaction

TransactionTransfer

Networks, types, and errors

Network

Networks

SolanaNetwork

SolanaNetworks

TronNetwork

TronNetworks

findNetworkById

findNetworkByName

OMSWalletErrorCode

OMSWalletUpstreamError

OMSWalletOperation

Operation identifiers reported in OMSWalletError.operation.

WalletOperation

IndexerOperation

RemoteAccessOperation

OMSWalletError

OMSWalletRequestError

OMSWalletResponseError

OMSWalletSessionError

OMSWalletTransactionError

OMSWalletSelectionError

OMSWalletValidationError

OMSWalletStorageError

isOMSWalletError