FeaturesGuide
Bit
Window
SidechainsDownload →

How BitWindow sidechains work: deposit and withdraw

How drivechain sidechains work in BitWindow: BIP300 deposits, withdrawal bundles and miner votes, BIP301 blind merged mining, and the fees.

Last updated

A drivechain sidechain is a separate blockchain that uses bitcoin as its currency. You move coins to it with a deposit, and you move them back with a withdrawal. BitWindow shows all sidechains on the Sidechains tab. Each sidechain also has its own app, which BitWindow downloads and starts for you.

What a drivechain sidechain is

Two Bitcoin proposals make drivechain sidechains possible.

BIP300 (hashrate escrow) controls the coins of a sidechain on the mainchain. All coins of one sidechain stay in one output on the mainchain, the treasury output. A deposit adds coins to this output. A withdrawal takes coins out of it, but only after miners vote for it.

BIP301 (blind merged mining) lets mainchain miners mine sidechain blocks without a sidechain node. A sidechain user makes a bid on the mainchain for the next sidechain block. A miner who includes that sidechain block in a mainchain block gets the bid.

Each sidechain has a slot number from 0 to 255. Miners must vote a new sidechain into a slot before it becomes active. Read about the votes in sidechain proposals and withdrawals.

The steps of a withdrawal

  1. You send a withdrawal on the sidechain.
  2. The sidechain puts withdrawals together in a withdrawal bundle.
  3. Miners vote for the bundle in the blocks that they mine.
  4. When the bundle has sufficient votes, a mainchain block pays it out.

The waiting period is the time that miners have for their votes. The specification gives a bundle 26,300 blocks. The bundle must get more than 13,150 votes in that time. BitWindow uses these values on Bitcoin and on Betanet. On Alphanet, a bundle has 144 blocks and must get more than 72 votes. On L2L Signet, it has 10 blocks and must get more than 5 votes.

Where you find sidechains

The Sidechains tab is in the top bar. It shows only on networks with drivechain support, such as L2L Signet and the eCash networks. On Bitcoin mainnet, BitWindow has no Sidechains tab. Read more in networks.

The tab has three tabs: Overview, Fast Withdrawal and Starters.

Before the tab shows data, Bitcoin Core and the enforcer must run and complete their sync. If they do not run, the tab shows Start Bitcoin Core + Enforcer. In light mode, BitWindow uses a remote enforcer. If your network has no remote enforcer, the tab shows Sidechains are unavailable in light mode. Select full mode in Settings to use sidechains there. Read more in node and enforcer.

The sidechain list

The Overview tab shows a table of all 256 slots, with the columns Slot, Name and Sidechain Balance. Turn on Show only filled slots to hide the empty slots.

Sidechains that you pinned, or that have a balance in your wallet, show first under Your sidechains. All other slots show under All slots. Right-click a row to select Pin to top, Unpin or Show Chaintip Transaction.

A badge External wallet shows on a sidechain that keeps a wallet that BitWindow did not make. BitWindow keeps that wallet on disk.

The Add / Remove button opens Sidechain Activation.

Install, start and stop a sidechain

Each active slot has a button for its app.

  1. Click Download to get the app.
  2. Click Start to start the sidechain.
  3. Click Stop to stop it.

The arrow next to Start opens two choices:

  • Start with window opens the app of the sidechain.
  • Start in background runs the node only. You can open the window later.

When the sidechain runs, Open window opens its app. If a new version is available, the row shows Update with the name of the sidechain. BitWindow shows Launching... and Stopping... while the app starts or stops.

If Layer Two Labs did not develop a sidechain, BitWindow shows a warning before the download. The warning says that nobody audited the code for security. Click Download anyway only if you accept that risk.

If a downloaded file does not match the expected hash, BitWindow shows a warning. Download that sidechain again.

The settings button on a row opens the settings of that sidechain. Read about the apps in the sidechains.

