Options
All
  • Public
  • Public/Protected
  • All
Menu

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 StdSignMsg(chain_id: string, account_number: number, sequence: number, fee: StdFee, msgs: Msg[], memo?: string, timeout_height?: number): StdSignMsg
  • 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.

    • fee: StdFee

      transaction fee

    • msgs: Msg[]

      list of messages to include

    • memo: string = ''

      optional note

    • timeout_height: number = 0

    Returns StdSignMsg

Properties

account_number

account_number: number

chain_id

chain_id: string

fee

fee: StdFee

memo

memo: string = ''

msgs

msgs: Msg[]

sequence

sequence: number

timeout_height

timeout_height: number = 0

Methods

toData

toJSON

  • toJSON(): string

toStdTx

Static fromData