[][src]Struct electrs::daemon::Daemon

pub struct Daemon { /* fields omitted */ }

Methods

impl Daemon[src]

pub fn new(
    daemon_dir: &PathBuf,
    daemon_rpc_addr: SocketAddr,
    cookie_getter: Arc<dyn CookieGetter>,
    network: Network,
    signal: Waiter,
    metrics: &Metrics
) -> Result<Daemon>
[src]

pub fn reconnect(&self) -> Result<Daemon>[src]

pub fn list_blk_files(&self) -> Result<Vec<PathBuf>>[src]

pub fn magic(&self) -> u32[src]

pub fn get_subversion(&self) -> Result<String>[src]

pub fn getbestblockhash(&self) -> Result<Sha256dHash>[src]

pub fn getblockheader(&self, blockhash: &Sha256dHash) -> Result<BlockHeader>[src]

pub fn getblockheaders(&self, heights: &[usize]) -> Result<Vec<BlockHeader>>[src]

pub fn getblock(&self, blockhash: &Sha256dHash) -> Result<Block>[src]

pub fn getblocktxids(&self, blockhash: &Sha256dHash) -> Result<Vec<Sha256dHash>>[src]

pub fn getblocks(&self, blockhashes: &[Sha256dHash]) -> Result<Vec<Block>>[src]

pub fn gettransaction(
    &self,
    txhash: &Sha256dHash,
    blockhash: Option<Sha256dHash>
) -> Result<Transaction>
[src]

pub fn gettransaction_raw(
    &self,
    txhash: &Sha256dHash,
    blockhash: Option<Sha256dHash>,
    verbose: bool
) -> Result<Value>
[src]

pub fn gettransactions(
    &self,
    txhashes: &[&Sha256dHash]
) -> Result<Vec<Transaction>>
[src]

pub fn getmempooltxids(&self) -> Result<HashSet<Sha256dHash>>[src]

pub fn getmempoolentry(&self, txid: &Sha256dHash) -> Result<MempoolEntry>[src]

pub fn broadcast(&self, tx: &Transaction) -> Result<Sha256dHash>[src]

pub fn get_new_headers(
    &self,
    indexed_headers: &HeaderList,
    bestblockhash: &Sha256dHash
) -> Result<Vec<BlockHeader>>
[src]

Auto Trait Implementations

impl Send for Daemon

impl Sync for Daemon

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]