Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgSwap

Executes a market swap between 2 denominations at the exchange rate registered by the Oracle module. The account will lose the amount of coins offered, and receive funds in the requested denomination after a swap fee has been applied.

Hierarchy

Index

Interfaces

Constructors

Properties

Methods

Constructors

constructor

Properties

ask_denom

ask_denom: Denom

desired denomination (to)

offer_coin

offer_coin: Coin

coin to be swapped (from)

trader

trader: AccAddress

trader's account address

Methods

toData

toJSON

  • toJSON(): string

Static fromData