Trait WriteApiClient

Source
pub trait WriteApiClient: ClientT {
    // Provided methods
    fn execute_transaction_block<'life0, 'async_trait>(
        &'life0 self,
        tx_bytes: String,
        signatures: Vec<String>,
        options: Option<SuiTransactionBlockResponseOptions>,
        request_type: Option<ExecuteTransactionRequestType>,
    ) -> Pin<Box<dyn Future<Output = Result<SuiTransactionBlockResponse, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn monitored_execute_transaction_block<'life0, 'async_trait>(
        &'life0 self,
        tx_bytes: String,
        signatures: Vec<String>,
        options: Option<SuiTransactionBlockResponseOptions>,
        request_type: Option<ExecuteTransactionRequestType>,
        client_addr: Option<SocketAddr>,
    ) -> Pin<Box<dyn Future<Output = Result<SuiTransactionBlockResponse, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn dev_inspect_transaction_block<'life0, 'async_trait>(
        &'life0 self,
        sender_address: SuiAddress,
        tx_bytes: String,
        gas_price: Option<BigInt<u64>>,
        epoch: Option<BigInt<u64>>,
        additional_args: Option<DevInspectArgs>,
    ) -> Pin<Box<dyn Future<Output = Result<DevInspectResults, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn dry_run_transaction_block<'life0, 'async_trait>(
        &'life0 self,
        tx_bytes: String,
    ) -> Pin<Box<dyn Future<Output = Result<DryRunTransactionBlockResponse, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature client-api only.
Expand description

Client implementation for the WriteApi RPC API.

Provided Methods§

Source

fn execute_transaction_block<'life0, 'async_trait>( &'life0 self, tx_bytes: String, signatures: Vec<String>, options: Option<SuiTransactionBlockResponseOptions>, request_type: Option<ExecuteTransactionRequestType>, ) -> Pin<Box<dyn Future<Output = Result<SuiTransactionBlockResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Execute the transaction. See ExecuteTransactionRequestType for details on how it’s handled by the RPC.

request_type defaults to WaitForEffectsCert.

Source

fn monitored_execute_transaction_block<'life0, 'async_trait>( &'life0 self, tx_bytes: String, signatures: Vec<String>, options: Option<SuiTransactionBlockResponseOptions>, request_type: Option<ExecuteTransactionRequestType>, client_addr: Option<SocketAddr>, ) -> Pin<Box<dyn Future<Output = Result<SuiTransactionBlockResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn dev_inspect_transaction_block<'life0, 'async_trait>( &'life0 self, sender_address: SuiAddress, tx_bytes: String, gas_price: Option<BigInt<u64>>, epoch: Option<BigInt<u64>>, additional_args: Option<DevInspectArgs>, ) -> Pin<Box<dyn Future<Output = Result<DevInspectResults, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Runs the transaction in dev-inspect mode. Which allows for nearly any transaction (or Move call) with any arguments. Detailed results are provided, including both the transaction effects and any return values.

Source

fn dry_run_transaction_block<'life0, 'async_trait>( &'life0 self, tx_bytes: String, ) -> Pin<Box<dyn Future<Output = Result<DryRunTransactionBlockResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Return transaction execution effects including the gas cost summary, while the effects are not committed to the chain.

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.

Implementors§

Source§

impl<TypeJsonRpseeInteral> WriteApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,