I'm looking to know both:
We can do this programmatically or manually:
You can see the last update, and if the feeds are running by:
Going to the specific Chainlink data feed you are curious about
Going to the address of the data feed and checking it out in a block explorer like Etherscan. (The docs will offer a link to Etherscan for you)
Contract
tab -> Read Contract
and clicking the aggregator
In your solidity code, just return timeStamp
from your latestRoundData
call. Here are the docs for reference.
function getLatestTime() public view returns (uint) {
(
uint80 roundID,
int price,
uint startedAt,
uint timeStamp,
uint80 answeredInRound
) = priceFeed.latestRoundData();
return timeStamp;
}