Embedded Wallet Provider

For embedded wallet to work, use need to use the Embedded wallet provider.

Embedded wallet provider takes care of wallet connections, chains enabled to view balances - all within embedded wallet.

Usage

import { EmbeddedWalletProvider } from '@leapwallet/embedded-wallet-sdk-react'

Web3 Wallet Connect Support

If your dApp supports web3 wallet connect, you must pass in the walletConnectOptions prop.

Capsule Support

If your dApp supports social login via capsule, you must pass in the capsuleConfig prop.

Props

* Denotes required props

PropTypeDescription

primaryChainId

string

The primary chain your dApp's user will connect to.

connectWallet*

() => void

Method to trigger your dApps' connect wallet flow.

disconnectWallet*

() => void

Method to trigger your dApps' disconnect wallet flow.

connectedWalletType*

WalletType

Wallet which is intended to be connected on the dApp.

walletConnectOptions

Wallet Connect (WC) options.

capsuleConfig

Social Login options.

chains

string[]

.List of chain IDs for which you want to show balances

Last updated