Crate clementine_tx_sender

Source
Expand description

§Clementine Transaction Sender

This crate handles the creation, signing, and broadcasting of Bitcoin transactions, supporting various fee-bumping strategies like CPFP and RBF.

Re-exports§

pub use client::TxSenderClient;
pub use db::TxSenderDb;
pub use db::TxSenderDbTx;
pub use db::TxSenderTransaction;

Modules§

citrea
Provides functions to build Bitcoin transactions related to commit-reveal pattern for Citrea rollup.
client
Transaction Sender Client
config
TxSender standalone configuration.
confirmations 🔒
cpfp
Child Pays For Parent (CPFP) Support For Transaction Sender
db
Postgres database layer for tx-sender.
jsonrpc
JSON-RPC server/client for txsender (feature-gated).
nonstandard
rbf
rpc_errors 🔒
signer 🔒
task
test_utils
Test utilities for clementine-tx-sender.

Macros§

log_error_for_tx
txsender_execute_query_with_tx
Executes a query with a transaction if it is provided.

Structs§

ActivatedWithOutpoint
Activation condition based on an outpoint.
ActivatedWithTxid
Activation condition based on a transaction ID.
MempoolConfig
SpendableUtxo
Represents a spendable UTXO.
TxSender
Manages the process of sending Bitcoin transactions, including handling fee bumping strategies like Replace-By-Fee (RBF) and Child-Pays-For-Parent (CPFP).

Enums§

SendTxError
Transaction sending errors.

Constants§

DEFAULT_FINALITY_DEPTH
Once a tx/outpoint has been observed confirmed/spent for at least this many blocks, we treat it as final and skip further RPC re-checks.
DEFAULT_SEQUENCE
Default sequence for transactions.

Functions§

serialize_tx_for_fund_raw 🔒
Serialize a transaction for fund_raw_transaction, working around Bitcoin Core’s deserialization bug for 0-input segwit transactions. fund_raw_transaction RPC gives deserialization error for 0-input transactions with segwit flag.

Type Aliases§

Result