pub trait QueryUtxoByUtxoId {
// Required method
async fn query_utxo_by_id(
&self,
utxo: UtxoId,
) -> Result<Option<OgmiosUtxo>, OgmiosClientError>;
}
Expand description
Trait that defines the methods for querying a single UTXO by transaction hash and output index.
Required Methods§
Sourceasync fn query_utxo_by_id(
&self,
utxo: UtxoId,
) -> Result<Option<OgmiosUtxo>, OgmiosClientError>
async fn query_utxo_by_id( &self, utxo: UtxoId, ) -> Result<Option<OgmiosUtxo>, OgmiosClientError>
Query for a single UTXO by transaction hash and output index. Warning: it does not return datum, datumHash, nor script fields. Parameters:
tx
: query for output of this transactionindex
: query for output with this index
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.