Struct bitcoind::BitcoinD[][src]

pub struct BitcoinD {
    pub client: Client,
    pub params: ConnectParams,
    // some fields omitted
}
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

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

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

Performs the conversion.

Performs the conversion.

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.