Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgTransfer

A basic message for transfer Coin via IBC.

Hierarchy

Index

Constructors

constructor

  • new MsgTransfer(source_port: string, source_channel: string, token: undefined | Coin, sender: string, receiver: string, timeout_height: undefined | Height, timeout_timestamp: number): 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: number

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

    Returns MsgTransfer

Properties

receiver

receiver: string

sender

sender: string

source_channel

source_channel: string

source_port

source_port: string

Optional timeout_height

timeout_height?: Height

timeout_timestamp

timeout_timestamp: number

Optional token

token?: Coin

Methods

packAny

  • packAny(): Any

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): MsgTransfer

Static fromAmino

Static fromData

Static fromProto

Static unpackAny