Develop a Relayer
To run your own Relayer, follow these high level requirements for each chain:
- Make sure your Relayer contract has access to up-to-date gas price information for all destination chains in order to accurately estimate transaction delivery fees.
- Have access to your own nodes RPC + WS (or rely on one or more providers).
- Maintain and balance wallets used for delivering messages/payloads.
- Create an off-chain service that listens to
Packetevent emitted by
UltraLightNodeV2on the source chain, waits for the configured number of confirmations and calls
UltraLightNodeV2on the destination providing data from the event and the transaction proof. A reference implementation of transaction proof generation can be found here
Off-chain Relayer is implementation agnostic. As long as it performs the core function of delivering the message, the implementation is open to interpretation and can be modified.