Skip to content

Commit 3eae714

Browse files
authored
Update core docs with more chains and a link to the react hooks package in case they are using react (#850)
1 parent 4a440dc commit 3eae714

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

packages/core/README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Note:
1616

1717
- MEW wallet currently fails to install on M1 macs
1818
- All wallet modules (except for `injected-wallets`) require extra dependencies and may require polyfilling the node built in modules for the browser. See the [Build Environments](##build-environments) section for more info
19+
- **If using React** you may be interested in checking out the React Hooks package here - https://www.npmjs.com/package/@web3-onboard/react
1920

2021
## Initialization
2122

@@ -107,24 +108,43 @@ const onboard = Onboard({
107108
id: '0x1',
108109
token: 'ETH',
109110
label: 'Ethereum Mainnet',
110-
rpcUrl: ETH_MAINNET_RPC
111+
rpcUrl: `https://mainnet.infura.io/v3/${INFURA_ID}`
112+
},
113+
{
114+
id: '0x3',
115+
token: 'tROP',
116+
label: 'Ethereum Ropsten Testnet',
117+
rpcUrl: `https://ropsten.infura.io/v3/${INFURA_ID}`
111118
},
112119
{
113120
id: '0x4',
114121
token: 'rETH',
115122
label: 'Ethereum Rinkeby Testnet',
116-
rpcUrl: ETH_RINKEBY_RPC
123+
rpcUrl: `https://rinkeby.infura.io/v3/${INFURA_ID}`
124+
},
125+
{
126+
id: '0x38',
127+
token: 'BNB',
128+
label: 'Binance Smart Chain',
129+
rpcUrl: 'https://bsc-dataseed.binance.org/'
117130
},
118131
{
119132
id: '0x89',
120133
token: 'MATIC',
121134
label: 'Matic Mainnet',
122-
rpcUrl: MATIC_MAINNET_RPC
135+
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
136+
},
137+
{
138+
id: '0xfa',
139+
token: 'FTM',
140+
label: 'Fantom Mainnet',
141+
rpcUrl: 'https://rpc.ftm.tools/'
123142
}
124143
],
125144
appMetadata: {
126145
name: 'Token Swap',
127146
icon: myIcon, // svg string icon
147+
logo: myLogo, // svg string logo
128148
description: 'Swap tokens for other tokens',
129149
recommendedInjectedWallets: [
130150
{ name: 'MetaMask', url: 'https://metamask.io' },

0 commit comments

Comments
 (0)