Configure additional origin chain behavior for messages dispatched via the Mailbox using post-dispatch hooks
`IPostDispatchHook` Interface
message
dispatched via the Mailbox, the postDispatch
function receives a metadata
parameter. The metadata
parameter is passed from the dispatch
call through the Mailbox unmodified. This allows developers to pass any context they wish through to the hook.
postDispatch
function receives insufficient payment, it may revert.
postDispatch
to cover costs such as destination chain transaction submission and security provisioning. To receive a quote for a corresponding postDispatch
call, you can query the quoteDispatch
function.
quoteDispatch
function that returns the aggregate fee required for a dispatch
call to be successful.
Move to implementing a hook guide here.
dispatch
overload that takes an optional metadata
parameter.
StandardHookMetadata
library.metadata
will be passed to the required hook’s quoteDispatch
and postDispatch
functions, before being passed to the default hook’s postDispatch
function.
StandardHookMetadata
Librarydispatch
call in our mailbox: