pub struct BitcoindClient { /* private fields */ }
Implementations§
Source§impl BitcoindClient
impl BitcoindClient
pub fn new( host: String, port: u16, username: String, password: String, ) -> Result<Self, SparkSdkError>
pub fn new_from_env() -> Result<Self, SparkSdkError>
pub fn generate_to_address( &self, blocks: u64, address: &Address, ) -> Result<Vec<BlockHash>, SparkSdkError>
pub fn get_block_info( &self, block_hash: &BlockHash, ) -> Result<GetBlockResult, SparkSdkError>
pub fn get_raw_transaction_info( &self, txid: &Txid, block_hash: Option<&BlockHash>, ) -> Result<GetRawTransactionResult, SparkSdkError>
pub fn send_raw_transaction( &self, tx: &Transaction, ) -> Result<Txid, SparkSdkError>
pub fn mine_blocks(&self, blocks: u64) -> Result<(), SparkSdkError>
Auto Trait Implementations§
impl !Freeze for BitcoindClient
impl !RefUnwindSafe for BitcoindClient
impl Send for BitcoindClient
impl Sync for BitcoindClient
impl Unpin for BitcoindClient
impl !UnwindSafe for BitcoindClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request