Skip to main content

Crate bdk_tx

Crate bdk_tx 

Source
Expand description

bdk_tx

Re-exports§

pub extern crate bdk_coin_select;

Re-exports§

pub use miniscript;
pub use miniscript::bitcoin;

Structs§

CannotMeetTarget
Error when the selection is impossible with the input candidates
CanonicalUnspents
Our canonical view of unspent outputs.
CoinbaseMismatch
Mismatch between the expected and actual value of Transaction::is_coinbase.
ConfirmationStatus
Confirmation status of tx data.
FinalizeMap
Holds the results of finalization
Finalizer
Type used to finalize inputs of a Partially Signed Bitcoin Transaction (PSBT) using a collection of pre-computed spending plans.
Input
Single-input plan.
InputCandidates
Input candidates.
InputGroup
Input group. Cannot be empty.
InputMut
Mutable handle to an Input held inside a Selection.
OriginalTxHasNoInputsAvailable
Occurs when the given original tx has no input spend that is still available for spending.
OriginalTxStats
Rbf original tx stats.
Output
Builder output
PsbtParams
Parameters for creating a psbt.
RbfParams
Rbf params.
RbfSet
Set of txs to replace.
Selection
Final selection of inputs and outputs.
Selector
A coin selector
SelectorParams
Parameters for creating tx.
Signer
A PSBT signer

Enums§

AntiFeeSnipingError
Error returned by apply_anti_fee_sniping.
ChangeScript
Source of the change output script and its spending cost.
CreatePsbtError
Occurs when creating a psbt fails.
ExtractReplacementsError
Error when attempting to do extract_replacements.
FromPsbtInputError
Error creating Input from a PSBT input
GetForeignUnspentError
Canonical unspents error
IntoSelectionError
Occurs when we cannot find a solution for selection.
ScriptSource
Source of the output script pubkey
SelectorError
Selector error
SetSequenceError
Error returned by Input::set_sequence.

Traits§

FeeRateExt
Extension trait for converting bitcoin::FeeRate to bdk_coin_select::FeeRate.

Functions§

filter_unspendable
Filter out inputs that cannot be spent now.
group_by_spk
Default group policy.
no_filtering
No filtering.
selection_algorithm_lowest_fee_bnb
Select for lowest fee with bnb

Type Aliases§

DefiniteDescriptor
Definite descriptor.
TxWithStatus
Tx with confirmation status.