Struct TitanBlockingClient

Source
pub struct TitanBlockingClient { /* private fields */ }

Implementations§

Source§

impl SyncClient

Source

pub fn new(base_url: &str) -> Self

Creates a new SyncClient for the given base_url.

Trait Implementations§

Source§

impl Clone for SyncClient

Source§

fn clone(&self) -> SyncClient

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl TitanApiSync for SyncClient

Source§

fn get_status(&self) -> Result<Status, Error>

Returns the node’s status in a blocking manner.
Source§

fn get_tip(&self) -> Result<BlockTip, Error>

Returns the block tip in a blocking manner.
Source§

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>

Given a block height, returns the block hash in a blocking manner.
Source§

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>

Returns address data in a blocking manner.
Source§

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>

Returns raw tx bytes in a blocking manner.
Source§

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>

Returns the status of a transaction by txid in a blocking manner.
Source§

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>

Fetches a specific output (outpoint) in a blocking manner.
Source§

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>

Returns paginated runes in a blocking manner.
Source§

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>

Returns transactions for a given rune in a blocking manner.
Source§

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>

Returns a single mempool entry by txid.
Source§

fn get_mempool_entries( &self, txids: &[Txid], ) -> Result<HashMap<Txid, Option<MempoolEntry>>, Error>

Returns multiple mempool entries by their txids
Source§

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>

Returns the specified mempool entries along with all their ancestors.
Source§

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>

Lists all subscriptions, blocking.
Source§

fn add_subscription( &self, subscription: &Subscription, ) -> Result<Subscription, Error>

Adds a new subscription, blocking.
Source§

fn delete_subscription(&self, id: &str) -> Result<(), Error>

Deletes a subscription by id, blocking.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T