Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Fee

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

Hierarchy

Index

Constructors

constructor

  • 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

Readonly amount

amount: Coins

Fee amount to be paid

Readonly gas_limit

gas_limit: number

Optional granter

granter?: string

Optional payer

payer?: string

Methods

gasPrices

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

    Returns Coins

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): Fee
  • Returns Fee

Static fromAmino

Static fromData

Static fromProto

  • fromProto(proto: Fee): Fee