Message
The block of control information and data for comminicate between user applications. Messages are the exchange medium used by channels to send and receive data through cross-chain networks. A message is sent from a source chain to a destination chain.
struct Message {
address channel;
uint256 index;
uint256 fromChainId;
address from;
uint256 toChainId;
address to;
uint256 gasLimit;
bytes encoded;
}
Properties
Name | Type | Description |
---|---|---|
channel | address | |
index | uint256 | The leaf index lives in channel's incremental mekle tree. |
fromChainId | uint256 | The message source chain id. |
from | address | User application contract address which send the message. |
toChainId | uint256 | The message destination chain id. |
to | address | User application contract address which receive the message. |
gasLimit | uint256 | Gas limit for destination UA used. |
encoded | bytes | The calldata which encoded by ABI Encoding. |