-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Context
Following up from the x402 #1277 discussion where we discussed integrating InsumerAPI's on-chain token attestation into DJD Agent Score's Identity dimension.
Problem
New agent wallets with zero x402 transaction history score low across all behavioral dimensions, even if the operator is legitimate. The Identity dimension (currently 20% weight) helps, but is limited to wallet age, Basename, and GitHub verification.
Proposal
Add InsumerAPI token attestation as an additional Identity signal. When scoring a wallet, optionally call InsumerAPI to check whether the wallet holds specific credential tokens (governance tokens, membership NFTs, merchant badges, etc.) on any of 31 EVM chains.
Score-time enrichment (Phase 1)
During wallet scoring, call POST https://api.insumermodel.com/v1/attest with:
{
"wallet": "0x...",
"conditions": [
{
"type": "token_balance",
"contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"threshold": 1,
"decimals": 6,
"label": "USDC on Base"
}
]
}Response includes an ECDSA P-256 signed attestation:
{
"ok": true,
"data": {
"attestation": {
"id": "ATST-DB868",
"pass": true,
"results": [
{
"condition": 0,
"label": "USDC on Base",
"type": "token_balance",
"chainId": 8453,
"met": true,
"evaluatedCondition": {
"type": "token_balance",
"chainId": 8453,
"contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"operator": "gte",
"threshold": 1,
"decimals": 6
},
"conditionHash": "0x63000d642ecf4cf0c78b1ae1a6d7f9bc4bc192a55bbca8be516ba74db2ddb4d5",
"blockNumber": "0x290e25e",
"blockTimestamp": "2026-03-07T13:01:19.000Z"
}
],
"passCount": 1,
"failCount": 0,
"attestedAt": "2026-03-07T13:01:20.400Z",
"expiresAt": "2026-03-07T13:31:20.400Z"
},
"sig": "0ahxFqRFGJSmFGCJLkX15Bvujkj+jLuLR77I3EstoyExME2h/b8VmJuLoJdUJVp8tqR+Iq91I36YXyDfO8RuVQ==",
"kid": "insumer-attest-v1"
},
"meta": {
"version": "1.0",
"timestamp": "2026-03-07T13:01:20.527Z",
"creditsCharged": 1,
"creditsRemaining": 9
}
}A pass: true result for one or more relevant tokens would boost the Identity dimension score, helping legitimate wallets clear the cold-start threshold while behavioral dimensions build up from actual x402 usage.
Registration-time attestation (Phase 2)
Extend POST /v1/agent/register to accept optional token attestations as part of the identity profile. These persist and don't need to be re-fetched on every score request.
Mutual MCP exposure (Phase 3)
Both projects have MCP servers (mcp-server-insumer and djd-agent-score-mcp). Document a combined workflow where agents get behavioral reputation + credential verification in one tool set.
InsumerAPI resources
- OpenAPI spec
- MCP server (23 tools)
- LangChain SDK
- Developers page
Happy to provide a test API key to get started on Phase 1.