Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgTransfer

A basic message for transfer Coin via IBC.

Hierarchy

Index

Constructors

  • new MsgTransfer(source_port: string, source_channel: string, token: undefined | Coin, sender: string, receiver: string, timeout_height: undefined | Height, timeout_timestamp: undefined | Value, memo: undefined | string): MsgTransfer
  • Parameters

    • source_port: string

      the port on which the packet will be sent

    • source_channel: string

      the channel by which the packet will be sent

    • token: undefined | Coin

      the tokens to be transferred

    • sender: string

      the sender address

    • receiver: string

      the recipient address on the destination chain

    • timeout_height: undefined | Height

      Timeout height relative to the current block height. (0 to disable)

    • timeout_timestamp: undefined | Value

      Timeout timestamp (in nanoseconds) relative to the current block timestamp. (0 to disable)

    • memo: undefined | string

      field can be used to send notes, interact with ibc-hooks, packet-middleware, etc...

    Returns MsgTransfer

Properties

memo?: string
receiver: string
sender: string
source_channel: string
source_port: string
timeout_height?: Height
timeout_timestamp?: Numeric.Output
token?: Coin

Methods

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

    • Optional isClassic: boolean

    Returns string

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

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): MsgTransfer
  • fromProto(proto: MsgTransfer, _?: boolean): MsgTransfer
  • unpackAny(msgAny: Any, isClassic?: boolean): MsgTransfer