What is the "relayer?" #272
-
What is the "relayer?" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The relayer is the ChainBridge-Core-Example binary written in Go that is run as a daemon. This does not produce blocks but rather connects to already hosted nodes on the two (or more) separate chains. This facilitates the bridge process; it listens to events on one chain, like a deposit (e.g. token lock), reads the amount deposited + other data, then constructs a corresponding write request (transaction) that executes a function invocation on the destination chain (e.g. token mint). Without the relayer, the bridge contracts on either chain would not be able to communicate with one another; ergo, the relayer is the bridge. |
Beta Was this translation helpful? Give feedback.
The relayer is the ChainBridge-Core-Example binary written in Go that is run as a daemon.
This does not produce blocks but rather connects to already hosted nodes on the two (or more) separate chains. This facilitates the bridge process; it listens to events on one chain, like a deposit (e.g. token lock), reads the amount deposited + other data, then constructs a corresponding write request (transaction) that executes a function invocation on the destination chain (e.g. token mint).
Without the relayer, the bridge contracts on either chain would not be able to communicate with one another; ergo, the relayer is the bridge.