Deposit to a sidechain

  1. Click Deposit on the row of the sidechain.
  2. Make sure that Deposit Address has an address.
  3. Type the Deposit Amount, or click MAX.
  4. Select the wallet that pays.
  5. Select a Fee target.
  6. Click Deposit.

If the sidechain runs, BitWindow gets the deposit address from it. Click Generate new address to get a different one. If the sidechain does not run, paste a deposit address. A deposit address starts with s and the slot number, for example s9_.

Available shows the balance of the wallet that pays. Leaves your wallet shows the amount plus the fee.

You can also deposit from the Parent Chain tab in the app of the sidechain.

Withdraw back to the mainchain

You withdraw in the app of the sidechain. Open its Parent Chain tab and use Withdraw to Parent Chain.

  1. Type a mainchain address in Pay To.
  2. Type the Amount, or click MAX.
  3. Type a Label (optional) if you want one.
  4. Click Send.

The app shows Withdrawal Amount, Sidechain Fee, Mainchain Fee and Total Cost before you send.

Fast Withdrawal

A normal withdrawal waits for miner votes. The Fast Withdrawal tab uses a fast withdrawal server. The server sends bitcoin to your wallet, and you pay the server on the sidechain.

  1. Type the Withdraw amount (BTC).
  2. Select the sidechain in From L2.
  3. Select a server in Using fast withdrawal server.
  4. Click Request Withdrawal.
  5. Send the sidechain coins to the amount and address that the tab shows.

For step 5, click Send & Complete Automatically. You can also send the coins yourself and use Or paste the L2 txid manually. Then click Complete Withdrawal. The tab shows Withdrawal Completed and the transaction IDs.

The servers are fw1.drivechain.info (L2L #1) and fw2.drivechain.info (L2L #2).

Transfers and their status

The right side of the Overview tab shows the transfers of the selected sidechain.

See Deposits lists your deposits, with Txid, Amount, Fee and Confirmations. If the network no longer holds a deposit, it can never confirm. Then the table shows Dropped — deposit again, and you must send the deposit again. Double-click a deposit to see its transaction details.

See Withdrawals lists the withdrawal bundles, with M6 ID, Status, Block Height and Sequence #.

Status What it means
pending The bundle waits for miner votes.
succeeded A mainchain block paid out the bundle.
failed The bundle did not get sufficient votes in time.

Fees

Transfer Fee
Deposit A mainchain network fee. The sidechain can also take its own fee.
Withdrawal A Sidechain Fee and a Mainchain Fee of 0.0001 BTC.
Fast withdrawal A server fee. The tab adds it to the sidechain amount that you send.

For a deposit, the Fee target can be Next block (1), 3 blocks, 6 blocks or 24 blocks. BitWindow estimates the fee for that target. If it has no estimate, it uses the minimum of 1 sat/vB.

Starters

The Starters tab shows the seed phrases of your wallet, under Layer 1 and Layer 2. Each sidechain wallet has its own starter. BitWindow shows a security warning before it shows a seed phrase. Read more in wallets and backups.

Questions

How do I move bitcoin to a sidechain in BitWindow?

Open the Sidechains tab, find the sidechain in the list and click Deposit. BitWindow gets a deposit address from the sidechain app, or you paste one.

How long does a drivechain withdrawal take?

A withdrawal waits in a withdrawal bundle until miners vote for it. On Bitcoin, the BIP300 specification gives a bundle 26,300 blocks to get more than 13,150 votes. Test networks use shorter periods.

Is there a faster way to withdraw from a sidechain?

Yes. The Fast Withdrawal tab uses a fast withdrawal server. You send sidechain coins plus a server fee, and the server sends bitcoin to your wallet.

Why is there no Sidechains tab in BitWindow?

BitWindow shows the Sidechains tab only on networks with drivechain support, such as L2L Signet and the eCash networks. Bitcoin mainnet has no Sidechains tab.

What does a sidechain deposit cost?

You pay a mainchain network fee. BitWindow estimates it for the fee target that you select. The sidechain can also take its own fee.