Skip to content

Commit 8c2ff8e

Browse files
authored
Merge pull request #608 from reown-com/devin/1725026521-bitcoin-signet-docs
docs: add Bitcoin Signet network to documentation examples
2 parents bae3614 + becf010 commit 8c2ff8e

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

snippets/appkit/javascript/bitcoin/about/implementation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ On top of your app set up the following configuration.
88
// App.tsx
99
import { createAppKit } from '@reown/appkit'
1010
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
11-
import { bitcoin } from '@reown/appkit/networks'
11+
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
1212

1313
// 1. Get projectId from https://dashboard.reown.com
1414
const projectId = 'YOUR_PROJECT_ID'
1515

1616
// 2. Set the networks
17-
const networks = [bitcoin]
17+
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]
1818

1919
// 3. Set up Bitcoin Adapter
2020
const bitcoinAdapter = new BitcoinAdapter({

snippets/appkit/next/bitcoin/about/implementation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ On top of your app set up the following configuration, making sure that all func
88
// App.tsx
99
import { createAppKit } from '@reown/appkit/react'
1010
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
11-
import { bitcoin } from '@reown/appkit/networks'
11+
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
1212

1313
// 1. Get projectId from https://dashboard.reown.com
1414
const projectId = 'YOUR_PROJECT_ID'
1515

1616
// 2. Set the networks
17-
const networks = [bitcoin]
17+
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]
1818

1919
// 3. Set up Bitcoin Adapter
2020
const bitcoinAdapter = new BitcoinAdapter({

snippets/appkit/nuxt/bitcoin/about/implementation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ In your `app.vue` file set up the following configuration:
2121
<script setup lang="ts">
2222
import { createAppKit } from '@reown/appkit/vue'
2323
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
24-
import { bitcoin } from '@reown/appkit/networks'
24+
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
2525

2626
const config = useRuntimeConfig()
2727
const projectId = config.public.projectId
2828

29-
const networks = [bitcoin]
29+
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]
3030

3131
const bitcoinAdapter = new BitcoinAdapter({
3232
projectId

snippets/appkit/react/bitcoin/about/implementation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ On top of your app set up the following configuration, making sure that all func
88
// App.tsx
99
import { createAppKit } from '@reown/appkit/react'
1010
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
11-
import { bitcoin } from '@reown/appkit/networks'
11+
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
1212

1313
// 1. Get projectId from https://dashboard.reown.com
1414
const projectId = 'YOUR_PROJECT_ID'
1515

1616
// 2. Set the networks
17-
const networks = [bitcoin]
17+
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]
1818

1919
// 3. Set up Bitcoin Adapter
2020
const bitcoinAdapter = new BitcoinAdapter({

snippets/appkit/shared/multichain.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ import { createAppKit } from '@reown/appkit'
192192
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
193193
import { WagmiAdapter } from '@reown/appkit-adapter-wagmi'
194194

195-
import { mainnet, arbitrum, sepolia, bitcoin } from '@reown/appkit/networks'
195+
import { mainnet, arbitrum, sepolia, bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
196196

197-
const networks: [AppKitNetwork, ...AppKitNetwork[]] = [mainnet, arbitrum, sepolia, bitcoin]
197+
const networks: [AppKitNetwork, ...AppKitNetwork[]] = [mainnet, arbitrum, sepolia, bitcoin, bitcoinTestnet, bitcoinSignet]
198198

199199
// 0. Get projectId from https://dashboard.reown.com
200200
const projectId = 'YOUR_PROJECT_ID'

snippets/appkit/svelte/bitcoin/about/implementation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Start by importing `createAppKit` from `@reown/appkit` and the necessary chains
77
import { browser } from '$app/environment'
88
import { createAppKit } from '@reown/appkit'
99
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
10-
import { bitcoin, bitcoinTestnet } from '@reown/appkit/networks'
10+
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
1111

1212
// Only initialize in browser environment
1313
let appKit: ReturnType<typeof createAppKit> | undefined = undefined
@@ -18,15 +18,15 @@ if (browser) {
1818
throw new Error('VITE_PROJECT_ID is not set')
1919
}
2020

21-
const networks = [bitcoin, bitcoinTestnet]
21+
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]
2222

2323
// Create adapter
2424
const bitcoinAdapter = new BitcoinAdapter()
2525

2626
// Initialize AppKit
2727
appKit = createAppKit({
2828
adapters: [bitcoinAdapter],
29-
networks: [bitcoin, bitcoinTestnet],
29+
networks: [bitcoin, bitcoinTestnet, bitcoinSignet],
3030
defaultNetwork: bitcoin,
3131
projectId,
3232
metadata: {

snippets/appkit/vue/bitcoin/about/implementation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ In your `App.vue` file set up the following configuration.
1111

1212
import { createAppKit } from '@reown/appkit/react'
1313
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
14-
import { bitcoin } from '@reown/appkit/networks'
14+
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'
1515

1616
// 1. Get projectId from https://dashboard.reown.com
1717
const projectId = 'YOUR_PROJECT_ID'
1818

1919
// 2. Set the networks
20-
const networks = [bitcoin]
20+
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]
2121

2222
// 3. Set up Bitcoin Adapter
2323
const bitcoinAdapter = new BitcoinAdapter({

0 commit comments

Comments
 (0)