3.4 KiB
title | description |
---|---|
Transfer Ocean Tokens between Networks | How to use the token bridge to transfer Ocean Tokens from the Ethereum Mainnet to the Pacific Network, and vice versa. |
Introduction
There is a token bridge between the Ethereum Mainnet and the Pacific Network available under bridge.oceanprotocol.com:
It's based on the TokenBridge by POA Network (the company), but the user interface was modified to conform to the Ocean Protocol style, and the loaded contracts are fixed to a specific security-checked version.1
This tutorial shows how you can use the token bridge to transfer Ocean Tokens (OCEAN) from the Ethereum Mainnet to the Pacific Network.
Using the Token Bridge
Please Note: If you transfer your Ocean Tokens to the Pacific Network, then you are putting your Ocean Tokens at risk.
Ethereum Mainnet → Ocean Pacific
If you want to transfer OCEAN out of the Ethereum Mainnet, then first you need an Ethereum account with some OCEAN in the Ethereum Mainnet, and be connected to Ethereum Mainnet in MetaMask. If you want to get some OCEAN in the Ethereum Mainnet, then see the page about Ocean Tokens.
Below is a screenshot of MetaMask showing an account (with address 0x8…
) which has 500 OCEAN in the Ethereum Mainnet. If you want MetaMask to show OCEAN, then see the page about using your wallet to manage Ocean Tokens.
To use the token bridge to transfer Ocean Tokens from the Ethereum Mainnet to the Pacific Network, go to bridge.oceanprotocol.com while being connected to the Ethereum Mainnet in MetaMask.
You should see something like this:
The above screenshot shows that the account with address 0x8…
has 500 OCEAN in the Ethereum Mainnet and 0 OCEAN in the Pacific Network.
- Enter the amount of OCEAN you want to transfer (e.g. 1 OCEAN)
- Click Transfer
A confirmation dialog box like the following should appear.
- Click Continue
After the end of some status updates you should see a success message with a transaction ID.
If you go back to MetaMask and switch the network to Pacific, then the account's OCEAN balance in Pacific should be higher by the amount just transferred.
Ocean Pacific → Ethereum Mainnet
To go the other way around, transfering Ocean Tokens from Pacific back into the Ethereum Mainnet, you simply connect to Pacific in MetaMask when visiting bridge.oceanprotocol.com.
This will reverse the order of the token bridge networks:
Then follow the same steps as outlined above.
-
The code for the Ocean Protocol version of the token bridge UI and all technical documentation is in the oceanprotocol/token-bridge-ui repo on GitHub. ↩︎