BaseCred
通过 BaseCred SDK 获取链上声誉档案(Ethos、Talent Protocol、Farcaster/Neynar)。当用户想要检查任何 0x 地址的钱包声誉、构建者分数、创作者分数、Ethos 可信度或 Farcaster 账户质量时使用。支持多来源统一档案,具备等级推导和时效性跟踪功能。
作者:Callmedas69 · 最新版本:1.0.0
收藏:2 · 下载:1.2k
说明文档
# BaseCred — Onchain Reputation Queries ## Prerequisites 1. **Package installed** in workspace: `npm i basecred-sdk` 2. **API keys** in workspace `.env`: ``` TALENT_PROTOCOL_API_KEY=<key> NEYNAR_API_KEY=<key> # optional — enables Farcaster scoring ``` Ethos Network requires no key. ## Quick workflow 1. Run the query script from the workspace: ```bash node /path/to/skills/basecred/scripts/query.mjs <0x-address> ``` The script auto-locates `node_modules/basecred-sdk` and `.env` by walking up from cwd. Run it with cwd set to the workspace. 2. Parse the JSON output and present results to the user. Use the level tables in `references/output-schema.md` to translate raw scores into human-readable levels. ## Presenting results Summarize the three facets clearly: - **Ethos** — score + credibility level + review sentiment + vouches. Flag `hasNegativeReviews` if true. - **Talent Protocol** — builder score/level + creator score/level. Note verified status. - **Farcaster** — quality score (0–1) and whether it passes threshold. - **Recency** — `recent` / `stale` / `dormant`. Mention if stale or dormant as a caveat. Highlight actionable signals: e.g. zero vouches on Ethos is an easy win, or a dormant Talent score that needs activity. ## Reference - **Output schema + all level tables:** `references/output-schema.md` — read when you need to map scores → levels or explain the shape of a response.