pub struct TitanBlockingClient { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Clone for SyncClient
impl Clone for SyncClient
Source§fn clone(&self) -> SyncClient
fn clone(&self) -> SyncClient
Returns a copy 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 TitanApiSync for SyncClient
impl TitanApiSync for SyncClient
Source§fn get_block(&self, query: &Block) -> Result<Block, Error>
fn get_block(&self, query: &Block) -> Result<Block, Error>
Fetches a block by height/hash in a blocking manner.
Source§fn get_block_hash_by_height(&self, height: u64) -> Result<String, Error>
fn get_block_hash_by_height(&self, height: u64) -> Result<String, Error>
Given a block height, returns the block hash in a blocking manner.
Source§fn get_block_txids(&self, query: &Block) -> Result<Vec<String>, Error>
fn get_block_txids(&self, query: &Block) -> Result<Vec<String>, Error>
Returns txids for a block in a blocking manner.
Source§fn get_address(&self, address: &str) -> Result<AddressData, Error>
fn get_address(&self, address: &str) -> Result<AddressData, Error>
Returns address data in a blocking manner.
Source§fn get_transaction(&self, txid: &Txid) -> Result<Transaction, Error>
fn get_transaction(&self, txid: &Txid) -> Result<Transaction, Error>
Returns a transaction (with runic info) by
txid
in a blocking manner.Source§fn get_transaction_raw(&self, txid: &Txid) -> Result<Vec<u8>, Error>
fn get_transaction_raw(&self, txid: &Txid) -> Result<Vec<u8>, Error>
Returns raw tx bytes in a blocking manner.
Source§fn get_transaction_hex(&self, txid: &Txid) -> Result<String, Error>
fn get_transaction_hex(&self, txid: &Txid) -> Result<String, Error>
Returns raw tx hex in a blocking manner.
Source§fn get_transaction_status(
&self,
txid: &Txid,
) -> Result<TransactionStatus, Error>
fn get_transaction_status( &self, txid: &Txid, ) -> Result<TransactionStatus, Error>
Returns the status of a transaction by
txid
in a blocking manner.Source§fn send_transaction(&self, tx_hex: String) -> Result<Txid, Error>
fn send_transaction(&self, tx_hex: String) -> Result<Txid, Error>
Broadcasts a raw-hex transaction in a blocking manner.
Source§fn get_output(&self, outpoint: &OutPoint) -> Result<TxOutEntry, Error>
fn get_output(&self, outpoint: &OutPoint) -> Result<TxOutEntry, Error>
Fetches a specific output (outpoint) in a blocking manner.
Source§fn get_inscription(
&self,
inscription_id: &InscriptionId,
) -> Result<(HeaderMap, Vec<u8>), Error>
fn get_inscription( &self, inscription_id: &InscriptionId, ) -> Result<(HeaderMap, Vec<u8>), Error>
Fetches an inscription (headers + bytes) by
inscription_id
, blocking.Source§fn get_runes(
&self,
pagination: Option<Pagination>,
) -> Result<PaginationResponse<RuneResponse>, Error>
fn get_runes( &self, pagination: Option<Pagination>, ) -> Result<PaginationResponse<RuneResponse>, Error>
Returns paginated runes in a blocking manner.
Source§fn get_rune(&self, rune: &Rune) -> Result<RuneResponse, Error>
fn get_rune(&self, rune: &Rune) -> Result<RuneResponse, Error>
Fetches data for a specific rune in a blocking manner.
Source§fn get_rune_transactions(
&self,
rune: &Rune,
pagination: Option<Pagination>,
) -> Result<PaginationResponse<Txid>, Error>
fn get_rune_transactions( &self, rune: &Rune, pagination: Option<Pagination>, ) -> Result<PaginationResponse<Txid>, Error>
Returns transactions for a given rune in a blocking manner.
Source§fn get_mempool_txids(&self) -> Result<Vec<Txid>, Error>
fn get_mempool_txids(&self) -> Result<Vec<Txid>, Error>
Returns mempool txids in a blocking manner.
Source§fn get_mempool_entry(&self, txid: &Txid) -> Result<MempoolEntry, Error>
fn get_mempool_entry(&self, txid: &Txid) -> Result<MempoolEntry, Error>
Returns a single mempool entry by
txid
.Source§fn get_mempool_entries(
&self,
txids: &[Txid],
) -> Result<HashMap<Txid, Option<MempoolEntry>>, Error>
fn get_mempool_entries( &self, txids: &[Txid], ) -> Result<HashMap<Txid, Option<MempoolEntry>>, Error>
Returns multiple mempool entries by their
txid
sSource§fn get_all_mempool_entries(&self) -> Result<HashMap<Txid, MempoolEntry>, Error>
fn get_all_mempool_entries(&self) -> Result<HashMap<Txid, MempoolEntry>, Error>
Returns all mempool entries.
Source§fn get_mempool_entries_with_ancestors(
&self,
txids: &[Txid],
) -> Result<HashMap<Txid, MempoolEntry>, Error>
fn get_mempool_entries_with_ancestors( &self, txids: &[Txid], ) -> Result<HashMap<Txid, MempoolEntry>, Error>
Returns the specified mempool entries along with all their ancestors.
Source§fn get_subscription(&self, id: &str) -> Result<Subscription, Error>
fn get_subscription(&self, id: &str) -> Result<Subscription, Error>
Fetches a single subscription by
id
, blocking.Source§fn list_subscriptions(&self) -> Result<Vec<Subscription>, Error>
fn list_subscriptions(&self) -> Result<Vec<Subscription>, Error>
Lists all subscriptions, blocking.
Source§fn add_subscription(
&self,
subscription: &Subscription,
) -> Result<Subscription, Error>
fn add_subscription( &self, subscription: &Subscription, ) -> Result<Subscription, Error>
Adds a new subscription, blocking.
Auto Trait Implementations§
impl Freeze for SyncClient
impl !RefUnwindSafe for SyncClient
impl Send for SyncClient
impl Sync for SyncClient
impl Unpin for SyncClient
impl !UnwindSafe for SyncClient
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