Messaging API

Send and receive interchain messages using Hyperlane
Hyperlane provides an on-chain API for sending and receiving interchain messages.
Cant wait to get started? Follow this tutorial to send your first interchain message in less than five minutes. Otherwise, read on—
To send interchain messages, reference the Mailbox.dispatch() API.
To receive interchain messages, implement the IMessageRecipient.handle() interface.
You can unit test your integration with the Hyperlane messaging API using the MockMailbox contracts.
Delivering an interchain message requires submitting a transaction on the destination chain. Optionally, you can pay for the gas for this transaction on the origin chain, and let a Hyperlane relayer deliver your message for you.
Learn more about interchain gas payments.
Last modified 1mo ago