pub struct TitanClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for AsyncClient
impl Clone for AsyncClient
Source§fn clone(&self) -> AsyncClient
fn clone(&self) -> AsyncClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TitanApiAsync for AsyncClient
impl TitanApiAsync for AsyncClient
Source§fn get_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the node’s status (e.g., network info, block height).
Source§fn get_tip<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockTip, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tip<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockTip, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the current best block tip (height + hash).
Source§fn get_block<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 Block,
) -> Pin<Box<dyn Future<Output = Result<Block, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_block<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 Block,
) -> Pin<Box<dyn Future<Output = Result<Block, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches a block (by height or hash) using
query::Block.Source§fn get_block_hash_by_height<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_block_hash_by_height<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Given a block height, returns the block hash.
Source§fn get_block_txids<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 Block,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_block_txids<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 Block,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a list of transaction IDs in a particular block.
Source§fn get_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AddressData, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AddressData, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches address data (balance, transactions, etc.).
Source§fn get_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<Transaction, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<Transaction, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a higher-level transaction object (including Runes info) by
txid.Source§fn get_transaction_raw<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_transaction_raw<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns raw transaction bytes (binary).
Source§fn get_transaction_hex<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_transaction_hex<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns raw transaction hex.
Source§fn get_transaction_status<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<TransactionStatus, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_transaction_status<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<TransactionStatus, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the status of a transaction by
txid.Source§fn send_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hex: String,
) -> Pin<Box<dyn Future<Output = Result<Txid, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hex: String,
) -> Pin<Box<dyn Future<Output = Result<Txid, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Broadcasts a transaction (raw hex) to the network and returns the resulting
Txid.Source§fn get_output<'life0, 'life1, 'async_trait>(
&'life0 self,
outpoint: &'life1 OutPoint,
) -> Pin<Box<dyn Future<Output = Result<TxOut, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_output<'life0, 'life1, 'async_trait>(
&'life0 self,
outpoint: &'life1 OutPoint,
) -> Pin<Box<dyn Future<Output = Result<TxOut, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches a specific output by outpoint (
<txid>:<vout>).Source§fn get_inscription<'life0, 'life1, 'async_trait>(
&'life0 self,
inscription_id: &'life1 InscriptionId,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, Vec<u8>), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_inscription<'life0, 'life1, 'async_trait>(
&'life0 self,
inscription_id: &'life1 InscriptionId,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, Vec<u8>), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns
(HTTP Headers, Bytes) for an inscription by its inscription_id.Source§fn get_runes<'life0, 'async_trait>(
&'life0 self,
pagination: Option<Pagination>,
) -> Pin<Box<dyn Future<Output = Result<PaginationResponse<RuneResponse>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_runes<'life0, 'async_trait>(
&'life0 self,
pagination: Option<Pagination>,
) -> Pin<Box<dyn Future<Output = Result<PaginationResponse<RuneResponse>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists existing runes, supporting pagination.
Source§fn get_rune<'life0, 'life1, 'async_trait>(
&'life0 self,
rune: &'life1 Rune,
) -> Pin<Box<dyn Future<Output = Result<RuneResponse, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_rune<'life0, 'life1, 'async_trait>(
&'life0 self,
rune: &'life1 Rune,
) -> Pin<Box<dyn Future<Output = Result<RuneResponse, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches data about a specific rune.
Source§fn get_rune_transactions<'life0, 'life1, 'async_trait>(
&'life0 self,
rune: &'life1 Rune,
pagination: Option<Pagination>,
) -> Pin<Box<dyn Future<Output = Result<PaginationResponse<Txid>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_rune_transactions<'life0, 'life1, 'async_trait>(
&'life0 self,
rune: &'life1 Rune,
pagination: Option<Pagination>,
) -> Pin<Box<dyn Future<Output = Result<PaginationResponse<Txid>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a paginated list of
Txid for all transactions involving a given rune.Source§fn get_mempool_txids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Txid>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_mempool_txids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Txid>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns a list of all txids currently in the mempool.
Source§fn get_mempool_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<MempoolEntry, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mempool_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 Txid,
) -> Pin<Box<dyn Future<Output = Result<MempoolEntry, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a single mempool entry by
txid.Source§fn get_mempool_entries<'life0, 'life1, 'async_trait>(
&'life0 self,
txids: &'life1 [Txid],
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, Option<MempoolEntry>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mempool_entries<'life0, 'life1, 'async_trait>(
&'life0 self,
txids: &'life1 [Txid],
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, Option<MempoolEntry>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns multiple mempool entries by their
txids.Source§fn get_all_mempool_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, MempoolEntry>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_mempool_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, MempoolEntry>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns all mempool entries.
Source§fn get_mempool_entries_with_ancestors<'life0, 'life1, 'async_trait>(
&'life0 self,
txids: &'life1 [Txid],
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, MempoolEntry>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mempool_entries_with_ancestors<'life0, 'life1, 'async_trait>(
&'life0 self,
txids: &'life1 [Txid],
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, MempoolEntry>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the specified mempool entries along with all their ancestors.
Source§fn get_subscription<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Subscription, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_subscription<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Subscription, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches a single subscription by
id.Source§fn list_subscriptions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Subscription>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_subscriptions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Subscription>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists all subscriptions currently known.
Source§fn add_subscription<'life0, 'life1, 'async_trait>(
&'life0 self,
subscription: &'life1 Subscription,
) -> Pin<Box<dyn Future<Output = Result<Subscription, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_subscription<'life0, 'life1, 'async_trait>(
&'life0 self,
subscription: &'life1 Subscription,
) -> Pin<Box<dyn Future<Output = Result<Subscription, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Adds (creates) a subscription.
Auto Trait Implementations§
impl Freeze for AsyncClient
impl !RefUnwindSafe for AsyncClient
impl Send for AsyncClient
impl Sync for AsyncClient
impl Unpin for AsyncClient
impl !UnwindSafe for AsyncClient
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