Skip to main content

Launch Wallet Services

The launchWalletServices method launches the templated wallet UI in WebView. The template wallet allows the user to view their account details, tokens, and additional features to interact with connected blockchain network.

Parameters

The launchWalletServices method takes in ChainConfig as a required input.

ParameterDescription
chainNamespaceCustom chain namespace for the chain. Defaults to ChainNamespace.eip155.
decimals?Number of decimals for the native currency. Defaults to 18.
blockExplorerUrl?URL of the block explorer for the chain.
chainIdChain ID of the chain.
displayName?Display name for the chain.
logo?Logo URL for the chain.
rpcTargetRPC target URL for the chain.
ticker?Ticker symbol for the native currency.
tickerName?Name of the native currency.

Usage

Usage
try {
await Web3AuthFlutter.launchWalletServices(
ChainConfig(
chainId: "0x1",
rpcTarget: "https://mainnet.infura.io/v3/$key",
),
);
} on UserCancelledException {
log("User cancelled.");
} catch(e) {
log("Unknown exception occurred");
}
On this page