Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgSwapSend

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

Hierarchy

Index

Constructors

constructor

  • new MsgSwapSend(from_address: string, to_address: string, offer_coin: Coin, ask_denom: string): MsgSwapSend
  • Parameters

    • from_address: string

      sender's account address

    • to_address: string

      receiver's account address

    • offer_coin: Coin

      coin to be swapped (from)

    • ask_denom: string

      desired denomination (to)

    Returns MsgSwapSend

Properties

ask_denom

ask_denom: string

from_address

from_address: string

offer_coin

offer_coin: Coin

to_address

to_address: string

Methods

packAny

  • packAny(): Any

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): MsgSwapSend

Static fromAmino

Static fromData

Static fromProto

Static unpackAny