pub struct SuiTransactionBlockResponse {
pub digest: Digest,
pub transaction: Option<SuiTransactionBlock>,
pub raw_transaction: Vec<u8>,
pub effects: Option<SuiTransactionBlockEffects>,
pub events: Option<SuiTransactionBlockEvents>,
pub object_changes: Option<Vec<ObjectChange>>,
pub balance_changes: Option<Vec<BalanceChange>>,
pub timestamp_ms: Option<u64>,
pub confirmed_local_execution: Option<bool>,
pub checkpoint: Option<Version>,
pub errors: Vec<String>,
pub raw_effects: Vec<u8>,
}Fields§
§digest: Digest§transaction: Option<SuiTransactionBlock>Transaction input data
raw_transaction: Vec<u8>BCS encoded SenderSignedData
that includes input object references returns empty array if show_raw_transaction is false
effects: Option<SuiTransactionBlockEffects>§events: Option<SuiTransactionBlockEvents>§object_changes: Option<Vec<ObjectChange>>§balance_changes: Option<Vec<BalanceChange>>§timestamp_ms: Option<u64>§confirmed_local_execution: Option<bool>§checkpoint: Option<Version>The checkpoint number when this transaction was included and hence finalized. This is only returned in the read api, not in the transaction execution api.
errors: Vec<String>§raw_effects: Vec<u8>Implementations§
Source§impl SuiTransactionBlockResponse
impl SuiTransactionBlockResponse
pub fn new(digest: Digest) -> Self
pub fn status_ok(&self) -> Option<bool>
Sourcepub fn sui_effects(&self) -> Result<Option<TransactionEffects>, ToEffectsError>
pub fn sui_effects(&self) -> Result<Option<TransactionEffects>, ToEffectsError>
Transaction effects as a standard Sui type.
Deserialized from the Self::raw_effects BCS bytes. If those bytes are empty, the result
is None.
pub fn get_transaction( &self, ) -> Result<&SuiTransactionBlock, SuiTransactionBlockResponseError>
pub fn get_effects( &self, ) -> Result<&SuiTransactionBlockEffectsV1, SuiTransactionBlockResponseError>
pub fn get_events( &self, ) -> Result<&SuiTransactionBlockEvents, SuiTransactionBlockResponseError>
pub fn get_object_changes( &self, ) -> Result<&Vec<ObjectChange>, SuiTransactionBlockResponseError>
pub fn get_balance_changes( &self, ) -> Result<&Vec<BalanceChange>, SuiTransactionBlockResponseError>
pub fn try_check_execution_status( &self, ) -> Result<(), SuiTransactionBlockResponseError>
pub fn check_execution_status( &self, ) -> Result<(), SuiTransactionBlockResponseError>
pub fn published_package_id( &self, ) -> Result<Address, SuiTransactionBlockResponseError>
pub fn into_object_changes( self, ) -> Result<Vec<ObjectChange>, SuiTransactionBlockResponseError>
Trait Implementations§
Source§impl Clone for SuiTransactionBlockResponse
impl Clone for SuiTransactionBlockResponse
Source§fn clone(&self) -> SuiTransactionBlockResponse
fn clone(&self) -> SuiTransactionBlockResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuiTransactionBlockResponse
impl Debug for SuiTransactionBlockResponse
Source§impl Default for SuiTransactionBlockResponse
impl Default for SuiTransactionBlockResponse
Source§fn default() -> SuiTransactionBlockResponse
fn default() -> SuiTransactionBlockResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuiTransactionBlockResponse
impl<'de> Deserialize<'de> for SuiTransactionBlockResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SuiTransactionBlockResponse
We are specifically ignoring events for now until events become more stable.
impl PartialEq for SuiTransactionBlockResponse
We are specifically ignoring events for now until events become more stable.
Auto Trait Implementations§
impl Freeze for SuiTransactionBlockResponse
impl RefUnwindSafe for SuiTransactionBlockResponse
impl Send for SuiTransactionBlockResponse
impl Sync for SuiTransactionBlockResponse
impl Unpin for SuiTransactionBlockResponse
impl UnwindSafe for SuiTransactionBlockResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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