How to pay the Relayer for cross-chain message delivery using Hyperlane’s InterchainGasPaymaster
process
function with the encoded message and ISM metadata.
For convenience, a Relayer watches for dispatched messages and will submit process transactions on behalf of the message sender if they receive sufficient payment on the origin chain. This is the interchain gas payment.
Because messages can trigger arbitrary code execution, the Relayer must meter the handle
call with a gasLimit
to charge appropriately at message dispatch time.
InterchainGasPaymaster
(IGP) smart contracts.
These contracts expose the InterchainGasPaymaster interface, which allow message senders to pay the Relayer with native tokens on the origin chain to cover the costs of delivering a message on the destination chain.
Each InterchainGasPaymaster
contract corresponds to exactly one Relayer. You can find addresses of the Abacus Works’ Relayer under addresses.
gasLimit
and the exchangeRate
are configured by the message sender and the Relayer, respectively.