Skip to main content

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

  • String - The signature

Example

Typed Data Signing (EIP-712)

signTypedData

Sign typed data (EIP-712) with a wallet.

Parameters

  • wallet (BaseWallet) - The wallet to sign with
  • typedDataJson (String) - The typed data as a JSON string

Returns

  • String - The signature

Example

Signature Verification

verifySignature

Verify a signature against a message and wallet.

Parameters

  • wallet (BaseWallet) - The wallet that signed the message
  • message (String) - The original message
  • signature (String) - The signature to verify

Returns

  • Boolean - true if signature is valid, false otherwise

Example

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 February 3, 2026