How to use the Persistence One BTC Interoperability Testnet for Cross-Chain BTC Swaps [[Guide]]

Avatar photo

Persistence One is thrilled to announce that the testnet for its BTC cross-chain swapping solution is officially live, allowing participants to trial the interoperability platform.

The testnet rollout will occur in three phases, gradually expanding access to accommodate more users. This blog provides more information about the testnet operation, including the details on how to participate in each phase. 

This guide will cover everything you need to know about how to use the Persistence One interoperability testnet platform. 

The testnet currently integrates cbBTC on Base and WBTC on Bitlayer and will guide you through swapping one BTC variant for the other. 

If you have any questions, please review our in-depth FAQs or reach out to us on Telegram.

What You Need to Get Started

Everybody who signs up to be a part of the testnet will have cbBTC testnet tokens on the Base Sepolia testnet sent to the wallet addresses they provided. However, users will need to request ETH on Base Sepolia and wBTC on Bitlayer for Gas on both chains from the faucets listed below.

Here’s everything you need to get started;

Once you have these assets, you’re ready to connect your wallet to the Persistence One testnet.


Part 1: Connecting Your MetaMask to the Persistence One Testnet

The first part of this guide will cover connecting your MetaMask wallet to the Persistence One testnet.

  • Head to the following testnet address:

testnet.persistence.one

Upon entering, you will be greeted with the following message to insert your invite code. Invite codes are sent to the email or Telegram addresses provided during the testnet sign-up process and are valid throughout the entire period of the testnet. 

  • Enter your invite code and click submit:
  • After entering, you will be directed to the Persistence One dApp. You can now proceed to connect your wallet by clicking “Connect Wallet”:
  • A new window will appear, asking you to select your wallet. We will choose Metamask Wallet for the purpose of this tutorial:
  • A Metamask notification wallet will appear, asking for permission to connect to the Persistence One dApp; click “Confirm”:
  • Another notification will appear requesting that you switch your network from Ethereum Mainnet to the Sepolia Base Testnet network. Hit “Switch Network”:

Your wallet is now connected. We can proceed to the next part: executing a cross-chain BTC swap.

Part 2: Swapping cbBTC on Base Testnet for wBTC on Bitlayer Testnet

We’ve designed our UX to be seamless, making the process of swapping one BTC variant for another extremely straightforward. In a nutshell, you enter the amount of cbBTC you would like to swap, hit “execute,” and then confirm the transaction on Metamask. The cross-chain BTC swap will occur in just a few seconds with near-instant finality, giving you a smooth experience. 

Let’s go through the process step by step.

  • Ensure the “Transfer From” part of the dashboard is selected from “Sepolia Base” to swap cbBTC. The “Transfer To” section should have “BitLayer” selected to swap into WBTC:
  • Enter the desired amount of cbBTC you wish to swap into wBTC in the following field:
  • You will notice a notification at the bottom of the dashboard showing that the order fulfillment will occur in around 30 seconds. This notification also indicates the fees involved. You can expand the notification to view more details:
  • Once you are happy to execute the swap, hit “Approve fund transfer”:
  • A Metamask window will appear, asking you to grant the Persistence One dApp permission to spend your tokens for the swap. Hit “Max” and then hit “Next”:
  • On the following notification, hit “Approve”:
  • Once approved, you can create the order for the BTC cross-chain swap. To do this, hit “Create Order”:
  • A Metamask window will appear, asking you to confirm the transaction. Scroll to the bottom of the notification and hit “Confirm”:
  • A new window will appear in the UI, showing the status of your transaction. The first step of the cross-chain swap is sending the funds to the Persistence One contract on the source chain, which, in this case, is on Base:
  • After a few seconds, you will notice that the source transaction is marked as complete. The next step of the cross-chain swap is for the Solver to send you the funds on the destination chain. In this case, the Solver will be sending WBTC on the Bitlayer chain:
  • After a few more seconds, the entire transaction will be complete. You can see that this took just 25 seconds:
  • The following button can be pressed to share your cross-chain swap:
  • Please feel free to use any of the buttons to share the seamless intent-based cross-chain swap:

That’s all there is to it. You have successfully conducted an intents-based cross-chain BTC swap from the Base network to Bitlayer on the testnet. 

You should see your WBTC in your wallet:

Part 3: Swapping WBTC Back Into CBBTC

The final part of this guide covers how to swap WBTC back into CBBTC.

NOTE: For this part of the guide, you must have WBTC on the Bitlayer testnet to pay for gas. To obtain WBTC, simply head to the faucet in the following link and enter your Metamask wallet address:

https://www.bitlayer.org/faucet
  • To swap WBTC back into CBBTC, you can either manually change the network in “Transfer From” or hit the “rotate” button in the middle:
  • Once you hit the “Rotate” button, a Metamask notification will appear asking your permission to swap to the Bitlayer Network testnet. Hit “Switch Network”;
  • You can then enter the amount of WBTC to swap into CBBTC and hit “Approve Fund Transfer.” Again, a series of Metamask notifications will appear, asking you to approve Persistence One to have access to your WBTC for the BTC cross-chain swap:
  • Once confirmed, you can go ahead and click “Create Order.”
  •  Another series of Metamask wallet notifications will appear, asking for your approval. Please confirm them all. 
  • Again, a new window will appear in the UI to show your transaction progress. You can click the downward arrow to view more about the current cross-chain BTC swap:
  • After clicking the arrow, you will see the same UI as before, displaying that the source transaction is in progress:
  • After a few seconds, the entire cross-chain BTC swap will have been completed.

That’s all there is to it. You have successfully swapped your WBTC on Bitlayer back to CBBTC on Base!

After playing around with the testnet, we would greatly value your feedback. You can send us feedback using the form located in the menu bar:

Enjoy using the testnet. 

About Persistence One

Persistence One is building a Bitcoin interoperability solution to enable cross-chain BTC swaps across Bitcoin Layer 2s.

The rapid rollout of Bitcoin L2s and side chains has led to fragmentation, hurting BTCfi scalability. Using the power of intents, Persistence One will enable users to move assets across Bitcoin Layer 2s more efficiently than traditional bridging, offering fast, secure, zero-slippage cross-chain swaps.

Twitter | LinkedIn | Telegram | YouTube | Reddit | [email protected]

Total
0
Shares