Get started
Quickstart
Read the SCOM/USD price onchain in five lines of Solidity or Clarity.
Get started
What Tachi is and your first price in minutes.
1 min read 2 sections Testnet
Read a price
The oracle lives at the same address on Base Sepolia and Avalanche Fuji. Pass a pair name, get a feed id, then read the price with a freshness limit.
ReadScom.sol
IPriceOracle oracle = IPriceOracle(0x323bE6F6964a9B634685F4844257E9fDE9E26c2c);
bytes32 feedId = oracle.feedIdOf("SCOM/USD");
// Revert if the newest observation is older than one hour
IPriceOracle.PriceData memory p = oracle.getPriceIfFresh(feedId, 3600);
uint256 usdPrice = p.price; // 8 decimalsTip
Every price uses 8 decimals. A value of 1250000 means 0.0125 in the quote currency.
Next steps
- Read the full Solidity guide.
- Read the full Clarity guide.
- Learn how prices are signed in Signing and quorum.
Something wrong or missing on this page? Tell us.

