Bitcoin Core
Browser-safe Bitcoin utilities: derive Taproot and SegWit addresses from an EVM secp256k1 private key, plus Ordinals, BRC-20, and Runes helpers.
SDK_Files: base-sdk/packages/bitcoin-checksum · npm @web5nexus/bitcoin-core (opens in a new tab)
No WASM — works in Vite, Next.js, and Node.
Install
npm install @web5nexus/bitcoin-coreCapabilities
| Capability | Entry |
|---|---|
| Address derivation (P2TR, P2WPKH, P2PKH, P2SH) | @web5nexus/bitcoin-core / /addresses |
| Wallet utilities | bitcoinUtils |
| Ordinals / BRC-20 / Runes | ordinals, brc20, runes |
| Testnet faucet (Puppeteer) | @web5nexus/bitcoin-core/faucet (Node only) |
Quick start
import { exportAllBitcoinAddresses } from '@web5nexus/bitcoin-core/addresses'
const addrs = exportAllBitcoinAddresses('0x11…', 'mainnet')
console.log(addrs.p2tr) // bc1p…
console.log(addrs.p2wpkh) // bc1q…Used by Auth Modal
- Connect Modal optional BTC derive (
bitcoin: { enabled: true }) - Solo package
@web5nexus/authmodal-bitcoinbuilds on this library for social → address types → PSBT
Related
- Auth Modal · Bitcoin Wallet
- Address Validator — validate BTC / testnet strings