🚧

Important Notice

This integration toolkit is currently in a demonstration phase. The methods and processes outlined in this document are for illustrative purposes only and may be subject to change. Please note that this toolkit is not yet live, and the final implementation may differ from the examples provided here.

swBTC is a yield-bearing ERC-20 Liquid Restaking Token that offers liquidity for users who want to stake their WBTC in protocols like Symbiotic, EigenLayer, or Karak without locking up their WBTC.

swBTC allows holders to earn native yield from restaking platforms while simultaneously leveraging swBTC across the DeFi ecosystem. It can be used as collateral in lending and borrowing protocols, DEXs, options platforms, and more.

SDK Introduction

swBTC SDK is an SDK package developed by P2P.org in collaboration with the Swell team. It serves the purpose of offering an easy way for intermediaries to manage swBTC via the Swell smart contract protocol.

To start using this toolkit, you first need to install the swBTC SDK

//yarn
yarn add @p2p.org/swell-sdk

//npm
npm install @p2p.org/swell-sdk

After the installation is done, you are ready to use the provided methods to interact with the Swell smart contract protocol. The toolkit will enable you to:

  • Deposit WBTC and receive swBTC
  • Withdraw WBTC in exchange of swBTC and accrued rewards
  • Check withdrawal time
  • Check the total rewards accrued per time period
  • Check the total APY per time period

If you have any questions or need further assistance, please contact us.

What's Next?