1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/content/tutorials/connect-to-networks.md

1.6 KiB

title description
Connect to Ocean-Related Networks On connecting to Ethereum, Rinkeby and Your Local Network.

##Connect to Ethereum mainnet

Metamask and other ERC20 wallets default to Ethereum mainnet. Therefore your wallet is almost certainly pointing to Ethereum by default.

Some apps may need network_id and chain_id. The values are both 1 for Ethereum mainnet. Symbol and nickname can be whatever value you like.

##Connect to Rinkeby testnet

In MetaMask, click on the network name dropdown, then select Rinkeby.

Its network_id is 3 and chain_id is 3.

##Connect to local Ganache network

Metamask. In MetaMask, click on the network name then click on Custom RPC in the drop-down list. Scroll down to the New Network section. Enter the above RPC URL. You don't need to add a port number to the end of the RPC URL. Enter the ChainID, Symbol and Nickname if you like. See the MetaMask docs about how it uses the ChainID.

Barge. If you're using Ocean Barge to help run a local network, you can connect to that local node at RPC URL http://localhost:8545 (called "Localhost 8545" in MetaMask). You can configure that local node by editing the files in the barge/networks/pacific/config/ directory.

More info