get-agent-identity

📁 agnicpay/agnic-wallet-skills 📅 5 days ago
3
总安装量
3
周安装量
#55572
全站排名
安装命令
npx skills add https://github.com/agnicpay/agnic-wallet-skills --skill get-agent-identity

Agent 安装分布

opencode 3
antigravity 3
github-copilot 3
codex 3
kimi-cli 3
gemini-cli 3

Skill 文档

Get Agent Identity

Check the user’s on-chain ERC-8004 agent identity, trust score, and KYA credentials.

Steps

  1. Verify authentication:

    npx agnic@latest status --json
    
  2. Check agent identity:

    npx agnic@latest agent-identity --json
    

    Note: If agent-identity is not available, use the API directly:

    npx agnic@latest x402 pay "https://api.agnic.ai/api/agent/identity" --method GET --json
    

What is ERC-8004?

ERC-8004 (“Trustless Agents”) is an Ethereum standard that gives AI agents:

  • On-chain identity — An NFT representing the agent
  • Reputation score — Trust score based on transaction history
  • Verifiable credentials — KYA (Know Your Agent) credentials for identity verification

Expected Output

{
  "agentId": 373,
  "ownerAddress": "0x046906b3...",
  "status": "active",
  "registeredAt": "2024-12-15T...",
  "trustScore": 85,
  "categories": ["payment", "general"]
}

Error Handling

  • If the user doesn’t have an agent identity, they can create one via the AgnicPay dashboard
  • Agent identity is automatically created during OAuth sign-up