diff --git a/docs/src/routes/docs/[...3]modules/react.md b/docs/src/routes/docs/[...3]modules/react.md index 82e35128f..4a3b524fe 100644 --- a/docs/src/routes/docs/[...3]modules/react.md +++ b/docs/src/routes/docs/[...3]modules/react.md @@ -32,7 +32,8 @@ import injectedModule from '@web3-onboard/injected-wallets' import { ethers } from 'ethers' // Sign up to get your free API key at https://explorer.blocknative.com/?signup=true -const dappId = '1730eff0-9d50-4382-a3fe-89f0d34a2070' +// Required for Transaction Notifications and Transaction Preview +const apiKey = '1730eff0-9d50-4382-a3fe-89f0d34a2070' const injected = injectedModule() @@ -41,6 +42,7 @@ const rpcUrl = `https://mainnet.infura.io/v3/${infuraKey}` // initialize Onboard init({ + apiKey, wallets: [injected], chains: [ { diff --git a/packages/react/README.md b/packages/react/README.md index db213cafc..8785a9dc6 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -25,7 +25,8 @@ import injectedModule from '@web3-onboard/injected-wallets' import { ethers } from 'ethers' // Sign up to get your free API key at https://explorer.blocknative.com/?signup=true -const dappId = '1730eff0-9d50-4382-a3fe-89f0d34a2070' +// Required for Transaction Notifications and Transaction Preview +const apiKey = '1730eff0-9d50-4382-a3fe-89f0d34a2070' const injected = injectedModule() @@ -35,6 +36,7 @@ const rpcUrl = `https://eth-mainnet.g.alchemy.com/v2/${rpcAPIKey}` || `https://m // initialize Onboard init({ + apiKey, wallets: [injected], chains: [ { diff --git a/packages/react/package.json b/packages/react/package.json index 1ff237c83..1e9e6716f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.8.0", + "version": "2.8.1-alpha.1", "description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum",