Price Feed API Reference
AggregatorV3Interface
/**
* Network: Bitlayer
* Data Feed: BTC/USD
* Address: 0x62d2c5dEe038FaEbc3F6ec498fD2Bbb3b0080B03
*/
constructor() {
priceFeed = AggregatorV3Interface(0x62d2c5dEe038FaEbc3F6ec498fD2Bbb3b0080B03);
}// SPDX-License-Identifier: MIT
pragma solidity >0.8.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
// getRoundData and latestRoundData should both raise "No data present"
// if they do not have data to report, instead of returning unset values
// which could be misinterpreted as actual reported values.
function getRoundData(uint80 _roundId)
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
}Functions in AggregatorV3Interface
Name
Description