circle-info
This is the first version of our Documentation, it will be improved and extended soon.
Page cover

ABI Download

The Application Binary Interface (ABI) defines how to interact with the IFÁ Labs price oracle contract. Use it with tools like ethers.js, web3.js, Hardhat, Foundry, or block explorers.

The cleanest way is via the official npm package, which includes the full ABI, interface, and type definitions:

npm install ifapricefeed-interface

This package is published by IFÁ Labs and available on npm. After installation:

  • Solidity: import "ifapricefeed-interface/IIfaPriceFeed.sol";

  • JavaScript/TypeScript: Access the ABI directly:

import IIfaPriceFeed from "ifapricefeed-interface/abi/IIfaPriceFeed.json";

// or with ethers
const contract = new ethers.Contract(address, IIfaPriceFeed, provider);

Alternative: Raw ABI JSON

If you prefer the raw JSON ABI, you can find it in the package source on GitHub: https://github.com/IFA-Labs/IfaPriceFeed-interfacearrow-up-right

Or view the verified contract on Basescan and copy the ABI from the "Contract" tab:

Tip: Always use the ABI matching your target network; the interface is consistent across deployments.

Next: Head to Security & Audits for details on contract security and audit reports.

Last updated

Was this helpful?