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§fn default() -> TxResponse
fn default() -> TxResponse
Source§impl<'de> Deserialize<'de> for TxResponse
impl<'de> Deserialize<'de> for TxResponse
Source§fn deserialize<D>(
deserializer: D,
) -> Result<TxResponse, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<TxResponse, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Message for TxResponse
impl Message for TxResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for TxResponse
impl Name for TxResponse
Source§const NAME: &'static str = "TxResponse"
const NAME: &'static str = "TxResponse"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"
const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for TxResponse
impl PartialEq for TxResponse
Source§impl Serialize for TxResponse
impl Serialize for TxResponse
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for TxResponse
Auto Trait Implementations§
impl Freeze for TxResponse
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> 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
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> 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