Making deposits and withdrawals to and from the sidechain

This chapter details the practical steps a sidechain funder must take to make deposits and withdrawals to and from a sidechain. To begin with, you must have a sidechain-enabled version of the Stratis Core wallet running and an Apex Core wallet running.

Turning on cross-chain functionality

Before you start making cross-chain transactions, you must ensure cross-chain functionality is turned on in the wallet you are using. The procedure is the same for both wallets. The screenshots below are from the Stratis Core wallet.

  1. On the main page, click the Settings button.
  2. The Settings dialog is displayed:
Stratis Core settings
  1. Click the Enable button for Cross-Chain transactions.
  2. Click the Save button.

Deposit TSTRAT on the sidechain using the Stratis Core wallet

  1. Log in to your Stratis Core wallet.
Stratis Core main page
  1. On the main page, click the Cross-Chain button.
  2. The Deposit to Sidechain dialog is shown.
Stratis Core main page
  1. Specify the amount of TSTRAT you wish to deposit.
  2. Specify the Mainchain Federation address. For the alpha release, use 2N3UFTMd9ywUSqd12FkBPmYwEebxbGA8rQy. This is a P2SH address.
  3. Specify the Sidechain Destination address. You can obtain an address by clicking the Receive button in your Apex Core wallet.
  4. Specify a transaction fee.
  5. Enter your wallet password and press the Send button.

Withdraw TSTRAT on the sidechain using the Apex Core wallet

  1. Log in to your Apex Core wallet.
APEX wallet main page
  1. On the main page, click the Cross-Chain button.
  2. The Withdraw from Sidechain dialog is shown.
Stratis Core main page
  1. Specify the amount of TAPEX you wish to withdraw. TAPEX have a 1:1 ratio with TSTRAT.
  2. Specify the Sidechain Federation address. For the alpha release, use pFmbfn5PtgsEENzBKbsDTeS5vkc52bBftL. This is a P2SH address.
  3. Specify the Mainchain Destination address. You can obtain an address by clicking the Receive button in your Stratis Core wallet.
  4. Specify a transaction fee.
  5. Enter your wallet password and press the Send button.

Setting a default federation address

You can speed up the deposit and withdrawal process by setting a default federation address to use each time you make a cross-chain transaction. The procedure is the same for both wallets. The screenshots below are from the Stratis Core wallet.

  1. On the main page, click the Settings button.
  2. The Settings dialog is displayed:
Stratis Core settings
  1. Click the Enable button for the “Use Default Federation Address” option.
Stratis Core settings
  1. Add the default address. For this alpha release, use 2N3UFTMd9ywUSqd12FkBPmYwEebxbGA8rQy for the mainchain federation address and pFmbfn5PtgsEENzBKbsDTeS5vkc52bBftL for the sidechain federation address.
  2. Click the Save button.

Getting the funds to make deposits on the sidechain

The easiest way to get some TSTRAT to deposit on the sidechain is to use the faucet. To receive 100 TSTRAT, specify a TSTRAT address from your Stratis Core wallet. You can then use these funds to make a deposit on the sidechain, and from there, you can begin making further transactions on the sidechain including withdrawals.