Wallet Access
userWallets
Get the current list of user wallets (synchronous).
Example
userWalletsChanges
Observe wallet list changes (reactive flow).
Example
Balance Operations
getBalance
Get the balance for a specific wallet.
Parameters
- wallet (BaseWallet): The wallet to check balance for
Returns
- String: Balance as a string (in native token units)
Example
Network Operations
getNetwork
Get the current network for a wallet.
Parameters
- wallet (BaseWallet): The wallet to get network for
Returns
- GenericNetwork: The current network
Example
switchNetwork
Switch a wallet to a different network.
Parameters
- wallet (BaseWallet): The wallet to switch networks for
- network (GenericNetwork): The target network
Example
Message Signing
signMessage
Sign a message with a wallet.
Parameters
- wallet (BaseWallet): The wallet to sign with
- message (String): The message to sign
Returns
Example
Typed Data Signing (EIP-712)
signTypedData
Sign typed data (EIP-712) with a wallet. This is an extension on sdk.wallets, so it requires an import.
Parameters
- wallet (BaseWallet): The wallet to sign with
- typedDataJson (String): The typed data as a JSON string
Returns
Example
Signature Verification
The SDK does not expose on-device signature verification. Recover the signer on your backend instead; see the backend verification example in Message Signing.
Primary Wallet Management
setPrimary
Set a wallet as the primary wallet for the user.
Parameters
- walletId (String): The ID of the wallet to set as primary
Example
Last modified on September 29, 2026