From 17415a791c5f304bdc70fa6327789832a11bc942 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 1 May 2023 12:20:53 -0600 Subject: [PATCH] Update react hooks docs re usage of apiKey --- docs/src/routes/docs/[...3]modules/react.md | 4 +++- packages/react/README.md | 4 +++- packages/react/package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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",