TxRaw is a variant of Tx that pins the signer's exact binary representation of body and auth_info. This is used for signing, broadcasting and verification. The binary serialize(tx: TxRaw) is stored in Tendermint and the hash sha256(serialize(tx: TxRaw)) becomes the "txhash", commonly used as the transaction ID.

from message cosmos.tx.v1beta1.TxRaw

Hierarchy

Constructors

Properties

authInfoBytes: Uint8Array = ...

auth_info_bytes is a protobuf serialization of an AuthInfo that matches the representation in SignDoc.

from field: bytes auth_info_bytes = 2;

bodyBytes: Uint8Array = ...

body_bytes is a protobuf serialization of a TxBody that matches the representation in SignDoc.

from field: bytes body_bytes = 1;

signatures: Uint8Array[] = []

signatures is a list of signatures that matches the length and order of AuthInfo's signer_infos to allow connecting signature meta information like public key and signing mode by position.

from field: repeated bytes signatures = 3;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmos.tx.v1beta1.TxRaw" = "cosmos.tx.v1beta1.TxRaw"

Methods