Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Fee

A transaction must include a fee, otherwise it will be rejected.

Hierarchy

Index

Constructors

  • new Fee(gas_limit: number, amount: Coins.Input, payer?: string, granter?: string): Fee
  • Creates a new Fee object.

    Parameters

    • gas_limit: number
    • amount: Coins.Input

      amount to be paid to validator

    • Optional payer: string
    • Optional granter: string

    Returns Fee

Properties

amount: Coins

Fee amount to be paid

gas_limit: number
granter?: string
payer?: string

Methods

  • Gets the minimum gas prices implied by the fee. Minimum gas prices are fee amount / gas.

    Returns Coins

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

    • Optional isClassic: boolean

    Returns string

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

    • Optional isClassic: boolean

    Returns string

  • toProto(): Fee
  • Returns Fee

  • fromProto(proto: Fee): Fee