# Prerequisites (wallet, Base testnet ETH, tools)

Before you start integrating IFÁ Labs price feeds, ensure you have the basic tools and setup ready. This guide covers everything needed to interact with our onchain oracle contracts on Base.

#### 1. Wallet

You need a compatible Ethereum wallet to sign transactions and interact with Base.

* **Recommended**: MetaMask (browser extension or mobile app).
* Alternatives: Coinbase Wallet, WalletConnect-compatible wallets.

**Setup Steps**:

1. Install MetaMask from [metamask.io](https://metamask.io).
2. Create or import a wallet.
3. Add the Base network (see [Network Information](#network-information) below).

#### 2. Testnet ETH

For testing on Base Sepolia, you'll need testnet ETH (no real value).

**Official Base Sepolia Faucet**:

* Visit: <https://www.base.org/faucet> (or search for "Base Sepolia faucet").
* Connect your wallet and request tokens (daily limits apply).

Alternative faucets:

* [Alchemy Base Faucet](https://www.alchemy.com/faucets/base-sepolia) (requires account).
* Third-party options like [QuickNode](https://faucet.quicknode.com/base/sepolia) or [Infura faucets](https://www.infura.io/zh/faucet/sepolia).

**Note**: Mainnet interactions require real ETH on Base.

#### 3. Development Tools

Choose one or more based on your workflow:

| Tool                 | Best For                          | Installation/Command                                   |
| -------------------- | --------------------------------- | ------------------------------------------------------ |
| **Remix IDE**        | Quick prototyping (browser-based) | Visit [remix.ethereum.org](https://remix.ethereum.org) |
| **Foundry**          | Fast, Rust-based testing/deploy   | \`curl -L <https://foundry.paradigm.xyz>               |
| **Hardhat**          | JavaScript/TypeScript projects    | `npm init -y && npm install --save-dev hardhat`        |
| **Ethers.js / viem** | Frontend or script interactions   | `npm install ethers` or `npm install viem`             |

**Recommended Interface Package**: Install the official IFÁ Labs interface for type-safe development:

```bash
npm install ifapricefeed-interface
```

#### Network Information

Add Base networks to your wallet:

| Network      | RPC URL                    | Chain ID | Currency | Block Explorer                 |
| ------------ | -------------------------- | -------- | -------- | ------------------------------ |
| Base Mainnet | <https://mainnet.base.org> | 8453     | ETH      | <https://basescan.org>         |
| Base Sepolia | <https://sepolia.base.org> | 84532    | ETH      | <https://sepolia.basescan.org> |

MetaMask can auto-add these via ChainList.org.

Once set up, you're ready to fetch your first price!

Next: Learn to Get Your First Price (On-chain)
