W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
所有輔助函數(shù)都有一個(gè)?chain
?選項(xiàng)來指定從哪個(gè)區(qū)塊鏈獲取數(shù)據(jù)。 以下是?chain
?選項(xiàng)當(dāng)前支持的值。 任何“?Lookup Values
?”都將匹配相應(yīng)的鏈。
如果未指定,該鏈將默認(rèn)為以太坊主網(wǎng)。
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|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: