blockchain_attestation
Create verifiable attestations of agent work using Ethereum Attestation Service (EAS), with Base as the default chain.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- blockchain_attestation
- metadata
- { "clawdbot": { "emoji": "⛓️", "homepage": "https://attest.org", "requires": { "bins": [ "node" ] }, "primaryEnv": "EAS_PRIVATE_KEY" } }
- description
- Create verifiable attestations of agent work using Ethereum Attestation Service (EAS), with Base as the default chain.
02 资源文件 6
- 参考文档_meta.json304 B
- 脚本attest.mjs30.1 KB
- 参考文档chains.json533 B
- 参考文档package-lock.json162.4 KB
- 参考文档package.json306 B
- 参考文档schemas.json287 B
03 SKILL.md 正文
Blockchain Attestation (EAS)
This skill creates onchain or offchain attestations of completed work using the Ethereum Attestation Service (EAS).
Opinionated defaults:
- Default chain: Base mainnet
- Default mode: offchain (zero gas, still verifiable)
- Default data model: store hashes of the task and the deliverable (plus a small agent id and metadata string)
Safety and privacy rules
- Never put secrets, private keys, tokens, or private user data into onchain attestations.
- Prefer offchain attestations for most use cases.
- If you need a public timestamp anchor for an offchain attestation, use the timestamp command which anchors the UID onchain without publishing the full payload.
- Only run onchain transactions after the user explicitly requests it or has approved costs.
Environment variables
Required for signing (offchain or onchain):
EAS_PRIVATE_KEY
Required for onchain transactions and onchain reads:
EAS_RPC_URL(an RPC endpoint for the selected chain)
Optional:
EAS_CHAIN(baseorbase_sepolia, default isbase)CLAWDBOT_AGENT_ID(overrides theagentIdfield)
One time setup
Install Node dependencies once:
cd {baseDir} && npm install
One time per chain: register the schema
This skill uses a single schema:
bytes32 taskHash, bytes32 outputHash, string agentId, string metadata
Register it (onchain transaction) and persist the resulting schema UID into schemas.json:
cd {baseDir} && node attest.mjs schema register --chain base
For Base Sepolia:
cd {baseDir} && node attest.mjs schema register --chain base_sepolia
Create an attestation (recommended: offchain)
Best default workflow:
- Provide the task description text
- Provide the deliverable file path (or deliverable text)
- Create an offchain attestation
- Save the signed payload to a file
- Return UID plus the explorer link to the user
Example:
cd {baseDir} && node attest.mjs attest \
--mode offchain \
--chain base \
--task-text "Summarize Q4 board deck into 1 page memo" \
--output-file ./deliverables/memo.pdf \
--recipient 0x0000000000000000000000000000000000000000 \
--metadata '{"hashAlg":"sha256","artifact":"memo.pdf"}' \
--save ./attestations/latest.offchain.json
Timestamp an offchain UID onchain (optional anchor)
cd {baseDir} && node attest.mjs timestamp --chain base --uid <uid>
Create an onchain attestation (costs gas)
cd {baseDir} && node attest.mjs attest \
--mode onchain \
--chain base \
--task-text "..." \
--output-file ./path/to/output \
--metadata '{"hashAlg":"sha256"}'
Verify
Verify an onchain UID:
cd {baseDir} && node attest.mjs verify --chain base --uid <uid>
Verify an offchain attestation JSON file (as produced by this skill):
cd {baseDir} && node attest.mjs verify --offchain-file ./attestations/latest.offchain.json
Hash helper
If you need hashes without creating an attestation:
cd {baseDir} && node attest.mjs hash --file ./deliverables/memo.pdf
Output contract
All commands print a single JSON object to stdout.
- On success:
{ "success": true, ... } - On error:
{ "success": false, "error": { "code": "...", "message": "...", "details": ... } }
This is deliberate so the agent can reliably parse results.
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.