Join the Rootstock Open Slack Community to get the latest updates from the Rootstock Ecosystem!

Getting Started with peg-outs | 2 way peg app Documentation

2 way peg app (peg-in) ​ In this section, we will learn how to perform a peg-out transaction using the 2 way peg app, to convert RBTC to BTC (peg-out). We will do the following:

  1. Perform a peg-out using Meta Mask wallet
  2. Perform a peg-out using Liquality wallet
  3. Perform a peg-out using Ledger+Liquality
  4. Perform a pegout-using Hardware+Wallets
  5. Steps to access to Bitcoin derived address in hardware wallet using Electrum
  6. Querying the status of a pegout

Prerequisites

​> - Note that we will be using the 2 way peg app on 2 way peg app - Testnet for learning purposes.

​​

Performing a peg-out transaction using MetaMask

Step 1: Select conversion type

​ To perform a peg-out, open the 2 way peg app - Testnet in your browser.

Step 2: Choose the RBTC - BTC conversion typeSelect rbtc to btc conversionStep 3: Connect your MetaMask wallet

​ Click on 'Connect wallet' and then select 'MetaMask'. ​ Click connect wallet Select metamask

If your wallet is locked, see images below for steps on how to unlock it.

Waiting wallet connection Unlock metamask wallet ​ And then click 'Confirm' to complete the first step. ​ Confirm metamask wallet connection

Step 4: Enter an amount

Enter the amount you want to send​. You can either enter it manually, or click 'Use max available balance' if you want to send all the RBTC you have. ​ RBTC amount to send inputStep 5: Verify your Bitcoin destination address

​ Click 'Get Bitcoin destination address'. Click 'Sign' first in 2-Way Peg App and then in MetaMask. ​ Click get bitcoin destination address Click sign button Metamask signature request ​ After signing, you will be able to know the derived Bitcoin address where you will receive funds. ​ Derived address

For more details on derived addresses. See the advanced operations section.

Step 6: Send transaction

Confirm the information, click 'Send' in 2-Way Peg App and then click 'Confirm' in MetaMask. ​ Click to send pegout transaction Confirm send on metamask ​ See final screen as shown in the image below; ​ BTC on its way ​​

Performing a peg-out transaction using Liquality

The Liquality Wallet is a browser extension for accessing Bitcoin, Rootstock, and Ethereum applications.

Step 1: Choose the RBTC - BTC conversion type

Select rbtc to btc conversionStep 2: Connect your Liquality walletClick connect wallet Select liquality wallet ​ See how to unlock your wallet, if locked. ​ Waiting wallet connection ​ Then, click 'Confirm' to complete the first step. ​ Confirm metamask wallet connectionStep 3: Enter the amount you want to send

​ You can either enter it manually or click 'Use max available balance' if you want to convert all the rbtc you have. ​ Rbtc amount to send inputStep 4: Verify your Bitcoin destination address

We don't support the Bitcoin destination address' derivation from Liquality yet, so you have to follow the documentation linked here: ​ Can't derive destination address using liqualityStep 5: Send transaction

Review the information, and click 'Send' in 2-way peg app and then click 'Confirm' in Liquality. ​ Send pegout transaction Confirm pegout transaction on liquality wallet

​ The final screen will be like the one below. Btc is on its way

​ To see the status of a transaction, click on the Go to status page button, you will see a page as shown below, with your pegout tx and your Bitcoin recipient address information as well. ​ Transaction status for pegout id

This address should match the one you can access through Electrum. See How to view a derived address and How to check a transaction status.

Performing a peg-out transaction using Ledger and Liquality

The Liquality Wallet is a browser extension for accessing Bitcoin, Rootstock, and Ethereum applications.

We will perform a peg-out transaction using the Ledger Hardware Wallet and Liquality.

See How to perform a peg-in transaction using Ledger

Get started

To perform a peg-out transaction using the Ledger device with Liquality, follow the steps below:

Step 1: Plug the Ledger device into the computer

Step 2: Enter your pin to unlock it. See step 2 in pegout transaction using Liquality for how to unlock your device.

