# \[BTC integration\] ICP canisters now have access to BTC testnet balances and UTXOs

**URL:** <https://forum.dfinity.org/t/btc-integration-icp-canisters-now-have-access-to-btc-testnet-balances-and-utxos/13393>\
**Category:** Developers\
**Created:** [May 31, 2022, 4:57pm UTC](https://forum.dfinity.org/t/btc-integration-icp-canisters-now-have-access-to-btc-testnet-balances-and-utxos/13393 "2022-05-31T16:57:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![diegop](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/diegop/32/569_2.png) [@diegop](https://forum.dfinity.org/u/diegop)\
**Post date:** [May 31, 2022, 4:57pm UTC](https://forum.dfinity.org/t/btc-integration-icp-canisters-now-have-access-to-btc-testnet-balances-and-utxos/13393/1 "2022-05-31T16:57:59Z")

</div>

# An example of how to use this:

![](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/3/3ec273fe9d401d93a76f40ea59a549c741bb592e.png)

This is an experimental feature, currently only enabled on a single isolated subnet (2fq7c), and other subnets can use it via xnet communication (which causes most of the latency). In the future we could enable the BTC feature on multiple subnets and avoid the xnet latency.

What’s next? Right now canisters can read BTC testnet state, but not interact with it yet. Our next goal is to enable experimental threshold ECDSA signing on ICP mainnet, so canisters can sign & submit BTC testnet transactions.

> **[GitHub - ielashi/bitcoin-integration-demo: A demo of the Internet Computer's Bitcoin API](https://github.com/ielashi/bitcoin-integration-demo)**
>
> A demo of the Internet Computer's Bitcoin API

note: I shamelessly copied/pasted this from Reddit post: [Reddit - The heart of the internet](https://www.reddit.com/r/dfinity/comments/v1tlsy/icp_canisters_now_have_access_to_btc_testnet/)

---

<div class="post-metadata">

**Author:** ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)\
**Post date:** [February 14, 2023, 6:09pm UTC](https://forum.dfinity.org/t/btc-integration-icp-canisters-now-have-access-to-btc-testnet-balances-and-utxos/13393/2 "2023-02-14T18:09:19Z")

</div>

@ielashi is a gem. Wondering, Are we running Bitcoin code Node in the ICP permisses to sync the balances ?

---

<div class="post-metadata">

**Author:** ![ielashi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ielashi/32/15704_2.png) [@ielashi](https://forum.dfinity.org/u/ielashi)\
**Post date:** [February 15, 2023, 9:27am UTC](https://forum.dfinity.org/t/btc-integration-icp-canisters-now-have-access-to-btc-testnet-balances-and-utxos/13393/3 "2023-02-15T09:27:39Z")

</div>

Yes. Each node runs a process that fetches blocks directly from the Bitcoin network. These blocks are then fed into the Bitcoin canister, and this canister keeps track of the address’ UTXOs and balances.

You can read more details about that in the [Bitcoin Integration](https://internetcomputer.org/docs/current/developer-docs/integrations/bitcoin/bitcoin-how-it-works) documentation
