Skip to main content

OMSWallet

OMSWallet

OMSWalletParams

Authentication and sessions

OMSWalletClient.activeWallet

The active wallet, or undefined when signed out or while a manual wallet selection is pending. Read synchronously from the native SDK, so it is current right after a sign-in or wallet change returns. Returns the same frozen object until the active wallet or session changes.

OMSWalletClient.session

The active session; defined exactly when activeWallet is. Returns the same frozen object until the active wallet or session changes.

OMSWalletClient.onSessionChange

Calls listener after every change of activeWallet or session, and returns a function that removes the listener. A listener added while signed out first receives the last expired change, until a sign-in starts or the user signs out.

OMSWalletClient.startEmailAuth

OMSWalletClient.completeEmailAuth

OMSWalletClient.signInWithOidcIdToken

OMSWalletClient.startOidcRedirectAuth

OMSWalletClient.handleOidcRedirectCallback

OMSWalletClient.listWallets

OMSWalletClient.useWallet

OMSWalletClient.claimWallet

Claims a preallocated wallet for the signed-in user and makes it the active wallet. During a pending manual selection, use PendingWalletSelection.claimAndSelectWallet.

OMSWalletClient.createWallet

OMSWalletClient.importWallet

OMSWalletClient.getWalletImportRecipientKey

OMSWalletClient.importEncryptedWallet

OMSWalletClient.signOut

OMSWalletClient.getIdToken

OMSWalletClient.inspectRemoteCredential

OMSWalletClient.authorizeRemoteAccess

OMSWalletClient.listAccess

OMSWalletClient.listAccessPages

OMSWalletClient.listAccessPage

OMSWalletClient.getRemoteAccessSession

OMSWalletClient.getRemoteAccessSessionUsage

OMSWalletClient.revokeAccess

OmsRelayOidcProviders

WalletType

WalletKeyOrigin

WalletSelectionBehavior

OMSWalletEmailSessionAuth

OMSWalletOidcSessionAuthFlow

OMSWalletOidcSessionAuth

OMSWalletSessionAuth

OMSWalletSession

Expiry and auth metadata for the active session.

OMSWalletExpiredSession

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

OMSWalletSessionChangeReason

Why the active wallet or session changed.
  • signedIn: a wallet became active, by a sign-in or by restoring a saved session once the device was unlocked.
  • walletChanged: another wallet of the same sign-in became active.
  • expiryUpdated: session.expiresAt moved. Safe to ignore unless you show the expiry.
  • signedOut: there is no session any more and it did not expire.
  • expired: the session expired, or the wallet API no longer accepts it.

OMSWalletSessionChangeEvent

The state right after a session change.

OMSWalletSessionChangeListener

DEFAULT_SESSION_LIFETIME_SECONDS

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

MAX_SESSION_LIFETIME_SECONDS

Largest accepted sessionLifetimeSeconds (180 days).

WalletAccount

WalletActivationResult

WalletCredential

PendingWalletSelection

CompleteAuthResult

StartEmailAuthParams

CompleteEmailAuthParams

SignInWithOidcIdTokenParams

OidcAuthMode

OmsRelayOidcProvider

An opaque SDK-owned registry value. It must come from OmsRelayOidcProviders; object literals are invalid.

CustomOidcProviderConfig

OidcProviderConfig

StartOidcRedirectAuthParams

StartOidcRedirectAuthResult

HandleOidcRedirectCallbackParams

OidcRedirectAuthResult

CreateWalletParams

WalletImportCipherSuite

ImportWalletParams

WalletImportRecipientKey

EncryptedWalletImportKeyMaterial

ImportEncryptedWalletParams

GetIdTokenParams

AccessPage

RemoteCredentialMetadata

SmartSessionGrant

DirectAccessGrant

RemoteAccessGrant

AccessGrant

AccessGrantType

AccessGrantPage

AuthorizeRemoteAccessParams

AuthorizedRemoteAccess

RemoteAccessSession

SmartSessionGrantUsage

RevokeAccessParams

ListAccessParams

ListAccessPageParams

Transactions and signing

OMSWalletClient.signMessage

OMSWalletClient.signSolanaMessage

OMSWalletClient.signTypedData

OMSWalletClient.signTronMessage

OMSWalletClient.signTronTypedData

OMSWalletClient.sendTransaction

OMSWalletClient.sendSolanaTransfer

OMSWalletClient.sendTronTransaction

OMSWalletClient.callContract

OMSWalletClient.callTronContract

OMSWalletClient.getTransactionStatus

OMSWalletClient.isValidMessageSignature

OMSWalletClient.isValidSolanaMessageSignature

OMSWalletClient.isValidTypedDataSignature

OMSWalletClient.isValidTronMessageSignature

OMSWalletClient.isValidTronTypedDataSignature

FeeOptionSelectors

SignMessageParams

SignSolanaMessageParams

SignTypedDataParams

SignTronMessageParams

SignTronTypedDataParams

IsValidMessageSignatureParams

IsValidSolanaMessageSignatureParams

IsValidTypedDataSignatureParams

IsValidTronMessageSignatureParams

IsValidTronTypedDataSignatureParams

CallContractArg

TransactionMode

TransactionStatus

TransactionStatusResolution

TransactionStatusPollingOptions

SendTransactionResponse

TransactionStatusResponse

FeeToken

FeeOption

FeeOptionSelection

FeeOptionWithBalance

FeeOptionSelector

SendTransactionParams

SendSolanaTransferParams

SendTronTransactionParams

A Tron transaction. Tron wallets always execute in native mode. Omitting data sends a plain TRX transfer. Passing data (including '0x') makes the transaction a contract call.

CallContractParams

CallTronContractParams

A Tron contract call, ABI-encoded by the wallet service.

Indexer

OMSIndexerClient.getBalances

OMSIndexerClient.getTransactionHistory

OMSIndexerClient.getSolanaBalances

OMSIndexerClient.getTronBalances

IndexerNetworkType

ContractVerificationStatus

MetadataOptions

SortBy

TokenBalancesPageRequest

TokenBalancesPage

TokenContractInfo

TokenMetadataAsset

TokenMetadata

NativeTokenBalance

ContractTokenBalance

TokenBalance

BalancesResult

GetBalancesParams

SolanaVerificationStatus

SolanaVerificationSource

SolanaNativeBalance

SolanaFungibleTokenBalance

SolanaBalance

SolanaNetworkError

GetSolanaBalancesParams

SolanaBalancesResult

TronVerificationStatus

TronNativeBalance

TronFungibleTokenBalance

TronBalance

TronNetworkError

GetTronBalancesParams

TronBalancesResult

TransactionTransfer

Transaction

TransactionHistoryResult

GetTransactionHistoryParams

Networks, types, and errors

Network

An opaque SDK-owned registry value. It must come from Networks; object literals are invalid.

Networks

SolanaNetwork

SolanaNetworks

TronNetwork

TronNetworks

findNetworkById

findNetworkByName

ParseUnitsRoundingMode

ParseUnitsOptions

parseUnits

formatUnits

OMSWalletErrorCode

OMSWalletUpstreamError

OMSWalletErrorDetails

OMSWalletError

isOMSWalletError