pub trait WriteApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn execute_transaction_block<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Base64,
signatures: Vec<Base64>,
options: Option<SuiTransactionBlockResponseOptions>,
request_type: Option<ExecuteTransactionRequestType>,
) -> Pin<Box<dyn Future<Output = RpcResult<SuiTransactionBlockResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn dry_run_transaction_block<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Base64,
) -> Pin<Box<dyn Future<Output = RpcResult<DryRunTransactionBlockResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the WriteApi
RPC API.
Required Methods§
Sourcefn execute_transaction_block<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Base64,
signatures: Vec<Base64>,
options: Option<SuiTransactionBlockResponseOptions>,
request_type: Option<ExecuteTransactionRequestType>,
) -> Pin<Box<dyn Future<Output = RpcResult<SuiTransactionBlockResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_transaction_block<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Base64,
signatures: Vec<Base64>,
options: Option<SuiTransactionBlockResponseOptions>,
request_type: Option<ExecuteTransactionRequestType>,
) -> Pin<Box<dyn Future<Output = RpcResult<SuiTransactionBlockResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the transaction with options to show different information in the response.
The only supported request type is WaitForEffectsCert
: waits for TransactionEffectsCert and then return to client.
WaitForLocalExecution
mode has been deprecated.
Sourcefn dry_run_transaction_block<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Base64,
) -> Pin<Box<dyn Future<Output = RpcResult<DryRunTransactionBlockResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dry_run_transaction_block<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Base64,
) -> Pin<Box<dyn Future<Output = RpcResult<DryRunTransactionBlockResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return transaction execution effects including the gas cost summary, while the effects are not committed to the chain.
Provided Methods§
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.