1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 08:20:22 +01:00
docs/content/tutorials/connect-to-networks.md

41 lines
3.2 KiB
Markdown
Raw Normal View History

2019-03-18 14:14:40 +01:00
---
title: Connect to Ocean-Related Networks
2019-07-08 17:29:12 +02:00
description: How to connect to the Pacific network, Nile testnet and other Ocean-related networks.
2019-03-18 14:14:40 +01:00
---
2019-07-08 17:29:12 +02:00
## Connect to the Pacific Network
2019-03-18 14:14:40 +01:00
2019-07-08 17:29:12 +02:00
Here are the parameters you might need to connect to the [Pacific Network](/concepts/pacific-network/):
2019-03-18 14:14:40 +01:00
2019-07-08 17:29:12 +02:00
| Parameter | Value |
| ------------------ | ---------------------------------------------------------- |
| RPC URL (required) | [https://pacific.oceanprotocol.com][rpc-url] |
| ChainID | `846353` (decimal for MetaMask) or `0xcea11` (hexadecimal) |
| Symbol | Whatever you like, e.g. `PACIFIC ETH` |
| Nickname | Whatever you like, e.g. `Pacific` |
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](https://metamask.github.io/metamask-docs/Main_Concepts/Sending_Transactions).
If you're using [Barge](https://github.com/oceanprotocol/barge) to run a local Pacific node, you can connect to that local Pacific node at RPC URL [http://localhost:8545](http://localhost:8545) (called "Localhost 8545" in MetaMask). You can configure that local Pacific node by editing the files in the `barge/networks/pacific/config/` directory.
[rpc-url]: https://pacific.oceanprotocol.com
2019-03-18 14:14:40 +01:00
## Connect to the Nile Testnet
Here are the parameters you might need to connect to the [Nile Testnet](/concepts/testnets/#the-nile-testnet):
2019-04-04 11:56:56 +02:00
| Parameter | Value |
| ------------------ | ---------------------------------------------------------- |
| RPC URL (required) | [https://nile.dev-ocean.com/](https://nile.dev-ocean.com/) |
| ChainID | `8995` (decimal for MetaMask) or `0x2323` (hexadecimal) |
| Symbol | Whatever you like, e.g. `NILE ETH` |
| Nickname | Whatever you like, e.g. `Nile Testnet` |
2019-03-18 14:14:40 +01:00
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](https://metamask.github.io/metamask-docs/Main_Concepts/Sending_Transactions).
If you're using [Barge](https://github.com/oceanprotocol/barge) to run a local Nile node, you can connect to that local Nile node at RPC URL [http://localhost:8545](http://localhost:8545) (called "Localhost 8545" in MetaMask). You can configure that local Nile node by editing the files in the `barge/networks/nile/config/` directory.
## Connect to a Local Spree Testnet or Ganache-Based Testnet
When using [Barge](https://github.com/oceanprotocol/barge) to run a purely-local testnet (Spree or Ganache-based), you can connect to a local node at RPC URL [http://localhost:8545](http://localhost:8545) (called "Localhost 8545" in MetaMask).