pub struct ApiClient { /* private fields */ }
Expand description
The Client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(sender: RpcChannel) -> Self
pub fn new(sender: RpcChannel) -> Self
Creates a new Client
.
pub fn getblockhash( &self, height: usize, ) -> impl Future<Output = RpcResult<BlockHash>>
pub fn getblockheader( &self, blockhash: BlockHash, verbose: bool, ) -> impl Future<Output = RpcResult<String>>
pub fn getblock( &self, blockhash: BlockHash, verbosity: u64, ) -> impl Future<Output = RpcResult<String>>
pub fn get_raw_transaction( &self, txid: Txid, verbose: bool, blockhash: Option<BlockHash>, ) -> impl Future<Output = RpcResult<Value>>
pub fn list_unspent( &self, minconf: Option<usize>, maxconf: Option<usize>, address: Option<Address>, include_unsafe: Option<bool>, query_options: Option<String>, ) -> impl Future<Output = RpcResult<Vec<ListUnspentResultEntry>>>
Trait Implementations§
Source§impl From<RpcChannel> for Client
impl From<RpcChannel> for Client
Source§fn from(channel: RpcChannel) -> Self
fn from(channel: RpcChannel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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