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
AAVE / USD
8
BNB / USD
8
BTC / USD
8
CREAM / USD
8
DAI / USD
8
ETH / USD
8
FTM / USD
8
LINK / USD
8
SNX / USD
8
SUSHI / USD
8
USDC / USD
8
USDT / USD
8
Opera Testnet
BTC / ETH
18
BTC / USD
8
ETH / USD
8
FTM / USD
8
LINK / ETH
18
LINK / USD
8
USDT / USD
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.