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

  • 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: number
auth_info: AuthInfo
chain_id: string
sequence: number
tx_body: TxBody

Methods

  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toBytes(isClassic?: boolean): Uint8Array
  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(isClassic?: boolean): SignDoc
  • Parameters

    • Optional isClassic: boolean

    Returns SignDoc

  • toUnSignedTx(): Tx