pub struct TxResponse {}
Expand description
TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded.
Fields§
§height: i64
The block height
txhash: String
The transaction hash.
codespace: String
Namespace for the Code
code: u32
Response code.
data: String
Result bytes, if any.
raw_log: String
The output of the application’s logger (raw string). May be non-deterministic.
logs: Vec<AbciMessageLog>
The output of the application’s logger (typed). May be non-deterministic.
info: String
Additional information. May be non-deterministic.
gas_wanted: i64
Amount of gas requested for transaction.
gas_used: i64
Amount of gas consumed by transaction.
tx: Option<Any>
The request transaction bytes.
timestamp: String
Time 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>
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. 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§
source§impl Clone for TxResponse
impl Clone for TxResponse
source§fn clone(&self) -> TxResponse
fn clone(&self) -> TxResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TxResponse
impl Debug for TxResponse
source§impl Default for TxResponse
impl Default for TxResponse
source§impl Message for TxResponse
impl Message for TxResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn 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,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn 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,
source§fn 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,
source§fn 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,
source§fn 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,
source§fn 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 moresource§fn 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
.source§impl PartialEq<TxResponse> for TxResponse
impl PartialEq<TxResponse> for TxResponse
source§fn eq(&self, other: &TxResponse) -> bool
fn eq(&self, other: &TxResponse) -> bool
self
and other
values to be equal, and is used
by ==
.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§
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request