arbitrum-mcp-tools
Version:
A comprehensive collection of Model Context Protocol (MCP) tools for interacting with the Arbitrum blockchain. Enables AI assistants like Claude, Cursor, Windsurf, VS Code, Gemini CLI, and OpenAI Codex to perform blockchain operations including account an
10 lines (9 loc) • 337 B
JavaScript
import { formatUnits } from "ethers";
// Helper function to format token balance
export function formatTokenBalance(balance, decimals) {
return formatUnits(balance, decimals);
}
// Helper function for error handling
export function handleError(error) {
return error instanceof Error ? error.message : "Unknown error occurred";
}