# Error importing ckBtccanister from @dfnity/ckbtc package

**URL:** <https://forum.dfinity.org/t/error-importing-ckbtccanister-from-dfnity-ckbtc-package/27881>\
**Category:** JavaScript\
**Created:** [February 25, 2024, 12:46pm UTC](https://forum.dfinity.org/t/error-importing-ckbtccanister-from-dfnity-ckbtc-package/27881 "2024-02-25T12:46:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kolexstrings](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kolexstrings/32/11719_2.png) [@kolexstrings](https://forum.dfinity.org/u/kolexstrings)\
**Post date:** [February 25, 2024, 12:46pm UTC](https://forum.dfinity.org/t/error-importing-ckbtccanister-from-dfnity-ckbtc-package/27881/1 "2024-02-25T12:46:44Z")

</div>

Bug Report

I am trying to do a basic frontend integration for the ckBtc minter canister and according to the documentation, the initial steps should be

import { CkBTCCanister } from “@dfinity/ckbtc”;  
import { createAgent } from “@dfinity/utils”;

const agent = await createAgent({  
identity,  
host: HOST,  
});

const { getBtcAddress } = CkBTCCanister.create({  
agent,  
canisterId: MY\_CKBTC\_MINTER\_CANISTER\_ID,  
});

const btcAddress = await getBtcAddress({});

but then I am getting a TypeScript error that says: Module ‘“@dfinity/ckbtc”’ has no exported member ‘CkBTCCanister’.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [February 25, 2024, 12:58pm UTC](https://forum.dfinity.org/t/error-importing-ckbtccanister-from-dfnity-ckbtc-package/27881/2 "2024-02-25T12:58:48Z")

</div>

It’s not a “Bug Report” but, I’m guessing a typo in the [README](https://github.com/dfinity/ic-js/tree/main/packages/ckbtc#usage).

The correct feature exposed by the library is [CkBTCMinterCanister](https://github.com/dfinity/ic-js/tree/main/packages/ckbtc#factory-ckbtcmintercanister).

```auto
import { CkBTCMinterCanister } from “@dfinity/ckbtc”;

...

```

---

<div class="post-metadata">

**Author:** ![kolexstrings](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kolexstrings/32/11719_2.png) [@kolexstrings](https://forum.dfinity.org/u/kolexstrings)\
**Post date:** [February 25, 2024, 1:23pm UTC](https://forum.dfinity.org/t/error-importing-ckbtccanister-from-dfnity-ckbtc-package/27881/3 "2024-02-25T13:23:57Z")

</div>

I just tried out your recommendation, and it works fine, Thank you

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [February 26, 2024, 6:10am UTC](https://forum.dfinity.org/t/error-importing-ckbtccanister-from-dfnity-ckbtc-package/27881/4 "2024-02-26T06:10:55Z")

</div>

You’re welcome.

I’ve provided a PR to fix the typo in the README: [https://github.com/dfinity/ic-js/pull/553](https://github.com/dfinity/ic-js/pull/553)
