Storage Contract methods
Last updated
Last updated
You need to find or deploy the corresponding endpoint to get the data feed. For example, for the ETHUSDC pair on the Sepolia testnet, the current address is 0x3fdf540bee3dd5cd5009d9bc6f6978370cee3a7e
. This address might change in the future since the endpoints are still under continuous development. Check the addresses of the active endpoints on the .
decimals()(uint8)
Returns the precision parameter of the endpoint.
Usage example:
description()(string)
Meta info about the endpoint.
Usage example:
latestAnswer
latestAnswer()(uint256)
Returns short data for the latest round.
Usage example:
latestRound()(uint256)
Returns the index number of the latest round.
Usage example:
getRoundData(uint80 _roundId) returns (uint80 roundId, uint256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
Returns full data for the round by index.
Usage example:
latestRoundData()(uint80, uint256, uint256, uint256, uint80)
Returns full data for the latest round.
Usage example: