1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 08:20:22 +01:00
docs/content/tutorials/token-bridge.md
2019-07-09 00:47:32 +02:00

2.9 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.

TODO: All images here are placeholders for now. Replace them with images showing the Ocean-specific token bridge UI.

Introduction

There is a token bridge between the Ethereum Mainnet and the Pacific Network. It's based on the TokenBridge by POA Network (the company). This tutorial shows how you can use the token bridge to transfer Ocean Tokens (OCEAN) from the Ethereum Mainnet to the Pacific Network.

WARNING

Please Note: At the time of writing, if you transfer your Ocean Tokens to the Pacific Network, then you are putting your Ocean Tokens at risk.

Using the Token Bridge

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. 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.

MetaMask showing an account that has 500.000 OCEAN in the Ethereum Mainnet

To use the token bridge between the Ethereum Mainnet and the Pacific Network, then go to https://token-bridge.pacific.oceanprotocol.com. You should see something like this:

TODO: or maybe the URL will be bridge.oceanprotocol.com ? Update accordingly.

The token bridge user interface

The above screenshot shows that the account with address 0x8… has 500.00 OCEAN in the Ethereum Mainnet and 0.00 OCEAN in the Pacific Network.

  • Enter the amount of OCEAN you want to transfer (e.g. 1 OCEAN in the screenshot)
  • Click Transfer

A confirmation dialog box like the following should appear.

Confirmation dialog box

  • Click Continue

You should see some status updates like the following.

A status update: 0/8 Waiting for Block Confirmations…

Another status update: 4/8 Waiting for Block Confirmations…

Another status update: Validators Verifying Transaction…

If the transfer is a success, then you should see a dialog box like the following.

Success!

Notice how the transaction ID is shown.

  • Click OK

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.

MetaMask showing an account that has 1.000 OCEAN in the Pacific Network