πŸ§‘β€πŸ’» Wallet Home

Wallet Home allows users to interact with Face Wallet like the standalone wallet(ex. Metamask), to manage a wallet or send/swap/convert assets in the wallet.


home()

This method allows an user to open the Wallet Home of the Face Wallet within your Dapp. The users can view or copy their wallet address, check the assets of the wallet, and send or deposit assets in Face Wallet.

Wallet Home is configured to the blockchain network which the Dapp has selected when calling home() interface of Face Wallet SDK. You can select the network of Home Modal with a parameter named networks of home() interface.

🚧

If you do not use the networks parameter, the mainnet networks supported by Face Wallet will be set by default.

import { Face, Network } from '@haechi-labs/face-sdk';

const face = new Face({
  network: Network.GOELRI, 
  apiKey: 'YOUR_DAPP_API_KEY'
});

await face.wallet.home(); // All available networks
await face.wallet.home({
  networks: [
  	Network.GOELRI, Network.MUMBAI, Network.BAOBAB, Network.BORA_TESTNET // Selected networks
  ]
});