Skip to content

Commit

Permalink
update README with options useSessionStroage
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Dec 20, 2024
1 parent 4c319bb commit d69d3a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ pnpm add burner-connector
```ts
import { burner } from "burner-connector";
import { mainnet, base } from "viem/chains";

// burner function can also called with param `{ useSessionStorage: true }` to create a new wallet for each browser tab
// - `useSessionStorage` to false (default) to persist wallet across browser tabs(incognito window will have different wallet)
// - `useSessionStorage` to true to create a new wallet for each browser tab

export const config = createConfig({
chains: [mainnet, base],
connectors: [burner()],
Expand All @@ -49,6 +54,13 @@ import { mainnet, base } from "viem/chains";

const wallets = [metaMaskWallet, rainbowkitBurnerWallet];

// Configure burner wallet storage
// - `useSessionStorage` to false (default) to persist wallet across browser tabs(incognito window will have different wallet)
// - `useSessionStorage` to true to create a new wallet for each browser tab
// rainbowkitBurnerWallet.useSessionStorage = true;

const wallets = [metaMaskWallet, rainbowkitBurnerWallet];

const wagmiConnectors = connectorsForWallets(
[
{
Expand Down

0 comments on commit d69d3a1

Please sign in to comment.