1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 00:05:35 +01:00
docs/content/concepts/networks.md

300 lines
15 KiB
Markdown
Raw Normal View History

2021-01-15 14:50:23 +01:00
---
title: Supported Networks
description: All the public networks the Ocean Protocol contracts are deployed to, and additional core components deployed to them.
---
2021-02-23 11:40:42 +01:00
Ocean Protocol contracts are deployed on multiple public networks. You can always find the most up-to-date deployment addresses for all individual contracts in the [address.json](https://github.com/oceanprotocol/contracts/blob/master/artifacts/address.json) artifact.
2021-01-15 14:50:23 +01:00
In each network, youll need ETH to pay for gas, and OCEAN for certain Ocean actions. Because the Ethereum mainnet is a network for production settings, ETH and OCEAN tokens have real value on there. The ETH and OCEAN tokens in each test network dont have real value and are used for testing-purposes only. They can be obtained with _faucets_ to dole out ETH and OCEAN.
The universal Aquarius Endpoint is `https://aquarius.oceanprotocol.com`.
2021-02-23 11:40:42 +01:00
## Ethereum Mainnet
2021-01-15 14:50:23 +01:00
The Ethereum Mainnet is Oceans production network.
MetaMask and other ERC20 wallets default to Ethereum mainnet, therefore your wallet is almost certainly pointing to Ethereum by default.
2021-08-06 13:30:52 +02:00
**Tokens**
2021-01-15 14:50:23 +01:00
2021-08-06 13:30:52 +02:00
- ETH:
- Native token to pay transaction fees
- [Exchanges to purchase](https://www.coingecko.com/en/coins/ethereum#markets)
- OCEAN:
- Address: [0x967da4048cD07aB37855c090aAF366e4ce1b9F48](https://etherscan.io/token/0x967da4048cD07aB37855c090aAF366e4ce1b9F48)
- [Exchanges to purchase](https://oceanprotocol.com/token#get)
2021-01-15 14:50:23 +01:00
2021-01-15 15:08:12 +01:00
**Additional Components**
2021-01-15 14:50:23 +01:00
2021-01-15 15:08:12 +01:00
| What | URL |
| ------------ | -------------------------------------------- |
| Explorer | https://etherscan.io |
| Ocean Market | https://market.oceanprotocol.com |
2021-01-15 15:08:12 +01:00
| Provider | `https://provider.mainnet.oceanprotocol.com` |
| Subgraph | `https://subgraph.mainnet.oceanprotocol.com` |
2021-01-15 14:50:23 +01:00
2021-03-17 14:27:00 +01:00
## Polygon Mainnet
2021-02-23 11:40:42 +01:00
Ocean is [deployed](https://blog.oceanprotocol.com/ocean-on-polygon-network-8abad19cbf47) to the [Polygon](https://polygon.technology/) production network. Polygon's native token is MATIC.
2021-02-23 11:40:42 +01:00
2021-08-06 13:30:52 +02:00
If you don't find Polygon as a predefined network in your wallet, you can connect to it manually via [this guide](/tutorials/metamask-setup/#set-up-custom-network) and the parameters below.
2021-02-23 11:40:42 +01:00
2021-02-26 15:04:12 +01:00
| What | Value |
| ------------------ | ---------------------------------------- |
2021-02-26 15:04:12 +01:00
| Network Name | `Matic Mainnet` |
| RPC | `https://rpc.polygon.oceanprotocol.com/` |
| Chain Id | `137` |
| Currency Symbol | `MATIC` |
| Block Explorer URL | `https://explorer.matic.network/` |
2021-02-23 11:40:42 +01:00
2021-08-06 13:30:52 +02:00
**Tokens**
- MATIC:
- Native token to pay transaction fees
- [Exchanges to purchase](https://www.coingecko.com/en/coins/polygon#markets)
- Polygon OCEAN:
- Address: [0x282d8efCe846A88B159800bd4130ad77443Fa1A1](https://polygonscan.com/token/0x282d8efCe846A88B159800bd4130ad77443Fa1A1)
- [Exchanges to purchase](https://oceanprotocol.com/token#get)
2021-02-23 11:40:42 +01:00
**Additional Components**
| What | URL |
| ------------ | -------------------------------------------------------------------- |
| Explorer | https://polygonscan.com/ |
| Ocean Market | Point wallet to Polygon network, at https://market.oceanprotocol.com |
| Provider | `https://provider.polygon.oceanprotocol.com` |
| Subgraph | `https://subgraph.polygon.oceanprotocol.com` |
**Bridge**
Check our [Polygon Bridge guide](/tutorials/polygon-bridge/) to learn how you can deposit, withdraw and send tokens.
2021-10-06 11:27:20 +02:00
## Moonriver
Ocean is deployed to [Moonriver](https://moonbeam.network/networks/moonriver/), another production network. Moonriver's native token is MOVR.
If you don't find Moonriver as a predefined network in your wallet, you can connect to it manually via [Ocean's guide](/tutorials/metamask-setup/#set-up-custom-network) and the parameters below.
| What | Value |
| ------------------ | ----------------------------------- |
| Network Name | `Moonriver` |
| RPC | `https://rpc.moonriver.moonbeam.network`|
2021-10-06 11:27:20 +02:00
| Chain Id | `1285` |
| Currency Symbol | `MOVR` |
| Block Explorer URL | `https://blockscout.moonriver.moonbeam.network` |
**Tokens**
- Moonriver MOVR:
- Native token to pay transaction fees
- Exchanges to purchase: [List](https://coinmarketcap.com/currencies/moonriver/markets/)
- Moonriver OCEAN:
- Address: [0x99C409E5f62E4bd2AC142f17caFb6810B8F0BAAE](https://blockscout.moonriver.moonbeam.network/address/0x99C409E5f62E4bd2AC142f17caFb6810B8F0BAAE/)
- [Exchanges to purchase](https://oceanprotocol.com/token#get)
**Additional Components**
| What | URL |
| ------------ | ---------------------------------------------------------------- |
| Explorer | https://blockscout.moonriver.moonbeam.network/ |
| Ocean Market | Point wallet to Moonriver network, at https://market.oceanprotocol.com |
| Provider | `https://provider.moonriver.oceanprotocol.com` |
| Subgraph | `https://subgraph.moonriver.oceanprotocol.com` |
**Bridge**
Use [Anyswap](https://anyswap.exchange/#/bridge) to bridge between ETH Mainnet and Moonriver
## Energy Web Chain
Ocean is deployed to [Energy Web Chain](https://www.energyweb.org/technology/energy-web-chain/), another production network. Energy Web's native token is EWT.
If you don't find Energy Web Chain as a predefined network in your wallet, you can connect to it manually via [Ocean's guide](/tutorials/metamask-setup/#set-up-custom-network) and the parameters below.
| What | Value |
| ------------------ | ----------------------------------- |
| Network Name | `Energy Web Chain` |
| RPC | `https://rpc.energyweb.org` |
| Chain Id | `246` |
| Currency Symbol | `EWT` |
| Block Explorer URL | `https://explorer.energyweb.org/` |
**Tokens**
- Energy Web Chain EWT:
- Native token to pay transaction fees
- Exchanges to purchase: [List](https://coinmarketcap.com/currencies/energy-web-token/markets/)
- Energy Web Chain OCEAN:
- Address: [0x593122aae80a6fc3183b2ac0c4ab3336debee528](https://explorer.energyweb.org/tokens/0x593122AAE80A6Fc3183b2AC0c4ab3336dEbeE528)
- [Exchanges to purchase](https://oceanprotocol.com/token#get)
**Additional Components**
| What | URL |
| ------------ | ---------------------------------------------------------------- |
| Explorer | https://explorer.energyweb.org/ |
| Ocean Market | Point wallet to Energy Web Chain network, at https://market.oceanprotocol.com |
| Provider | `https://provider.energyweb.oceanprotocol.com` |
| Subgraph | `https://subgraph.energyweb.oceanprotocol.com` |
**Bridge**
Use [Carbonswap bridge](https://bridge.carbonswap.exchange/bridge) to bridge between ETH Mainnet and Energy Web Chain
## Binance Smart Chain
Ocean is deployed to [Binance Smart Chain (BSC)](https://academy.binance.com/en/articles/how-to-get-started-with-binance-smart-chain-bsc), another production network. BSC's native token is BNB - the Binance token.
If you don't find BSC as a predefined network in your wallet, you can connect to it manually via [Binance's guide](https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain) or [Ocean's guide](/tutorials/metamask-setup/#set-up-custom-network) and the parameters below.
| What | Value |
| ------------------ | ----------------------------------- |
| Network Name | `Smart Chain` |
| RPC | `https://bsc-dataseed.binance.org/` |
| Chain Id | `56` |
| Currency Symbol | `BNB` |
| Block Explorer URL | `https://bscscan.com` |
2021-08-06 13:30:52 +02:00
**Tokens**
2021-02-23 11:40:42 +01:00
2021-08-06 13:30:52 +02:00
- BSC BNB:
- Native token to pay transaction fees
- Exchanges to purchase: typically [binance.com](https://www.binance.com)
- BSC OCEAN:
2021-08-06 13:30:52 +02:00
- Address: [0xdce07662ca8ebc241316a15b611c89711414dd1a](https://bscscan.com/token/0xdce07662ca8ebc241316a15b611c89711414dd1a)
- [Exchanges to purchase](https://oceanprotocol.com/token#get)
2021-02-23 11:40:42 +01:00
**Additional Components**
| What | URL |
| ------------ | ---------------------------------------------------------------- |
| Explorer | https://bscscan.com/ |
| Ocean Market | Point wallet to BSC network, at https://market.oceanprotocol.com |
| Provider | `https://provider.bsc.oceanprotocol.com` |
| Subgraph | `https://subgraph.bsc.oceanprotocol.com` |
2021-02-23 11:40:42 +01:00
**Bridge**
Check our [BSC Bridge guide](/tutorials/bsc-bridge/) to learn how you can deposit, withdraw and send tokens.
2021-02-23 11:40:42 +01:00
2021-01-15 14:50:23 +01:00
## Ropsten
Ropsten is a test network.
In MetaMask and other ERC20 wallets, click on the network name dropdown, then select _Ropsten_.
2021-08-06 13:30:52 +02:00
**Tokens**
2021-01-15 14:50:23 +01:00
2021-08-06 13:30:52 +02:00
- Ropsten ETH:
- Native token to pay transaction fees
- [Faucet](https://faucet.dimensions.network/). You may find others by [searching](https://www.google.com/search?q=ropsten+ether+faucet&oq=ropsten+ether+faucet).
- Ropsten OCEAN:
2021-08-06 13:30:52 +02:00
- Address: [0x5e8DCB2AfA23844bcc311B00Ad1A0C30025aADE9](https://ropsten.etherscan.io/token/0x5e8DCB2AfA23844bcc311B00Ad1A0C30025aADE9)
- [Faucet](https://faucet.ropsten.oceanprotocol.com/)
2021-01-15 14:50:23 +01:00
2021-01-15 15:08:12 +01:00
**Additional Components**
2021-01-15 14:50:23 +01:00
| What | URL |
| ------------ | -------------------------------------------------------------------- |
| Explorer | https://ropsten.etherscan.io |
| Ocean Market | Point wallet to Ropsten network, at https://market.oceanprotocol.com |
| Provider | `https://provider.ropsten.oceanprotocol.com` |
| Subgraph | `https://subgraph.ropsten.oceanprotocol.com` |
2021-01-15 14:50:23 +01:00
## Rinkeby
Rinkeby is a test network.
In MetaMask and other ERC20 wallets, click on the network name dropdown, then select _Rinkeby_.
2021-08-06 13:30:52 +02:00
**Tokens**
2021-01-15 14:50:23 +01:00
2021-08-06 13:30:52 +02:00
- Rinkeby ETH:
- Native token to pay transaction fees
- [Faucet](https://faucet.rinkeby.io/). You may find others by [searching](https://www.google.com/search?q=rinkeby+ether+faucet&oq=rinkeby+ether+faucet).
- Rinkeby OCEAN:
2021-08-06 13:30:52 +02:00
- Address: [0x8967BCF84170c91B0d24D4302C2376283b0B3a07](https://rinkeby.etherscan.io/token/0x8967BCF84170c91B0d24D4302C2376283b0B3a07)
- [Faucet](https://faucet.rinkeby.oceanprotocol.com/)
2021-01-15 14:50:23 +01:00
2021-01-15 15:08:12 +01:00
**Additional Components**
2021-01-15 14:50:23 +01:00
| What | URL |
| ------------ | -------------------------------------------------------------------- |
| Explorer | https://rinkeby.etherscan.io |
| Ocean Market | Point wallet to Rinkeby network, at https://market.oceanprotocol.com |
| Provider | `https://provider.rinkeby.oceanprotocol.com` |
| Subgraph | `https://subgraph.rinkeby.oceanprotocol.com` |
2021-08-06 13:30:52 +02:00
## Mumbai
Mumbai is a test network tuned for Matic / Polygon.
If you don't find Mumbai as a predefined network in your wallet, you can connect to it manually via [Matic's guide](https://docs.polygon.technology/docs/develop/metamask/config-polygon-on-metamask/).
2021-08-06 13:30:52 +02:00
**Tokens**
- Mumbai MATIC:
- Native token to pay transaction fees
- [Faucet](https://faucet.matic.network/). You may find others by [searching](https://www.google.com/search?q=mumbai+faucet).
- Mumbai OCEAN:
2021-08-06 13:30:52 +02:00
- Address: [0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8](https://mumbai.polygonscan.com/token/0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8)
- [Faucet](https://faucet.mumbai.oceanprotocol.com/)
2021-08-06 13:30:52 +02:00
**Additional Components**
| What | URL |
| ------------ | ------------------------------------------------------------------- |
| Explorer | https://mumbai.polygonscan.com |
| Ocean Market | Point wallet to Mumbai network, at https://market.oceanprotocol.com |
| Provider | `https://provider.mumbai.oceanprotocol.com` |
| Subgraph | `https://subgraph.mumbai.oceanprotocol.com` |
2021-08-06 13:30:52 +02:00
2021-10-08 16:55:33 +02:00
## Celo Alfajores
Alfajores is a Celo test network for developers building on the Celo platform.
Celo docs: https://docs.celo.org/.
Wallet setup: https://celo.org/developers/wallet
**Tokens**
- Alfajores CELO:
- Native token to pay transaction fees
- [Faucet](https://celo.org/developers/faucet).
- Alfajores OCEAN:
- Address: [0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8](https://alfajores-blockscout.celo-testnet.org/address/0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8/)
**Additional Components**
| What | URL |
| ------------ | ------------------------------------------------------------------- |
| Explorer | https://alfajores-blockscout.celo-testnet.org/ |
2021-08-06 13:30:52 +02:00
## Local / Ganache
2021-01-15 14:50:23 +01:00
The most straightforward way for local-only development is to use [Barge](https://www.github.com/oceanprotocol/barge), which runs [Ganache](https://www.trufflesuite.com/ganache), Aquarius, and Provider. It is used extensively by the Ocean core devs (with Ganache or Rinkeby) and for automated integration testing.
<repo name="barge"></repo>
To connect to it from MetaMask, select the network called _Localhost 8545_.
Alternatively, you can run Ganache independently. Install it according to [the Ganache docs](https://www.trufflesuite.com/ganache). Then deploy Ocean contracts onto Ganache following [docs in Ocean contracts repo](https://www.github.com/oceanprotocol/contracts). Ganache is at the RPC URL [http://localhost:8545](http://localhost:8545).
2021-08-06 13:30:52 +02:00
**Tokens**
2021-01-15 14:50:23 +01:00
2021-08-06 13:30:52 +02:00
- Ganache ETH:
- Native token to pay transaction fees
- By default, Ganache creates several Ethereum accounts at launch, gives each some ETH, and makes their private keys available in the logs. You can also instruct Ganache to give ETH to specific Ethereum addresses.
- Ganache OCEAN:
- You can deploy an ERC20 token with label OCEAN. At a minimum, the token needs to be ERC20Detailed and ERC20Capped. Youll see examples in the quickstarts for the Ocean JavaScript and Python drivers.
2021-01-15 14:50:23 +01:00
2021-08-06 13:30:52 +02:00
## Other
2021-01-15 14:50:23 +01:00
Some apps may need `network_id` and `chain_id`. Here's a [list of values for major Ethereum networks](https://medium.com/@piyopiyo/list-of-ethereums-major-network-and-chain-ids-2bc58e928508).