Skip to content
docs

SpendPlan

Defined in: wallet-btc/src/read-only-account.ts:15

A coin selection for one spend, with the recipient’s script.

amount: bigint

Defined in: wallet-btc/src/read-only-account.ts:17

Sats the recipient gets (the requested value — never reduced).


change: bigint

Defined in: wallet-btc/src/coinselect.ts:54

Change back to us; 0n when folded into the fee.

CoinSelection.change


changeFolded: boolean

Defined in: wallet-btc/src/coinselect.ts:56

True when change existed but fell below dust and became fee.

CoinSelection.changeFolded


fee: bigint

Defined in: wallet-btc/src/coinselect.ts:52

CoinSelection.fee


feeRate: bigint

Defined in: wallet-btc/src/coinselect.ts:59

CoinSelection.feeRate


recipientKind: ScriptKind

Defined in: wallet-btc/src/read-only-account.ts:19


recipientScript: Uint8Array

Defined in: wallet-btc/src/read-only-account.ts:18


utxos: Utxo[]

Defined in: wallet-btc/src/coinselect.ts:51

CoinSelection.utxos


vsize: number

Defined in: wallet-btc/src/coinselect.ts:58

Estimated vsize of the final transaction.

CoinSelection.vsize