pub struct Client(/* private fields */);Available on crate feature
with-jsonrpc only.Implementations§
Trait Implementations§
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
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 uptime(&self) -> Result<u32, Error>
fn uptime(&self) -> Result<u32, Error>
Returns for how long florestad has been running, in seconds
Source§fn get_memory_info(&self, mode: String) -> Result<GetMemInfoRes, Error>
fn get_memory_info(&self, mode: String) -> Result<GetMemInfoRes, Error>
Returns stats about our memory usage
Source§fn get_rpc_info(&self) -> Result<GetRpcInfoRes, Error>
fn get_rpc_info(&self) -> Result<GetRpcInfoRes, Error>
Returns stats about our RPC server
Source§fn add_node(
&self,
node: String,
command: AddNodeCommand,
v2transport: bool,
) -> Result<Value, Error>
fn add_node( &self, node: String, command: AddNodeCommand, v2transport: bool, ) -> Result<Value, Error>
Tells florestad to connect with a peer Read more
Source§fn rescanblockchain(&self, start_height: u32) -> Result<bool, Error>
fn rescanblockchain(&self, start_height: u32) -> Result<bool, Error>
Trigger a rescan of the wallet Read more
Source§fn get_roots(&self) -> Result<Vec<String>, Error>
fn get_roots(&self) -> Result<Vec<String>, Error>
Gets the current accumulator for the chain we’re on Read more
Source§fn get_block(
&self,
hash: BlockHash,
verbosity: Option<u32>,
) -> Result<GetBlockRes, Error>
fn get_block( &self, hash: BlockHash, verbosity: Option<u32>, ) -> 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_txout_proof(
&self,
txids: Vec<Txid>,
blockhash: Option<BlockHash>,
) -> Option<String>
fn get_txout_proof( &self, txids: Vec<Txid>, blockhash: Option<BlockHash>, ) -> Option<String>
Returns the proof that one or more transactions were included in a block Read more
Source§fn get_peer_info(&self) -> Result<Vec<PeerInfo>, Error>
fn get_peer_info(&self) -> Result<Vec<PeerInfo>, 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, height: u32) -> Result<String, Error>
fn get_block_filter(&self, height: 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
Source§fn send_raw_transaction(&self, tx: String) -> Result<Txid, Error>
fn send_raw_transaction(&self, tx: String) -> Result<Txid, Error>
Sends a hex-encoded transaction to the network Read more