🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@dfinity/ckbtc

Package Overview
Dependencies
Maintainers
8
Versions
793
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/ckbtc

A library for interfacing with ckBTC.

Source
npmnpm
Version
6.0.1-next-2025-12-03.1
Version published
Weekly downloads
3.8K
-17.27%
Maintainers
8
Weekly downloads
 
Created
Source

ckbtc-js

A library for interfacing with ckBTC on the Internet Computer.

npm version GitHub license

[!TIP] Still using @dfinity/ckbtc? Upgrade to @icp-sdk/canisters/ckbtc!

Table of contents

Installation

You can use ckbtc-js by installing it in your project.

npm i @dfinity/ckbtc

The bundle needs peer dependencies, be sure that following resources are available in your project as well.

npm i @icp-sdk/core @dfinity/utils

Usage

The features are available through the class CkBTCMinterCanister. It has to be instantiated with a canister ID.

import { CkBTCMinterCanister } from "@dfinity/ckbtc";
import { createAgent } from "@dfinity/utils";

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

const { getBtcAddress } = CkBTCMinterCanister.create({
  agent,
  canisterId: MY_CKBTC_MINTER_CANISTER_ID,
});

const btcAddress = await getBtcAddress({});

Documentation

You can find the API docs here.

Resources

Keywords

internet computer

FAQs

Package last updated on 03 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts