Search
API reference for AggregatorV3Interface
.
Name | Description |
---|---|
decimals | The number of decimals in the response. |
description | The description of the aggregator that the proxy points to. |
getRoundData | Get data from a specific round. |
latestRoundData | Get data from the latest round. |
version | The version representing the type of aggregator the proxy points to. |
Get the number of decimals present in the response value.
function decimals() external view returns (uint8)
RETURN
: The number of decimals.Get the description of the underlying aggregator that the proxy points to.
function description() external view returns (string memory)
RETURN
: The description of the underlying aggregator.Get data about a specific round, using the roundId
.
function getRoundData(uint80 _roundId) external view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
)
roundId
: The round IDroundId
: The round ID.answer
: The price.startedAt
: Timestamp of when the round started.updatedAt
: Timestamp of when the round was updated.answeredInRound
: The round ID of the round in which the answer was computed.Get the price from the latest round.
function latestRoundData() external view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
)
roundId
: The round ID.answer
: The price.startedAt
: Timestamp of when the round started.updatedAt
: Timestamp of when the round was updated.answeredInRound
: The round ID of the round in which the answer was computed.The version representing the type of aggregator the proxy points to.
function version() external view returns (uint256)
RETURN
: The version number.