Converting BTC to RBTC and vice versa
Mainnet Conversion
In this section we will go over the steps of converting BTC to RBTC and vice versa in Bitcoin and Rootstock network.
The minimum amount of Bitcoin to convert is 0.005 BTC for Mainnet.
BTC to RBTC conversion
Instructions on how to do a Mainnet peg-in.
- Any Bitcoin wallet that supports legacy (
p2pkh
) private key works for this step. In this section, we use the Electrum BTC wallet for connecting to BTC Mainnet.- Download the wallet from Electrum Website
- Install Electrum
- Start Electrum
- Once Electrum starts, create or import a wallet
- Go to the third tab "Receive". You will see a Bitcoin Testnet address like below:
Note: Use a legacy Bitcoin wallet (not Segwit) with a public key beginning with
m
orn
, and a private key prefixed byp2pkh
.
Send Bitcoin to Rootstock Federation address
-
To retrieve the Rootstock Federation address:
- Search the bridge contract address 0x0000000000000000000000000000000001000006 on the Rootstock Explorer.
- Go to Contracts tab --> Read Contracts and scroll to the 8th option which is
getFederationAddress()
and click the Read button. It should look like the screenshot below:
Now, you can send Bitcoin to the Federation address via your Bitcoin address.
Note: You must send a minimum amount of
0.005 BTC
.
- To ensure the transaction is successful, we need to wait for 100 BTC network confirmations.
100 blocks * 10 minutes/block = 1000 minutes = 16.667 hours. That is, this will take approximately 17 hours.
- You can get a corresponding RBTC address from your BTC private key by using the Rootstock Utils. If you do not want to compile the utility, you can download the latest release.
Note: when entering Bitcoin private key do not include p2pkh: in the front.
You can check balance of RBTC address on Metamask, MyCrypto, or any Rootstock compatible wallets.
Note: You have to wait a minimum of 100 confirmations + a minimum of 5 minutes for checking your RBTC balance.