Skip to content

parseBtcAddress

parseBtcAddress(params): BtcAddressInfo

Defined in: packages/ckbtc/src/utils/btc.utils.ts:195

Parse a Bitcoin address.

Parse implementation follows strategy implemented in Minter canister.

Credits: Parts of JavaScript code and test values from bitcoin-address-validation.

BtcAddress

The Bitcoin address and network to parse

BtcAddressInfo