# 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**

{% hint style="info" %} <mark style="color:red;">\*</mark> Denotes required props
{% endhint %}

| Prop                                                    | Type                                                                                                       | Description                                            |
| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| `primaryChainId`                                        | `string`                                                                                                   | The primary chain your dApp's user will connect to.    |
| `connectWallet`<mark style="color:red;">\*</mark>       | `() => void`                                                                                               | Method to trigger your dApps' connect wallet flow.     |
| `disconnectWallet`<mark style="color:red;">\*</mark>    | `() => void`                                                                                               | Method to trigger your dApps' disconnect wallet flow.  |
| `connectedWalletType`<mark style="color:red;">\*</mark> | `WalletType`                                                                                               | Wallet which is intended to be connected on the dApp.  |
| `walletConnectOptions`                                  | [SignClientTypes.Options](https://web3auth.io/docs/sdk/pnp/web/adapters/wallet-connect-v2#adaptersettings) | Wallet Connect (WC) options.                           |
| `capsuleConfig`                                         | [CapsuleConfig](https://arc.net/l/quote/hvidzgpv)                                                          | Social Login options.                                  |
| `chains`                                                | `string[]`                                                                                                 | .List of chain IDs for which you want to show balances |