Step 3: On the device, navigate to the TSK or RSK Test app on your Ledger device.

Step 4: Open Liquality and select Ledger option

Select Ledger Option

Step 5: Choose the "RSK asset" and click on the "Connect" button

Connect Ledger

Step 6: Choose the account that you want to use with Liquality

Choose account

Step 7: Click the "Close this Tab" button

Close tab

Now you can see "Ledger" label in Liquality accounts

Final screen

Performing a peg-out transaction using rLogin(Trezor and Ledger)

​> - Note that we will be using the 2 way peg app on 2 way peg app - Testnet for learning purposes.

Get started with Ledger

To perform a peg-out transaction using the Ledger device directly, follow the steps below:

Step 1: Plug the Ledger device into the computer

Step 2: Enter your pin to unlock it

Step 3: On the device, navigate to the TRSK or RSK Test app on your Ledger device ​ Step 4: Access peg-out screen: pegout screen

Step 5: Click on Connect wallet button connect-wallet

Step 6: Click on Ledger button
connect-wallet

Step 8: The application will show what network you are connecting on. For this tutorial we are using Testnet network

Step 9: The application will show a simple tutorial: 1-plug 2-install 3-close 4-open 5-confirm

Step 10: Click on the Finish tutorial and connect button:
6-finish

Step 11: Select an account
7-select

Step 12: Ledger Connected
8-connected
Step 13: Continue filling in the other fields as amount and click on the Send button

Step 14: After finish the pegout transaction creation, click here to see how to see the steps to access to Bitcoin derived address in hardware wallet using Electrum

Get started with Trezor

To perform a peg-out transaction using the Ledger device directly, follow the steps below:

Step 1: Plug the Ledger device into the computer

Step 2: Access peg-out screen: pegout screen

Step 3: Click on Connect wallet button connect-wallet

Step 4: Click on Trezor button
connect-wallet

Step 5: The application will show what network you are connecting on. For this tutorial we are using Testnet
network

Step 6: Plugin your Trezor device:
plugin Step 7: The trezor window will open to insert the pin and export the addresses pin-and-address Step 8: Insert the pin and click on confirm button insert-confirm Step 9: Insert the passphrase insert-passphrase Step 10: Follow instructions on your device
verify-device

​> - Note the trezor app screen will be opened some times, because the system will ask for addresses, each ask will open again the trezor screen, and the user will need to inform the trezor-pin.

Step 11: Select account
select-account

Step 12: Success success

Step 13: Continue filling in the other fields as amount and click on the Send button

Step 14: After finish the pegout transaction creation, click here to see how to see the steps to access to Bitcoin derived address in hardware wallet using Electrum


Searching the status of a pegout

The processing of a pegout transaction is made up of several dependencies, and for each dependency a processing step is added, and at each step in the process, the pegout is shown in a form on the transaction status query screen.

After finish a pegout you can search for the current status in the status page

Not mined status: Just after finish a pegout transaction, this transaction is not mined in the RSK network yet, this status will be showed in the transaction status page: not-mined

Rejected status: A pegout transaction mined and not valid, will be showed in the transaction status page: rejected

Received status: A pegout transaction mined and valid, will be showed in the transaction status page: mined

Waiting for confirmation status: A pegout transaction mined and valid, and waiting for confirmation, will be showed in the transaction status page: waiting-for-confirmation

Released status: A pegout transaction mined, valid, and with the btc transaction performed will be showed in the transaction status page: waiting-for-confirmation

Operation summary: The operation summary contains the transaction details: mined


Rootstock side

Sender address: Contains the address from which the RBTC was sent.

Sent: The amount in RBTC sent.

Transaction hash: The hash of the transaction in the RSK network.


Bitcoin side

Recipient: The address where the BTC will be delivered.

Will Receive: The amount to be delivered in the BTC address discounted the network fee.

Estimated fee: The estimated network fee, if the BTC transaction is not finished yet, this label will be "Estimated", if the BTC transaction is sent to the BTC network the value presented will be the effective value and not the estimated.


Resources

Receive updates

Get the latest updates from the Rootstock ecosystem

Loading...