Solidity REPL
Context & forks

Call USDC on a fork

Call a deployed token at one Ethereum block and inspect its metadata, supply, and pool balance.

Solidity 0.8.36REPL modeFork · RPC on Run

Why use this example

Use this pattern when the answer depends on transaction fields, block data, chain identity, payable value, or live RPC state. The entry isolates call usdc on a fork so its input, result, and state changes stay easy to compare.

Solidity to run

interface IERC20View {
  function name() external view returns (string memory);
  function symbol() external view returns (string memory);
  function decimals() external view returns (uint8);
  function totalSupply() external view returns (uint256);
  function balanceOf(address owner) external view returns (uint256);
}

IERC20View usdc = IERC20View(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)
address uniswapPool = 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640

usdc.name()
usdc.symbol()
usdc.decimals()
usdc.totalSupply()
usdc.balanceOf(uniswapPool)
block.number

What to expect

At the pinned Ethereum block, the transcript returns the token name, symbol, decimals, total supply, the Uniswap pool’s USDC balance, and the exact block number.

This case waits for you to select Run. The chain and block are prepared; enter your RPC endpoint when prompted.

Continue the investigation

Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.

Read about execution controls Deployed contract investigation