UNPKG

@imikailoby/sats

Version:

Tiny non-custodial Bitcoin SDK (TS) — keys, addresses, PSBT, provider chain

9 lines (8 loc) 334 B
import * as bitcoin from "bitcoinjs-lib"; /** * Selects bitcoin network by flag. * @param testnet - when true, returns testnet network; otherwise mainnet * @throws NetworkError when network cannot be resolved */ export declare const network: (testnet?: boolean) => bitcoin.networks.Network; export type Network = bitcoin.Network;