This page walks you through three ways to fetch a price from the IFÁ Labs oracle. All three work on Base Mainnet and Base Sepolia. Choose the one that fits where you are in your development workflow.Documentation Index
Fetch the complete documentation index at: https://docs.ifalabs.com/llms.txt
Use this file to discover all available pages before exploring further.
| Method | Best For | Setup Required |
|---|---|---|
| Remix IDE | Beginners, quick prototyping | None — browser-based |
| Basescan | Instant read, no coding | None |
| ethers.js Script | Frontend integrations, automation | Node.js |
Method 1: Remix IDE
The fastest way to fetch a price without any local setup.Open Remix IDE
Go to remix.ethereum.org in your browser.
Create a new file
In the File Explorer, create a new file called
PriceReader.sol and paste the following:Compile the contract
Open the Solidity Compiler tab. Set the compiler version to
0.8.0 or higher and click Compile PriceReader.sol.Deploy and call
Open the Deploy & Run Transactions tab.
- Set Environment to
Injected Provider - MetaMask - Make sure MetaMask is connected to Base Mainnet or Base Sepolia
- Click Deploy
- Once deployed, click getUSDTPrice under the deployed contract
price, decimal, timestamp, and exists.price ÷ 10^(-decimal) = 1e18 ÷ 10^18 = $1.00
For any stablecoin near its peg, expect a value close to 1e18 with decimal = -18.
Method 2: Basescan
No coding required. Read directly from the deployed contract via the block explorer.Open the contract on Basescan
Method 3: ethers.js Script
For developers integrating IFÁ Labs into a frontend, backend, or automated workflow.Common Asset IDs
Use these in any of the three methods above:| Asset | Asset ID |
|---|---|
| USDT/USD | 0x6ca0cef6107263f3b09a51448617b659278cff744f0e702c24a2f88c91e65a0d |
| USDC/USD | 0xf989296bde68043d307a2bc0e59de3445defc5f292eb390b80d78162c8a6b13d |
| CNGN/USD | 0x83a18c73cf75a028a24b79cbedb3b8d8ba363b748a3210ddbcaa95eec3b87b3a |
| BRZ/USD | 0xbc60b55b031dce1ee5679098bf2f35d66a94a566124e2b233324d2bafcc6d5b5 |
| ETH/USD | 0x8c3fb07cab369fe230ca4e45d095f796c4c1a30131f1799766d4fec5ee1325c0 |
| ZARP/USD | 0x12373a3b1c4827c84bf6d7b11df100442695d0abfdb7a20d30a41d67d58e75a8 |
What’s Happening Under the Hood
Every call togetAssetInfo reads directly from an audited smart contract on-chain. There is no API server, no middleware, and no off-chain dependency in the read path. The price you get is exactly what was last pushed by IFÁ Labs’ decentralized relayer network — verifiable by anyone on the blockchain.
This also means price reads cost zero gas. View calls on EVM chains are free. The only gas cost in your integration is if you’re writing price data into your own contract’s storage.
Next Steps
Verify Price Integrity
Add staleness checks and deviation guards before going to production.
EVM Integration Guide
Build a full production integration into your smart contracts.

