logo
pub trait Blockchain: WalletSync + GetHeight + GetTx {
    fn get_capabilities(&self) -> HashSet<Capability>;
fn broadcast(&self, tx: &Transaction) -> Result<(), Error>;
fn estimate_fee(&self, target: usize) -> Result<FeeRate, Error>; }
Expand description

Trait that defines the actions that must be supported by a blockchain backend

Required methods

Return the set of Capability supported by this backend

Broadcast a transaction

Estimate the fee rate required to confirm a transaction in a given target of blocks

Implementations on Foreign Types

Implementors