{"_id":"@aaricchen1991/eth-scan","name":"@aaricchen1991/eth-scan","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@aaricchen1991/eth-scan","description":"ETH Scanner","version":"0.0.0","author":{"name":"aaricchen@gmail.com"},"publishConfig":{"access":"public"},"bin":{"eth-scan":"bin/run.js"},"bugs":{"url":"https://github.com/AaricChen/eth-scan/issues"},"dependencies":{"@oclif/core":"^4","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","consola":"^3.4.2","nodemailer":"^7.0.11","viem":"^2.41.2"},"devDependencies":{"@eslint/compat":"^1","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/chai":"^4","@types/mocha":"^10","@types/node":"^18","@types/nodemailer":"^7.0.4","chai":"^4","eslint":"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10","mocha":"^10","oclif":"^4","shx":"^0.3.3","ts-node":"^10","typescript":"^5"},"engines":{"node":">=22.0.0"},"homepage":"https://github.com/AaricChen/eth-scan","keywords":["oclif"],"license":"MIT","main":"dist/index.js","type":"module","oclif":{"bin":"eth-scan","dirname":"eth-scan","commands":"./dist/commands","plugins":["@oclif/plugin-help","@oclif/plugin-plugins"],"topicSeparator":" "},"repository":{"type":"git","url":"git+https://github.com/AaricChen/eth-scan.git"},"scripts":{"build":"shx rm -rf dist && tsc -b && shx cp -r src/constants/*.json dist/constants/","lint":"eslint","postpack":"shx rm -f oclif.manifest.json","posttest":"pnpm run lint","prepack":"oclif manifest && oclif readme","test":"mocha --forbid-only \"test/**/*.test.ts\"","test:email":"node --loader ts-node/esm test-email.ts","version":"oclif readme && git add README.md"},"types":"dist/index.d.ts","_id":"@aaricchen1991/eth-scan@0.0.0","gitHead":"63033545d26475a63ad3a609b7fe4d7899448b74","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-G+8Gubwl/zuMUOl6ElO1XFaHKXbfaR7GdBxRFpdOPX8341n+5vdkymIoJDkywB7gl7mAB29kBMVh3sC1V9V16g==","shasum":"2334d4e7aae267106712d7393f92f6ea1ed3ebb3","tarball":"https://registry.npmjs.org/@aaricchen1991/eth-scan/-/eth-scan-0.0.0.tgz","fileCount":40,"unpackedSize":72932,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG0KUQ5dPkc2aFtEbGZmcnPzalkVQfpwIKluPTk6xAPtAiEA2+IYzQVIej+OKajI+oQzhlSMQhG1EosZwWRIy0kJ9eg="}]},"_npmUser":{"name":"aaricchen1991","email":"aaricchen@gmail.com"},"directories":{},"maintainers":[{"name":"aaricchen1991","email":"aaricchen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eth-scan_0.0.0_1764818218450_0.36060417824465274"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-04T03:16:58.389Z","0.0.0":"2025-12-04T03:16:58.636Z","modified":"2025-12-04T03:16:58.897Z"},"maintainers":[{"name":"aaricchen1991","email":"aaricchen@gmail.com"}],"description":"ETH Scanner","homepage":"https://github.com/AaricChen/eth-scan","keywords":["oclif"],"repository":{"type":"git","url":"git+https://github.com/AaricChen/eth-scan.git"},"author":{"name":"aaricchen@gmail.com"},"bugs":{"url":"https://github.com/AaricChen/eth-scan/issues"},"license":"MIT","readme":"# @aaric/eth-scan\n\nETH Scanner - 以太坊地址代币扫描工具\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@aaric/eth-scan.svg)](https://npmjs.org/package/@aaric/eth-scan)\n[![Downloads/week](https://img.shields.io/npm/dw/@aaric/eth-scan.svg)](https://npmjs.org/package/@aaric/eth-scan)\n\n## 安装\n\n```bash\nnpm install -g @aaric/eth-scan\n```\n\n## 使用方法\n\n```bash\neth-scan COMMAND\n```\n\n## 命令\n\n### `eth-scan info ADDRESS COINLIST`\n\n查看目标地址的 coinList 信息，返回该地址所有在 coinList 里面的 ERC20 代币信息。\n\n**参数：**\n- `ADDRESS` - 目标地址（要查询的以太坊地址，必需）\n- `COINLIST` - CoinList JSON 文件路径（必需）\n\n**选项：**\n- `-j, --json` - 以 JSON 格式输出结果\n\n**CoinList 文件格式：**\n\nCoinList 文件应该是一个 JSON 文件，包含一个 `tokens` 数组，数组中包含代币合约地址：\n\n```json\n{\n  \"tokens\": [\n    \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n    \"0xdAC17F958D2ee523a2206206994597C13D831ec7\",\n    \"0x6B175474E89094C44Da98b954EedeAC495271d0F\"\n  ]\n}\n```\n\n**示例：**\n\n```bash\n# 查询指定地址在 coinList 中的所有代币信息（表格格式）\neth-scan info 0x1234567890123456789012345678901234567890 ./coinlist.json\n\n# 以 JSON 格式输出结果\neth-scan info 0x1234567890123456789012345678901234567890 ./coinlist.json --json\n```\n\n**输出信息：**\n\n命令会返回每个代币的以下信息：\n- 地址（Address）\n- 符号（Symbol）\n- 名称（Name）\n- 余额（Balance，已格式化）\n\n**功能特性：**\n\n- 自动验证地址格式\n- 批量查询多个代币信息\n- 支持表格和 JSON 两种输出格式\n- 详细的日志输出\n- 完善的错误处理\n\n## 开发\n\n```bash\n# 安装依赖\npnpm install\n\n# 构建\npnpm run build\n\n# 运行测试\npnpm test\n\n# 代码检查\npnpm run lint\n```\n\n## 许可证\n\nMIT\n","readmeFilename":"README.md","_rev":"1-e2afdb43935c39a7b344a342acc65dc2"}