Struct floresta_cli::jsonrpc_client::Client
source · pub struct Client(/* private fields */);
Implementations§
Trait Implementations§
Auto Trait Implementations§
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
source§impl<T> FlorestaRPC for Twhere
T: JsonRPCClient,
impl<T> FlorestaRPC for Twhere T: JsonRPCClient,
source§fn find_tx_out(
&self,
tx_id: Txid,
outpoint: u32,
script: String,
height_hint: u32
) -> Result<Value, Error>
fn find_tx_out( &self, tx_id: Txid, outpoint: u32, script: String, height_hint: u32 ) -> Result<Value, Error>
Finds an specific utxo in the chain Read more
source§fn add_node(&self, node: String) -> Result<bool, Error>
fn add_node(&self, node: String) -> Result<bool, Error>
Tells florestad to connect with a peer Read more
source§fn get_roots(&self) -> Result<Vec<String, Global>, Error>
fn get_roots(&self) -> Result<Vec<String, Global>, Error>
Gets the current accumulator for the chain we’re on Read more
source§fn get_block(&self, hash: BlockHash) -> Result<GetBlockRes, Error>
fn get_block(&self, hash: BlockHash) -> Result<GetBlockRes, Error>
Returns a block, given a block hash Read more
source§fn get_tx_out(&self, tx_id: Txid, outpoint: u32) -> Result<Value, Error>
fn get_tx_out(&self, tx_id: Txid, outpoint: u32) -> Result<Value, Error>
Return a cached transaction output Read more
source§fn get_tx_proof(&self, tx_id: Txid) -> Result<Vec<String, Global>, Error>
fn get_tx_proof(&self, tx_id: Txid) -> Result<Vec<String, Global>, Error>
Returns the proof that one or more transactions were included in a block Read more
source§fn get_peer_info(&self) -> Result<Vec<PeerInfo, Global>, Error>
fn get_peer_info(&self) -> Result<Vec<PeerInfo, Global>, Error>
Gets information about the peers we’re connected with Read more
source§fn get_block_hash(&self, height: u32) -> Result<BlockHash, Error>
fn get_block_hash(&self, height: u32) -> Result<BlockHash, Error>
Returns the hash of the block at the given height Read more
source§fn get_transaction(
&self,
tx_id: Txid,
verbosity: Option<bool>
) -> Result<Value, Error>
fn get_transaction( &self, tx_id: Txid, verbosity: Option<bool> ) -> Result<Value, Error>
Gets a transaction from the blockchain Read more
source§fn load_descriptor(&self, descriptor: String) -> Result<bool, Error>
fn load_descriptor(&self, descriptor: String) -> Result<bool, Error>
Loads up a descriptor into the wallet Read more
source§fn get_block_filter(&self, heigth: u32) -> Result<String, Error>
fn get_block_filter(&self, heigth: u32) -> Result<String, Error>
Get the BIP158 filter for a given block height Read more
source§fn get_block_header(&self, hash: BlockHash) -> Result<Header, Error>
fn get_block_header(&self, hash: BlockHash) -> Result<Header, Error>
Returns the block header for the given block hash Read more
source§fn get_blockchain_info(&self) -> Result<GetBlockchainInfoRes, Error>
fn get_blockchain_info(&self) -> Result<GetBlockchainInfoRes, Error>
Returns general information about the chain we are on Read more