SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.

interface SignDoc {
    accountNumber: bigint;
    authInfoBytes: Uint8Array;
    bodyBytes: Uint8Array;
    chainId: string;
}

Properties

accountNumber: bigint

account_number is the account number of the account in state

authInfoBytes: Uint8Array

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

bodyBytes: Uint8Array

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

chainId: string

chain_id is the unique identifier of the chain this transaction targets. It prevents signed transactions from being used on another chain by an attacker