Any contract on Monad can read the price of a GPU-hour.
Any contract on Monad can read what it costs to rent a GPU for an hour. Two ways: a Chainlink-style feed per GPU (easiest, and drop-in for code that already reads Chainlink), or the index contract itself (every detail of every day). Both are on Monad testnet (chain 10143). How the price is made: How the price is made.
The feeds (Chainlink AggregatorV3 views)
One feed per GPU, src/examples/AgatePriceFeed.sol, deployed Oct 8 2026 (contracts/deployments/10143-feeds.json):
latestRoundData(): the newest final day.answeris US dollars per GPU-hour with 6 decimals (3990000= $3.99),roundIdis the index's day id,startedAtthe day's start,updatedAtwhen it became final.getRoundData(day): any final day; reverts withNoFinalPrice()for a day with no final price.- A carried day answers with the carried price, but its
updatedAtis when a price was last really computed (the newest computed final day before it), not when it was carried, so a staleness check like the one below catches a run of carried days. decimals()is 6,description()names the GPU.
A contract that values something in GPU-hours, for example a loan backed by GPU rental income:
interface IAggregatorV3 {
function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80);
}
contract RentalIncomeValuer {
IAggregatorV3 public immutable h100 = IAggregatorV3(0xC68687dd7d7b40281FB07E9006538aa45fAF3D98);
/// dollars (6 decimals) that `gpus` H100s earn over `gpuHours` hours at today's agate price
function income(uint256 gpus, uint256 gpuHours) external view returns (uint256) {
(, int256 price,, uint256 updatedAt,) = h100.latestRoundData();
require(block.timestamp - updatedAt < 3 days, "agate price is stale");
return uint256(price) * gpus * gpuHours;
}
}Check from a terminal:
cast call 0xC68687dd7d7b40281FB07E9006538aa45fAF3D98 "latestRoundData()(uint80,int256,uint256,uint256,uint80)" \
--rpc-url https://testnet-rpc.monad.xyz20735 [2.073e4]
3990000 [3.99e6]
1791504000 [1.791e9]
1791615640 [1.791e9]
20735 [2.073e4]Round 20735 is the day id: days since Jan 1 1970, so Oct 9 2026. 3990000 with 6 decimals is $3.99 per GPU-hour.
1791504000 is the day's start (Oct 9 00:00 UTC) and 1791615640 when it became final (Oct 10 07:00:40 UTC).
From TypeScript, with viem alone:
import { createPublicClient, http, parseAbi } from "viem";
const feed = parseAbi(["function latestRoundData() view returns (uint80, int256, uint256, uint256, uint80)"]);
const pub = createPublicClient({ transport: http("https://testnet-rpc.monad.xyz") });
const [day, answer] = await pub.readContract({ address: "0xC68687dd7d7b40281FB07E9006538aa45fAF3D98", abi: feed, functionName: "latestRoundData" });
console.log(Number(day), Number(answer) / 1e6); // 20735 3.99The index itself
AgateIndex at 0x419394b0Edf3d03164a7C06ea525cC1ED0e5Da36
(interface contracts/src/interfaces/IAgateIndex.sol). Each GPU is a gpuId (every one is listed in
How the price is made); days are UTC day ids (dayId(timestamp)).
finalFix(gpuId, day)returns(ok, value, status, fresh, late, incomplete): the day's final price in millionths of a dollar, its status (1FULL,2DEGRADED,3DEMO,4CARRIED) and how many companies were fresh. This is what the monthly markets settle on. A worked call with its output: Check it yourself.record(gpuId, day)returns the whole record (who wrote it, when it was posted, final and countersigned).- Events:
DayClosed,RecordSlots(each source's day price),Attested,RecordReplaced,Vetoed,DayCarried.
Tests
contracts/test/examples/AgatePriceFeed.t.sol: unit tests over set records, and a fork test against the live index
(MONAD_FORK_URL=https://testnet-rpc.monad.xyz forge test --match-contract AgatePriceFeedForkTest).