SpendPlan
Defined in: wallet-btc/src/read-only-account.ts:15
A coin selection for one spend, with the recipient’s script.
Extends
Section titled “Extends”Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: wallet-btc/src/read-only-account.ts:17
Sats the recipient gets (the requested value — never reduced).
change
Section titled “change”change:
bigint
Defined in: wallet-btc/src/coinselect.ts:54
Change back to us; 0n when folded into the fee.
Inherited from
Section titled “Inherited from”changeFolded
Section titled “changeFolded”changeFolded:
boolean
Defined in: wallet-btc/src/coinselect.ts:56
True when change existed but fell below dust and became fee.
Inherited from
Section titled “Inherited from”fee:
bigint
Defined in: wallet-btc/src/coinselect.ts:52
Inherited from
Section titled “Inherited from”feeRate
Section titled “feeRate”feeRate:
bigint
Defined in: wallet-btc/src/coinselect.ts:59
Inherited from
Section titled “Inherited from”recipientKind
Section titled “recipientKind”recipientKind:
ScriptKind
Defined in: wallet-btc/src/read-only-account.ts:19
recipientScript
Section titled “recipientScript”recipientScript:
Uint8Array
Defined in: wallet-btc/src/read-only-account.ts:18
utxos:
Utxo[]
Defined in: wallet-btc/src/coinselect.ts:51
Inherited from
Section titled “Inherited from”vsize:
number
Defined in: wallet-btc/src/coinselect.ts:58
Estimated vsize of the final transaction.