Chainlink relayer

Chainlink Relayer instantly relays Chainlink price feeds on Ethereum to IoTeX network, for enabling dApps where price feeds are needed

  • The prices are relayed to a contract (called shadow aggregator) on IoTeX which has exactly the same interface as Chainlink's aggregator, and it makes dApps to migrate to use Chainlink effortlessly once their integration with IoTeX is done.

  • The client waits for 20 blocks (around 5 minutes) to confirm a transaction.

  • Anyone can run a relayer to relay the information. So it is permissionless!

Shadow Aggregators

For each aggregator on Ethereum, we will create a shadow aggregator on IoTeX.

IoTeX Testnet The table below lists the shadow aggregators deployed on IoTeX testnet:

IoTeX Mainnet

Exchange Aggregators

Exchange aggregator has the same interface as Chainlink aggregator. The prices are read from exchanges, and the medium value of these prices will be feed to exchange aggregator by permitted relayers if

  • the value is of a 0.5% deviation from the last price

  • or the time interval is more than 1 hour

Exchanges used for fetching IOTX price are binance, huobi, coingeko, kucoin, coinbase.

Run a Relayer

Prepare Config File

  1. fill "databaseURL" with your DB link

  2. input ethereum rpc url in "sourceClientURL"

  3. input your relayer private key, make sure the account has sufficient balance

Start Relayer Service

go run main.go -config config.yaml

Last updated