Loading...
Loading...
ERC-8004 on-chain agent reputation management — submit and revoke feedback, append responses, approve clients, and query reputation summaries, feedback entries, and client lists.
npx skill4agent add aibtcdev/skills reputationbun run reputation/reputation.ts <subcommand> [options]bun run reputation/reputation.ts give-feedback --agent-id <id> --value <value> [--value-decimals <decimals>] [--tag1 <tag>] [--tag2 <tag>] [--endpoint <endpoint>] [--feedback-uri <uri>] [--feedback-hash <hex>] [--fee <fee>] [--sponsored]--agent-id--value--value-decimals--tag1--tag2--endpoint--feedback-uri--feedback-hash--feelowmediumhigh--sponsored{
"success": true,
"txid": "0xabc...",
"message": "Feedback submitted for agent 42.",
"agentId": 42,
"value": 5,
"valueDecimals": 0,
"network": "mainnet",
"explorerUrl": "https://explorer.hiro.so/txid/0xabc..."
}bun run reputation/reputation.ts revoke-feedback --agent-id <id> --index <index> [--fee <fee>] [--sponsored]--agent-id--index--feelowmediumhigh--sponsored{
"success": true,
"txid": "0xdef...",
"message": "Feedback index 0 revoked for agent 42.",
"agentId": 42,
"index": 0,
"network": "mainnet",
"explorerUrl": "https://explorer.hiro.so/txid/0xdef..."
}bun run reputation/reputation.ts append-response --agent-id <id> --client <address> --index <index> --response-uri <uri> --response-hash <hex> [--fee <fee>] [--sponsored]--agent-id--client--index--response-uri--response-hash--feelowmediumhigh--sponsored{
"success": true,
"txid": "0xghi...",
"message": "Response appended to feedback index 0 for agent 42.",
"agentId": 42,
"client": "SP2...",
"index": 0,
"responseUri": "ipfs://response...",
"network": "mainnet",
"explorerUrl": "https://explorer.hiro.so/txid/0xghi..."
}bun run reputation/reputation.ts approve-client --agent-id <id> --client <address> --index-limit <limit> [--fee <fee>] [--sponsored]--agent-id--client--index-limit--feelowmediumhigh--sponsored{
"success": true,
"txid": "0xjkl...",
"message": "Client SP3... approved for agent 42 up to index limit 10.",
"agentId": 42,
"client": "SP3...",
"indexLimit": 10,
"network": "mainnet",
"explorerUrl": "https://explorer.hiro.so/txid/0xjkl..."
}bun run reputation/reputation.ts get-summary --agent-id <id>--agent-id{
"success": true,
"agentId": 42,
"totalFeedback": 7,
"summaryValue": "5000000000000000000",
"summaryValueDecimals": 18,
"network": "mainnet"
}bun run reputation/reputation.ts read-feedback --agent-id <id> --client <address> --index <index>--agent-id--client--index{
"success": true,
"agentId": 42,
"client": "SP2...",
"index": 0,
"value": 5,
"valueDecimals": 0,
"wadValue": "5000000000000000000",
"tag1": "helpful",
"tag2": "",
"isRevoked": false,
"network": "mainnet"
}bun run reputation/reputation.ts read-all-feedback --agent-id <id> [--tag1 <tag>] [--tag2 <tag>] [--include-revoked] [--cursor <cursor>]--agent-id--tag1--tag2--include-revoked--cursor{
"success": true,
"agentId": 42,
"items": [
{
"client": "SP2...",
"index": 0,
"value": 5,
"valueDecimals": 0,
"wadValue": "5000000000000000000",
"tag1": "helpful",
"tag2": "",
"isRevoked": false
}
],
"cursor": null,
"network": "mainnet"
}bun run reputation/reputation.ts get-clients --agent-id <id> [--cursor <cursor>]--agent-id--cursor{
"success": true,
"agentId": 42,
"clients": ["SP2...", "SP3..."],
"cursor": null,
"network": "mainnet"
}bun run reputation/reputation.ts get-feedback-count --agent-id <id>--agent-id{
"success": true,
"agentId": 42,
"feedbackCount": 7,
"network": "mainnet"
}bun run reputation/reputation.ts get-approved-limit --agent-id <id> --client <address>--agent-id--client{
"success": true,
"agentId": 42,
"client": "SP3...",
"approvedLimit": 10,
"network": "mainnet"
}bun run reputation/reputation.ts get-last-index --agent-id <id> --client <address>--agent-id--client{
"success": true,
"agentId": 42,
"client": "SP3...",
"lastIndex": 2,
"network": "mainnet"
}bun run wallet/wallet.ts unlock--value-decimals--feedback-hash--response-hashrevoke-feedbackapprove-clientcursor