Before you begin, you need to install the following tools:
- Install the dependencies:
npm install burner-connector
or
yarn add burner-connector
or
pnpm add burner-connector
- Using wagmi
burner
connector :
import { burner } from "burner-connector";
import { mainnet, base } from "viem/chains";
export const config = createConfig({
chains: [mainnet, base],
connectors: [burner()],
transports: {
[mainnet.id]: http(),
[base.id]: http(),
},
});
- Integrate with rainbowkit:
import { connectorsForWallets } from "@rainbow-me/rainbowkit";
import { metaMaskWallet } from "@rainbow-me/rainbowkit/wallets";
import { rainbowkitBurnerWallet } from "burner-connector";
import { mainnet, base } from "viem/chains";
const wallets = [metaMaskWallet, rainbowkitBurnerWallet];
const wagmiConnectors = connectorsForWallets(
[
{
groupName: "Supported Wallets",
wallets,
},
],
{
appName: "scaffold-eth-2",
projectId: "YOUR_WALLET_CONNECT_PROJECT_ID",
},
);
const wagmiConfig = createConfig({
chains: [mainnet, base],
connectors: wagmiConnectors,
ssr: true,
transports: {
[mainnet.id]: http(),
[base.id]: http(),
},
});
Checkout CONTRIBUTING.md for more details on how to set it up locally.