Skip to content

Feature: Wallet reputation scoring for ERC-4337 smart accounts #502

Description

@jacobsd32-cpu

Context

Smart accounts (ERC-4337) are increasingly used by AI agents for autonomous on-chain operations. Bundlers, paymasters, and dApps interacting with these accounts need signals about account trustworthiness — especially since smart accounts can be freshly deployed with no history.

Proposal

Integrate wallet reputation scoring as an optional utility for assessing ERC-4337 account trust. DJD Agent Score provides a 0–100 trust score across 5 behavioral dimensions, derived from on-chain activity on Base.

Use cases for permissionless.js users

  1. Paymaster risk gating — Score the sender before sponsoring gas. Low-reputation accounts might require deposits or rate limiting.

  2. Bundler prioritization — Higher-reputation accounts could get priority bundling during congestion.

  3. dApp access tiers — Use reputation scores to unlock features progressively (e.g., higher trading limits for established accounts).

Example

import { createSmartAccountClient } from "permissionless"
import { DjdClient } from "djd-agent-score-client"

const djd = new DjdClient()

// Score a smart account before sponsoring
async function shouldSponsor(accountAddress: `0x${string}`): Promise<boolean> {
  const score = await djd.getBasicScore(accountAddress)
  
  // Require minimum reputation for gas sponsorship
  if (score.composite_score < 25) {
    console.log(`Low reputation (${score.composite_score}), requiring deposit`)
    return false
  }
  
  // Check specific dimensions
  if (score.dimensions.reliability < 20) {
    console.log(`Low reliability dimension, flagging for review`)
    return false
  }
  
  return true
}

API details

  • Free tier: 3 scores/day (no key needed)
  • x402 micropayments for higher volume (USDC on Base)
  • TypeScript SDK: npm install djd-agent-score-client
  • Live example: curl https://djd-agent-score.fly.dev/score/basic/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

The smart account space is growing fast with AI agents — reputation scoring could be a valuable layer for the permissionless.js ecosystem. Happy to discuss implementation approaches!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions