What does the Message Input type do?

There are three types of input.

  1. Coin
    I think Coin means your transaction include a coin transfer
  2. Contract
    I think Contract means your transaction involves a contract interaction

But I don’t know what is the Message for here? When will we use the Message Input type?

enum InputType : uint8 {
    Coin = 0,
    Contract = 1,
    Message = 2,
1 Like

Message inputs (and outputs) are currently only used for implementing cross-chain messaging, i.e: for bridging tokens.
For typical token transfers and contract interactions you would probably never need to use them, but they provide a mechanism for passing arbitrary messages between chains.


This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.