1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/core-concepts/networks/bridges.md
md00ux 0b8aca0e01
Update bridges.md
use public RPC Polygon endpoint
2022-09-12 16:19:39 +03:00

4.1 KiB
Raw Blame History

title
Bridges

Binance Smart Chain (BSC) Bridge

Intro to BSC's Bridge

BSC provides several bridge options, including:

  • withdraw crypto from Binance.com, and
  • use Binance bridge.

The article How to Get Started with BSC by Binance Academy provides further details.

Polygon (ex Matic) Bridge

Intro to Polygon's Bridge

The Polygon Network (ex Matic) provide us with a bridge (connecting Ethereum & Polygon blockchains), and a dedicated wallet that simplify the steps of transferring digital assets between the two networks. The wallet connects to your account via Metamask (or any of the other supported wallets).

When you open the wallet link, the wallet will ask to log in. Select your preferred way of connecting and confirm the action. In our guide we'll use Metamask.

Login options

In some places, the Polygon Network is still using its old brand Matic. Either you run into Matic or Polygon - it's the exact same thing. For the purpose of this guide, we'll use Matic in the next few paragraphs since the interfaces you're going to use still use the old brand.

For details check the blog post.

Deposit Tokens

On the main page of the wallet, you can see all tokens you own on the Matic Mainnet. To deposit tokens (transfer them from the Ethereum Mainnet) you can either use the “deposit” button for a selected token or use “Move funds to Matic Mainnet”.

Main wallet page

Both options will redirect you to the bridge interface. In case you chose the second one, use the dropdown and select the token you want to transfer from the Ethereum Mainnet.

Bridge interface

Choose the amount to transfer and click the “Transfer” button. Matics bridge interface will guide you through the whole process and the different steps that will occur. Youll need to sign two transactions on the Ethereum Mainnet. The first being the approval for your token to be traded on the Matics bridge and the second one being the deposit.

Transferring process

Withdraw Tokens

The withdrawing tokens process uses the same bridge interface. The only difference being that the withdraw happens from the Matic to the Ethereum Mainnet.

Again the bridge interface will guide you through the different steps.

For more in dept explanation of the deposit and withdraw actions check the official Polygon (ex Matic) docs.

Sending Tokens

While in the first two cases, the transactions are signed on the Ethereum Mainnet, transferring tokens between two Matic addresses happens on the Matic Mainnet. Thus its required for you to connect to the Matic network to sign the transactions. You can use the following parameters to set the network in Metamask:

What Value
Network Name Matic Mainnet
RPC https://polygon-rpc.com/
Chain Id 137
Currency Symbol MATIC
Block Explorer URL https://explorer.matic.network/

Follow our guide to learn how to use those values to set up a custom network in MetaMask.