TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded.

from message cosmos.base.abci.v1beta1.TxResponse

Hierarchy

Constructors

Properties

code: number = 0

Response code.

from field: uint32 code = 4;

codespace: string = ""

Namespace for the Code

from field: string codespace = 3;

data: string = ""

Result bytes, if any.

from field: string data = 5;

events: proto.tendermint.abci.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

from field: repeated tendermint.abci.Event events = 13;

gasUsed: bigint = protoInt64.zero

Amount of gas consumed by transaction.

from field: int64 gas_used = 10;

gasWanted: bigint = protoInt64.zero

Amount of gas requested for transaction.

from field: int64 gas_wanted = 9;

height: bigint = protoInt64.zero

The block height

from field: int64 height = 1;

info: string = ""

Additional information. May be non-deterministic.

from field: string info = 8;

logs: ABCIMessageLog[] = []

The output of the application's logger (typed). May be non-deterministic.

from field: repeated cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7;

rawLog: string = ""

The output of the application's logger (raw string). May be non-deterministic.

from field: string raw_log = 6;

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.

from field: string timestamp = 12;

tx?: Any

The request transaction bytes.

from field: google.protobuf.Any tx = 11;

txhash: string = ""

The transaction hash.

from field: string txhash = 2;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmos.base.abci.v1beta1.TxResponse" = "cosmos.base.abci.v1beta1.TxResponse"

Methods