Chainlink
Introduction
Chainlink enables smart contracts on Opera to leverage extensive off-chain resources, such as tamper-proof price data, verifiable randomness, external APIs, and much more. This documentation describes access to various cryptocurrency price data available to be integrated into decentralized applications running on Opera.
For implementation instructions, please refer to Chainlink's documentation
For LINK token and faucet details, please refer to LINK token contracts.
Note, off-chain equity and ETF assets are only traded during standard market hours (9:30 AM – 4:00 PM ET Monday–Friday). Using these feeds outside of those windows is not recommended.
Supported Token Pairs
Currently, the list of supported symbols can be found below. Going forward, this list will continue to expand based on developer needs and community feedback.
Opera Mainnet
Pair | Dec | Contract Address / Proxy |
---|---|---|
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 | |
| 8 |
Opera Testnet
Pair | Dec | Contract Address / Proxy |
---|---|---|
| 18 | |
| 8 | |
| 8 | |
| 8 | |
| 18 | |
| 8 | |
| 8 |
Querying Prices
Currently, there are two methods for developers to query prices from the Chainlink data feed: Through the Solidity PriceConsumer smart contract running on the hosting blockchain and through an external interface utilizing Chainlink AggregatorInterface ABI.
Solidity
To consume price data, your smart contract should reference AggregatorV3Interface, which defines the external functions implemented by Price Feeds. The latest RoundData function returns five values representing information about the latest price data. See Price Feeds API Reference for more details.