Send Messages
The on-chain API for sending cross-chain messages
Interface
/*
* @notice Dispatch the message to the destination domain & recipient
* @param _destination Domain of destination chain
* @param _recipient Address of recipient on destination chain as bytes32
* @param _message Raw bytes content of message
*/
function dispatch(
uint32 _destination,
bytes32 _recipient,
bytes memory _message
) external {
// message is sent to recipient address on destination chain
}Hello World
Example Usage
Advanced Examples
FAQs
Last updated