Struct tx_bakery_ogmios::client::OgmiosClient
source · pub struct OgmiosClient { /* private fields */ }
Expand description
Ogmios client for interacting with the blockchain
Implementations§
source§impl OgmiosClient
impl OgmiosClient
pub async fn connect(config: OgmiosClientConfig) -> Result<Self>
pub fn get_config(&self) -> &OgmiosClientConfig
pub async fn check_health(config: &OgmiosClientConfig) -> Result<OgmiosHealth>
Trait Implementations§
source§impl ChainQuery for OgmiosClient
impl ChainQuery for OgmiosClient
source§async fn query_protocol_params(
&self
) -> Result<ProtocolParameters, ChainQueryError>
async fn query_protocol_params( &self ) -> Result<ProtocolParameters, ChainQueryError>
Query protocol parameters and cost models for all languages
source§async fn query_tip(&self) -> Result<ChainTip, ChainQueryError>
async fn query_tip(&self) -> Result<ChainTip, ChainQueryError>
Query current last slot of the chain
source§fn get_network(&self) -> Network
fn get_network(&self) -> Network
Query the network id (not identical to network magic)
async fn query_system_start(&self) -> Result<DateTime<Utc>, ChainQueryError>
async fn query_era_summaries(&self) -> Result<Vec<EraSummary>, ChainQueryError>
source§async fn query_utxos_by_addr(
&self,
address: &Address
) -> Result<BTreeMap<TransactionInput, FullTransactionOutput>, ChainQueryError>
async fn query_utxos_by_addr( &self, address: &Address ) -> Result<BTreeMap<TransactionInput, FullTransactionOutput>, ChainQueryError>
Query UTxOs at an address
async fn query_utxos_by_ref( &self, references: Vec<&TransactionInput> ) -> Result<BTreeMap<TransactionInput, FullTransactionOutput>, ChainQueryError>
source§impl Submitter for OgmiosClient
impl Submitter for OgmiosClient
source§async fn evaluate_transaction(
&self,
tx_builder: &TransactionBuilder,
plutus_scripts: &[PlutusScript],
redeemers: &[Redeemer]
) -> Result<BTreeMap<(RedeemerTag, BigNum), ExUnits>, SubmitterError>
async fn evaluate_transaction( &self, tx_builder: &TransactionBuilder, plutus_scripts: &[PlutusScript], redeemers: &[Redeemer] ) -> Result<BTreeMap<(RedeemerTag, BigNum), ExUnits>, SubmitterError>
Evaluate a transaction and return execution budgets for each script
source§async fn submit_transaction(
&self,
tx: &FixedTransaction
) -> Result<TransactionHash, SubmitterError>
async fn submit_transaction( &self, tx: &FixedTransaction ) -> Result<TransactionHash, SubmitterError>
Submit a fully build and balanced tranasaction
source§async fn await_tx_confirm(
&self,
tx_hash: &TransactionHash
) -> Result<(), SubmitterError>
async fn await_tx_confirm( &self, tx_hash: &TransactionHash ) -> Result<(), SubmitterError>
Wait for transaction confirmation on the chain
Auto Trait Implementations§
impl !Freeze for OgmiosClient
impl !RefUnwindSafe for OgmiosClient
impl Send for OgmiosClient
impl Sync for OgmiosClient
impl Unpin for OgmiosClient
impl !UnwindSafe for OgmiosClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more