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.

interface TxRaw {
    authInfoBytes: Uint8Array;
    bodyBytes: Uint8Array;
    signatures: Uint8Array[];
}

Properties

authInfoBytes: Uint8Array

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

bodyBytes: Uint8Array

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

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.