Skip to main content
Version: 1.1

Godwoken Bridge

Godwoken Bridge functions as a token bridge between CKB and Godwoken and allows the quick deposit and withdrawal of assets. It is powered by Light Godwoken, an SDK dedicated to the development of decentralized applications on Godwoken.

In contrast to the previous version, the current version of Godwoken Bridge offers:

  • A unified deposit/withdraw page;
  • Quick asset withdrawal from Godwoken v0 to v1.

In order to follow this tutorial, you must have already downloaded a web3 wallet, such as MetaMask, and have enough CKB or supported sUDT tokens in the wallet.

For more information about the concepts of CKB, refer to Nervos CKB.

Prerequisites

  • Set up an account in MetaMask.

  • Connect Godwoken Bridge with the MetaMask wallet and switch the network to Godwoken Testnet v1.1.

  • Acquire CKB for your layer 1 wallet from CKB Testnet Faucet. The L1 Wallet address can be found on the Deposit page of Godwoken Bridge.

    Note: A deposit or a withdrawal requires at least 400 CKB.

Deposit CKB from Nervos CKB to MetaMask

Note: The minimum amount of a deposit from Nervos CKB layer 1 to MetaMask is 400 CKB.

To deposit CKB from Nervos CKB to MetaMask:

  1. If Godwoken Bridge is connected to Godwoken V0, select Godwoken V1 from the drop-down menu on the top right of the page.

  2. On the Deposit page, enter the amount for the deposit, then click Deposit.

  3. Press Sign to authorize the transaction on the MetaMask popup to complete the deposit.

  4. Refresh the page after a few minutes to check the changes in layer 1 and layer 2 account balances.

Withdraw Assets from MetaMask to Nervos CKB

Note: The minimum amount of a withdrawal from MetaMask to Nervos CKB layer 1 is 400 CKB.

  1. If Godwoken Bridge is connected to Godwoken V0, select Godwoken V1 from the drop-down menu on the top right of the page.

  2. Enter the amount for the withdrawal on the Withdrawal page, then click Request Withdrawal.

  3. Click Confirm to complete the transaction.

  4. Sign the withdrawal.

  5. After successfully withdrawing assets, check the wallet to see the balance.

Withdraw Assets from Godwoken V0 to Godwoken V1

Note: The minimum amount of a withdrawal from Godwoken v0 to v1 is 650 CKB.

To withdraw assets from Godwoken v0 to Godwoken v1:

  1. Select Godwoken V0 from the drop-down menu on the top right of the page.

  2. On the Withdrawal page, choose GodWoken V1 as the withdrawal destination.

  3. Enter the amount for the withdrawal and click Request Withdrawal.

  4. Click Confirm to complete the transaction.

  5. Sign the withdrawal.

  6. After successfully withdrawing assets, check the wallet to see the balance.

note

When withdrawing assets from Godwoken v0 to v1, a withdrawal period of at least five days is required. Therefore, you must wait for at least five days after a withdrawal from v0 to v1 before receiving the assets.

Reference

ResourceLink
Godwoken Docshttps://github.com/nervosnetwork/godwoken/blob/develop/docs/RPC.md#method-gw_submit_withdrawal_request
Godwoken Demoshttps://github.com/classicalliu/gw-demos
Godwoken testnet confighttps://github.com/nervosnetwork/godwoken-public/blob/master/testnet/config/scripts-deploy-result.json
Polyjuice Providerhttps://github.com/nervosnetwork/polyjuice-provider
Godwoken Web3https://github.com/nervosnetwork/godwoken-web3#godwoken-web3-api
Lumos Documentationhttps://github.com/nervosnetwork/lumos