Onchain Bitcoin wallet implementation for traditional Bitcoin transactions.

This wallet handles regular Bitcoin transactions on the blockchain without using the Ark protocol. It supports P2TR (Pay-to-Taproot) addresses and provides basic Bitcoin wallet functionality.

const wallet = new OnchainWallet(identity, 'mainnet');
const balance = await wallet.getBalance();
const txid = await wallet.send({
address: 'bc1...',
amount: 50000
});

Implements

Constructors

Properties

network: Network
onchainP2TR: P2TR
provider: OnchainProvider
DUST_AMOUNT: number = 546
MIN_FEE_RATE: number = 1

Accessors

Methods