pub struct TransactionStatusMeta {Show 17 fields
pub err: Option<TransactionError>,
pub fee: u64,
pub pre_balances: Vec<u64>,
pub post_balances: Vec<u64>,
pub inner_instructions: Vec<InnerInstructions>,
pub inner_instructions_none: bool,
pub log_messages: Vec<String>,
pub log_messages_none: bool,
pub pre_token_balances: Vec<TokenBalance>,
pub post_token_balances: Vec<TokenBalance>,
pub rewards: Vec<Reward>,
pub loaded_writable_addresses: Vec<Vec<u8>>,
pub loaded_readonly_addresses: Vec<Vec<u8>>,
pub return_data: Option<ReturnData>,
pub return_data_none: bool,
pub compute_units_consumed: Option<u64>,
pub cost_units: Option<u64>,
}๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Fieldsยง
ยงerr: Option<TransactionError>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.fee: u64๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pre_balances: Vec<u64>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.post_balances: Vec<u64>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.inner_instructions: Vec<InnerInstructions>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.inner_instructions_none: bool๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.log_messages: Vec<String>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.log_messages_none: bool๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pre_token_balances: Vec<TokenBalance>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.post_token_balances: Vec<TokenBalance>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.rewards: Vec<Reward>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.loaded_writable_addresses: Vec<Vec<u8>>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.loaded_readonly_addresses: Vec<Vec<u8>>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.return_data: Option<ReturnData>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.return_data_none: bool๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
ยงagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.compute_units_consumed: Option<u64>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Sum of compute units consumed by all instructions.
Available since Solana v1.10.35 / v1.11.6.
Set to None for txs executed on earlier versions.
cost_units: Option<u64>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Total transaction cost
Implementationsยง
Sourceยงimpl TransactionStatusMeta
impl TransactionStatusMeta
Sourcepub fn compute_units_consumed(&self) -> u64
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn compute_units_consumed(&self) -> u64
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns the value of compute_units_consumed, or the default value if compute_units_consumed is unset.
Sourcepub fn cost_units(&self) -> u64
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn cost_units(&self) -> u64
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns the value of cost_units, or the default value if cost_units is unset.
Trait Implementationsยง
Sourceยงimpl Clone for TransactionStatusMeta
impl Clone for TransactionStatusMeta
Sourceยงfn clone(&self) -> TransactionStatusMeta
fn clone(&self) -> TransactionStatusMeta
Returns a copy 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 TransactionStatusMeta
impl Debug for TransactionStatusMeta
Sourceยงimpl Default for TransactionStatusMeta
impl Default for TransactionStatusMeta
Sourceยงimpl From<StoredTransactionStatusMeta> for TransactionStatusMeta
impl From<StoredTransactionStatusMeta> for TransactionStatusMeta
Sourceยงfn from(meta: StoredTransactionStatusMeta) -> Self
fn from(meta: StoredTransactionStatusMeta) -> Self
Converts to this type from the input type.
Sourceยงimpl From<TransactionStatusMeta> for TransactionStatusMeta
impl From<TransactionStatusMeta> for TransactionStatusMeta
Sourceยงfn from(value: TransactionStatusMeta) -> Self
fn from(value: TransactionStatusMeta) -> Self
Converts to this type from the input type.
Sourceยงimpl Message for TransactionStatusMeta
impl Message for TransactionStatusMeta
Sourceยงfn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Sourceยงfn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Sourceยงfn encode_to_vec(&self) -> Vec<u8> โwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> โwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Sourceยงfn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Sourceยงfn encode_length_delimited_to_vec(&self) -> Vec<u8> โwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> โwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Sourceยงfn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Sourceยงfn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Sourceยงfn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSourceยงfn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Sourceยงimpl PartialEq for TransactionStatusMeta
impl PartialEq for TransactionStatusMeta
impl StructuralPartialEq for TransactionStatusMeta
Auto Trait Implementationsยง
impl Freeze for TransactionStatusMeta
impl RefUnwindSafe for TransactionStatusMeta
impl Send for TransactionStatusMeta
impl Sync for TransactionStatusMeta
impl Unpin for TransactionStatusMeta
impl UnwindSafe for TransactionStatusMeta
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> 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