W3Cschool
恭喜您成為首批注冊用戶
獲得88經驗值獎勵
所有輔助函數都有一個?chain
?選項來指定從哪個區(qū)塊鏈獲取數據。 以下是?chain
?選項當前支持的值。 任何“?Lookup Values
?”都將匹配相應的鏈。
如果未指定,該鏈將默認為以太坊主網。
Chain | Lookup Values |
Ethereum Mainnet | ?eth ?, ?mainnet ?, ?0x1 ? |
Ropsten (Ethereum Testnet) | ?testnet ?, ?ropsten ?, ?0x3 ? |
Rinkeby (Ethereum Testnet) | ?rinkeby ?, ?0x4 ? |
Goerli (Ethereum Testnet) | ?goerli ?, ?0x5 ? |
Kovan (Ethereum Testnet) | ?kovan ?, ?0x2a ? |
Binance Smart Chain Mainnet | ?bsc ?, ?binance ?, ?binance smart chain ?, ?0x38 ? |
Binance Smart Chain Testnet | ?bsc testnet ?, ?binance testnet ?, ?binance smart chain testnet ?, ?0x61 ? |
Polygon (Matic) Mainnet | ?matic ?, ?polygon ?, ?0x89 ? |
Mumbai (Matic Testnet) | ?mumbai ?, ?matic testnet ?, ?polygon testnet ?, ?0x13881 ? |
Avalanche Mainnet | ?avalanche ?, ?0xa86a ? |
Avalanche Testnet | ?avalanche testnet ?, ?0xa869 ? |
Fantom Mainnet | ?fantom ?, ?0xfa ? |
Local Dev Chain (Ganache, Hardhat) (doesn't work currently with Web3API) | ?ganache ?, ?hardhat ?, ?localdevchain ?, ?local devchain ? ,?dev ?, ?0x539 ? |
本地開發(fā)鏈(?Ganache
?、?Hardhat
?)目前不適用于 Web3API。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯系方式:
更多建議: