Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SignDoc

A sign message is a data structure that is used to create a [[StdSignature]] to be later appended to the list of signatures in an [[StdTx]]. Essentially, it contains all the information needed to sign and build a transaction, and can be described as an "unsigned transaction."

Hierarchy

Index

Constructors

constructor

  • new SignDoc(chain_id: string, account_number: number, sequence: number, auth_info: AuthInfo, tx_body: TxBody): SignDoc
  • Parameters

    • chain_id: string

      ID of blockchain to submit transaction to

    • account_number: number

      account number on blockchain

    • sequence: number

      Sequence number (nonce), number of signed previous transactions by account included on the blockchain at time of broadcast.

    • auth_info: AuthInfo
    • tx_body: TxBody

    Returns SignDoc

Properties

account_number

account_number: number

auth_info

auth_info: AuthInfo

chain_id

chain_id: string

sequence

sequence: number

tx_body

tx_body: TxBody

Methods

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toBytes

  • toBytes(): Uint8Array

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): SignDoc

toUnSignedTx

  • toUnSignedTx(): Tx