# Converting ckbtc to btc

**URL:** <https://forum.dfinity.org/t/converting-ckbtc-to-btc/33954>\
**Category:** Rust\
**Created:** [August 7, 2024, 5:44am UTC](https://forum.dfinity.org/t/converting-ckbtc-to-btc/33954 "2024-08-07T05:44:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![b3hr4d](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/b3hr4d/32/9755_2.png) [@b3hr4d](https://forum.dfinity.org/u/b3hr4d)\
**Post date:** [August 7, 2024, 8:00am UTC](https://forum.dfinity.org/t/converting-ckbtc-to-btc/33954/2 "2024-08-07T08:00:57Z")

</div>

Hi Shreya, welcome to the community!

For your project involving converting between ckBTC and BTC, as well as ckETH and ETH, you might find the following example useful:

[![](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/5/9/59e19855ecd263aa49c62d1fac0c7cbee3f1bb2b.jpeg "Simple btc intraction on ICP with @ic-reactor") ](https://www.youtube.com/watch?v=r-J6eWcfmOQ)

I have created a ckBTC wallet using `ic-reactor/react`. You can check it out here:

> [@Introduction @ic-reactor/react for React Developers](https://forum.dfinity.org/t/introduction-ic-reactor-react-for-react-developers/27930/27):
>
> I’ve created a new example called ckBTC Wallet! This example demonstrates how to integrate with the ckBTC ledger and minter to retrieve BTC. Check out the demo video: [[Simple btc intraction on ICP with @ic-reactor] ](https://www.youtube.com/watch?v=r-J6eWcfmOQ)You can find the source code on GitHub: [ckBTC Wallet Code](https://github.com/B3Pay/ic-reactor/tree/main/examples/ckbtc-wallet)Key Component: MinterRetrieveBTC This hooks handles the retrieval of BTC by interacting with the ckBTC ledger and minter. Here are the main parts of the component: const { call: refetchBalance, data: balance, …

The process for ckETH is very similar. For such simple conversions, you don’t necessarily need a backend. The frontend can handle interactions with the canisters effectively.

Let me know if you have any more questions or need further assistance!

---

_[View the full topic](https://forum.dfinity.org/t/converting-ckbtc-to-btc/33954)._
