Skip to main content
Inheriting from MailboxClient is a simple way to ensure your contract knows where to send or receive interchain messages to or from. This mix-in contract maintains a pointers to the three contracts Hyperlane developers may need to interact with:
  1. Mailbox (required)
  2. IPostDispatchHook (optional)
  3. IInterchainSecurityModule (optional)
MailboxClient exposes functions that allow subclasses to easily send messages to the Mailbox via the mailbox storage variable, and permission message delivery via the onlyMailbox modifier.

MailboxClient Library