pub trait Submitter {
// Required methods
fn evaluate_transaction(
&self,
tx_builder: &TransactionBuilder,
plutus_scripts: &[PlutusScript],
redeemers: &[Redeemer]
) -> impl Future<Output = Result<BTreeMap<(RedeemerTag, BigNum), ExUnits>, SubmitterError>>;
fn submit_transaction(
&self,
tx: &FixedTransaction
) -> impl Future<Output = Result<TransactionHash, SubmitterError>>;
fn await_tx_confirm(
&self,
tx_hash: &TransactionHash
) -> impl Future<Output = Result<(), SubmitterError>>;
}
Expand description
Component which can submit write actions to the chain
Required Methods§
fn evaluate_transaction( &self, tx_builder: &TransactionBuilder, plutus_scripts: &[PlutusScript], redeemers: &[Redeemer] ) -> impl Future<Output = Result<BTreeMap<(RedeemerTag, BigNum), ExUnits>, SubmitterError>>
sourcefn submit_transaction(
&self,
tx: &FixedTransaction
) -> impl Future<Output = Result<TransactionHash, SubmitterError>>
fn submit_transaction( &self, tx: &FixedTransaction ) -> impl Future<Output = Result<TransactionHash, SubmitterError>>
Submit a fully build and balanced tranasaction
sourcefn await_tx_confirm(
&self,
tx_hash: &TransactionHash
) -> impl Future<Output = Result<(), SubmitterError>>
fn await_tx_confirm( &self, tx_hash: &TransactionHash ) -> impl Future<Output = Result<(), SubmitterError>>
Wait for transaction confirmation on the chain
Object Safety§
This trait is not object safe.