- 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, IoTeX provides a shadow aggregator on IoTeX.IoTeX Testnet
The table below lists the shadow aggregators deployed on IoTeX testnet:IoTeX Mainnet
| Pair | Dec | Aggregator |
|---|---|---|
| IOTX/USD | 8 | 0x267Ef702F3422cC55C617218a4fB84446F5Ec646 |
Exchange Aggregators
Exchange aggregators have the same interface as Chainlink aggregators. Prices are read from exchanges, and the average value of these prices will be fed to the exchange aggregator by permitted relayers if:- The value deviates by 0.5% or more from the last price, or
- The time interval is more than 1 hour.
Run a Relayer
Prepare the Config File
- Database URL: Fill the
"databaseURL"field with the link to your database. - Ethereum RPC URL: Input the Ethereum RPC URL in the
"sourceClientURL"field. - Relayer Private Key: Input your relayer private key. Ensure the account associated with this private key has a sufficient balance to cover transaction fees.
config.yaml file should look something like this:
Start the Relayer Service
Make sure you have Go installed and properly set up on your machine. If you encounter any issues, ensure that all dependencies are installed and your configuration file paths are correct.

