Struct boot_core::cosmos_modules::abci::TxResponse
pub struct TxResponse {Show 13 fields
pub height: i64,
pub txhash: String,
pub codespace: String,
pub code: u32,
pub data: String,
pub raw_log: String,
pub logs: Vec<AbciMessageLog, Global>,
pub info: String,
pub gas_wanted: i64,
pub gas_used: i64,
pub tx: Option<Any>,
pub timestamp: String,
pub events: Vec<Event, Global>,
}Expand description
TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded.
Fields
height: i64The block height
txhash: StringThe transaction hash.
codespace: StringNamespace for the Code
code: u32Response code.
data: StringResult bytes, if any.
raw_log: StringThe output of the application’s logger (raw string). May be non-deterministic.
logs: Vec<AbciMessageLog, Global>The output of the application’s logger (typed). May be non-deterministic.
info: StringAdditional information. May be non-deterministic.
gas_wanted: i64Amount of gas requested for transaction.
gas_used: i64Amount of gas consumed by transaction.
tx: Option<Any>The request transaction bytes.
timestamp: StringTime of the previous block. For heights > 1, it’s the weighted median of the timestamps of the valid votes in the block.LastCommit. For height == 1, it’s genesis time.
events: Vec<Event, Global>Events defines all the events emitted by processing a transaction. Note, these events include those emitted by processing all the messages and those emitted from the ante handler. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages.
Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
Trait Implementations
impl Clone for TxResponse
impl Clone for TxResponse
fn clone(&self) -> TxResponse
fn clone(&self) -> TxResponse
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for TxResponse
impl Debug for TxResponse
impl Default for TxResponse
impl Default for TxResponse
fn default() -> TxResponse
fn default() -> TxResponse
sourceimpl From<TxResponse> for CosmTxResponse
impl From<TxResponse> for CosmTxResponse
sourcefn from(tx: TxResponse) -> Self
fn from(tx: TxResponse) -> Self
impl Message for TxResponse
impl Message for TxResponse
fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
fn clear(&mut self)
fn clear(&mut self)
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
sourcefn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreimpl PartialEq<TxResponse> for TxResponse
impl PartialEq<TxResponse> for TxResponse
fn eq(&self, other: &TxResponse) -> bool
fn eq(&self, other: &TxResponse) -> bool
impl StructuralPartialEq for TxResponse
Auto Trait Implementations
impl RefUnwindSafe for TxResponse
impl Send for TxResponse
impl Sync for TxResponse
impl Unpin for TxResponse
impl UnwindSafe for TxResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Requestimpl<M> MessageExt for Mwhere
M: Message,
impl<M> MessageExt for Mwhere
M: Message,
fn to_bytes(&self) -> Result<Vec<u8, Global>, EncodeError>
fn to_bytes(&self) -> Result<Vec<u8, Global>, EncodeError>
fn from_any(any: &Any) -> Result<Self, DecodeError>where
Self: Default + Sized + TypeUrl,
fn from_any(any: &Any) -> Result<Self, DecodeError>where
Self: Default + Sized + TypeUrl,
Any.fn to_any(&self) -> Result<Any, EncodeError>where
Self: TypeUrl,
fn to_any(&self) -> Result<Any, EncodeError>where
Self: TypeUrl,
Any.