-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
904d4a2
commit 310022c
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"burner-connector": patch | ||
--- | ||
|
||
add README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 🔥 Burner Connector | ||
|
||
## Quickstart | ||
|
||
1. Install the dependencies: | ||
|
||
```bash | ||
npm install burner-connector | ||
|
||
or | ||
|
||
yarn add burner-connector | ||
|
||
or | ||
|
||
pnpm add burner-connector | ||
``` | ||
|
||
2. Using wagmi `burner` connector : | ||
|
||
```ts | ||
import { burner } from "burner-connector"; | ||
export const config = createConfig({ | ||
chains: [mainnet, base], | ||
connectors: [burner()], | ||
transports: { | ||
[mainnet.id]: http(), | ||
[base.id]: http(), | ||
}, | ||
}); | ||
``` | ||
|
||
3. Integrate with rainbowkit: | ||
|
||
```ts | ||
import { rainbowkitBurnerWallet } from "burner-connector"; | ||
|
||
const wallets = [metaMaskWallet, rainbowkitBurnerWallet]; | ||
|
||
const wagmiConfig = createConfig({ | ||
chains: [mainnet, base], | ||
connectors: wagmiConnectors, | ||
ssr: true, | ||
transports: { | ||
[mainnet.id]: http(), | ||
[base.id]: http(), | ||
}, | ||
}); | ||
``` |