Struct chainseeker::Client [−][src]
pub struct Client { /* fields omitted */ }
Implementations
impl Client
[src]
impl Client
[src]pub fn new(endpoint: &str) -> Self
[src]
pub async fn get<T: for<'de> Deserialize<'de>>(
&self,
path: &str
) -> Result<T, Error>
[src]
&self,
path: &str
) -> Result<T, Error>
GET the REST endpoint and parse it as a JSON.
pub async fn put<T: for<'de> Deserialize<'de>>(
&self,
path: &str,
s: String
) -> Result<T, Error>
[src]
&self,
path: &str,
s: String
) -> Result<T, Error>
PUT the REST endpoint and parse it as a JSON.
pub async fn status(&self) -> Result<Status, Error>
[src]
pub async fn tx(&self, txid: &str) -> Result<Transaction, Error>
[src]
pub async fn put_tx(&self, hex: String) -> Result<Txid, Error>
[src]
pub async fn block_summary(
&self,
offset: u32,
limit: u32
) -> Result<Vec<BlockSummary>, Error>
[src]
&self,
offset: u32,
limit: u32
) -> Result<Vec<BlockSummary>, Error>
pub async fn block_with_txids<T: ToString>(
&self,
hash_or_height: T
) -> Result<BlockWithTxids, Error>
[src]
&self,
hash_or_height: T
) -> Result<BlockWithTxids, Error>
pub async fn block_with_txs<T: ToString>(
&self,
hash_or_height: T
) -> Result<BlockWithTxs, Error>
[src]
&self,
hash_or_height: T
) -> Result<BlockWithTxs, Error>
pub async fn block_header<T: ToString>(
&self,
hash_or_height: T
) -> Result<BlockHeader, Error>
[src]
&self,
hash_or_height: T
) -> Result<BlockHeader, Error>
pub async fn txids(&self, script_or_address: &str) -> Result<Vec<String>, Error>
[src]
pub async fn txs(
&self,
script_or_address: &str
) -> Result<Vec<Transaction>, Error>
[src]
&self,
script_or_address: &str
) -> Result<Vec<Transaction>, Error>
pub async fn utxos(&self, script_or_address: &str) -> Result<Vec<Utxo>, Error>
[src]
pub async fn rich_list_count(&self) -> Result<RichListCount, Error>
[src]
pub async fn rich_list_addr_rank(
&self,
script_or_address: &str
) -> Result<RichListRank, Error>
[src]
&self,
script_or_address: &str
) -> Result<RichListRank, Error>
pub async fn rich_list(
&self,
offset: u32,
limit: u32
) -> Result<Vec<Option<RichListEntry>>, Error>
[src]
&self,
offset: u32,
limit: u32
) -> Result<Vec<Option<RichListEntry>>, Error>
pub async fn generate_tx(
&self,
wallet: &Wallet,
txouts: &[TxOut],
change: &Script,
fee_rate: u64,
network: Network
) -> Result<Transaction, Error>
[src]
&self,
wallet: &Wallet,
txouts: &[TxOut],
change: &Script,
fee_rate: u64,
network: Network
) -> Result<Transaction, Error>
Generate a new valid transaction from private keys and outputs.
Arguments
wallet
- The collection of private keys.txouts
- The destinations.change
- The change address inbitcoin::Script
format.fee_rate
- The fee rate in satoshi / weight.network
- The network.
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
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]