UNPKG

uniderp-mcp

Version:

> A plug-and-play MCP tool server to **send ETH**, **transfer ERC-20 tokens**, **deploy tokens**, and **interact with smart contracts** on the **UNICHAIN** — built for **Claude Desktop**, **AI agents**, and **developers.**

9 lines (8 loc) 246 B
import { formatEther } from "viem"; import { publicClient } from "../config.js"; export async function getBalance(address) { const balance = await publicClient.getBalance({ address: address, }); return formatEther(balance); }