Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions snippets/appkit/javascript/bitcoin/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ On top of your app set up the following configuration.
// App.tsx
import { createAppKit } from '@reown/appkit'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { bitcoin } from '@reown/appkit/networks'
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'

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

// 2. Set the networks
const networks = [bitcoin]
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]

// 3. Set up Bitcoin Adapter
const bitcoinAdapter = new BitcoinAdapter({
Expand Down
4 changes: 2 additions & 2 deletions snippets/appkit/next/bitcoin/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ On top of your app set up the following configuration, making sure that all func
// App.tsx
import { createAppKit } from '@reown/appkit/react'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { bitcoin } from '@reown/appkit/networks'
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'

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

// 2. Set the networks
const networks = [bitcoin]
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]

// 3. Set up Bitcoin Adapter
const bitcoinAdapter = new BitcoinAdapter({
Expand Down
4 changes: 2 additions & 2 deletions snippets/appkit/nuxt/bitcoin/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ In your `app.vue` file set up the following configuration:
<script setup lang="ts">
import { createAppKit } from '@reown/appkit/vue'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { bitcoin } from '@reown/appkit/networks'
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'

const config = useRuntimeConfig()
const projectId = config.public.projectId

const networks = [bitcoin]
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]

const bitcoinAdapter = new BitcoinAdapter({
projectId
Expand Down
4 changes: 2 additions & 2 deletions snippets/appkit/react/bitcoin/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ On top of your app set up the following configuration, making sure that all func
// App.tsx
import { createAppKit } from '@reown/appkit/react'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { bitcoin } from '@reown/appkit/networks'
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'

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

// 2. Set the networks
const networks = [bitcoin]
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]

// 3. Set up Bitcoin Adapter
const bitcoinAdapter = new BitcoinAdapter({
Expand Down
4 changes: 2 additions & 2 deletions snippets/appkit/shared/multichain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ import { createAppKit } from '@reown/appkit'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { WagmiAdapter } from '@reown/appkit-adapter-wagmi'

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

const networks: [AppKitNetwork, ...AppKitNetwork[]] = [mainnet, arbitrum, sepolia, bitcoin]
const networks: [AppKitNetwork, ...AppKitNetwork[]] = [mainnet, arbitrum, sepolia, bitcoin, bitcoinTestnet, bitcoinSignet]

// 0. Get projectId from https://dashboard.reown.com
const projectId = 'YOUR_PROJECT_ID'
Expand Down
6 changes: 3 additions & 3 deletions snippets/appkit/svelte/bitcoin/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Start by importing `createAppKit` from `@reown/appkit` and the necessary chains
import { browser } from '$app/environment'
import { createAppKit } from '@reown/appkit'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { bitcoin, bitcoinTestnet } from '@reown/appkit/networks'
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'

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

const networks = [bitcoin, bitcoinTestnet]
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]

// Create adapter
const bitcoinAdapter = new BitcoinAdapter()

// Initialize AppKit
appKit = createAppKit({
adapters: [bitcoinAdapter],
networks: [bitcoin, bitcoinTestnet],
networks: [bitcoin, bitcoinTestnet, bitcoinSignet],
defaultNetwork: bitcoin,
projectId,
metadata: {
Expand Down
4 changes: 2 additions & 2 deletions snippets/appkit/vue/bitcoin/about/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ In your `App.vue` file set up the following configuration.

import { createAppKit } from '@reown/appkit/react'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'
import { bitcoin } from '@reown/appkit/networks'
import { bitcoin, bitcoinTestnet, bitcoinSignet } from '@reown/appkit/networks'

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

// 2. Set the networks
const networks = [bitcoin]
const networks = [bitcoin, bitcoinTestnet, bitcoinSignet]

// 3. Set up Bitcoin Adapter
const bitcoinAdapter = new BitcoinAdapter({
Expand Down