Skip to main content

Wallet Access

userWallets

Get the current list of user wallets (synchronous).

Example

userWalletsChanges

Observe wallet list changes (reactive stream).

Example

StreamBuilder 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

FutureBuilder Example

Network Operations

getNetwork

Get the current network for a wallet.

Parameters

  • wallet (BaseWallet): The wallet to get network for

Returns

  • Network: The current network

Example

switchNetwork

Switch a wallet to a different network.

Parameters

  • wallet (BaseWallet): The wallet to switch networks for
  • network (Network): The target network

Example

Complete Example with Network Selector

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

Complete Example

Typed Data Signing (EIP-712)

signTypedData

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

Parameters

  • walletId (String): The ID of the embedded wallet to sign with
  • typedData (TypedData): The typed data (from dynamic_sdk_web3dart)

Returns

  • String: The signature

Example

Complete 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

Complete Example with Wallet List

Complete Wallet Management Screen

Last modified on October 30, 2026