Struct bitcoind::BitcoinD

source ·
pub struct BitcoinD {
    pub client: Client,
    pub params: ConnectParams,
    /* private fields */
}
Expand description

Struct representing the bitcoind process with related information

Fields§

§client: Client

Rpc client linked to this bitcoind process

§params: ConnectParams

Contains information to connect to this node

Implementations§

Launch the bitcoind process from the given exe executable with default args.

Waits for the node to be ready to accept connections before returning

Launch the bitcoind process from the given exe executable with given Conf param

Returns the rpc URL including the schema eg. http://127.0.0.1:44842

Returns the rpc URL including the schema and the given wallet_name eg. http://127.0.0.1:44842/wallet/my_wallet

Return the current workdir path of the running node

Returns the P2P enum to connect to this node p2p port

Stop the node, waiting correct process termination

Create a new wallet in the running node, and return an RPC client connected to the just created wallet

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.