{
  "$comment": "GENERATED FROM api/_tools/<slug>/route.mjs — do not edit by hand",
  "type": "https://eips.ethereum.org/EIPS/eip-8257#tool-manifest-v1",
  "name": "bankr-leaderboard",
  "description": "Top traders on bankr.bot ranked by total Bankr Score or any of its components (staking, $BNKR, partner-coin boost, NFTs, PnL, mindshare, earnings, referrals). Configurable timeframe (24h/7d/30d/total) and limit (1-20). Cached upstream for 10 minutes. For copy-trading research, agent due-diligence, and onchain credibility.",
  "endpoint": "https://www.clawbots.org/api/tools/bankr-leaderboard",
  "inputs": {
    "type": "object",
    "properties": {
      "sort": {
        "type": "string",
        "enum": [
          "total",
          "staking",
          "bnkr",
          "mindshare",
          "earn",
          "partner",
          "pnl",
          "nft",
          "referral"
        ],
        "default": "total",
        "description": "Score dimension to rank by"
      },
      "timeframe": {
        "type": "string",
        "enum": [
          "24h",
          "7d",
          "30d",
          "total"
        ],
        "default": "total",
        "description": "Score lookback window"
      },
      "limit": {
        "type": "integer",
        "minimum": 1,
        "maximum": 20,
        "default": 10,
        "description": "How many traders to return (1-20)"
      }
    },
    "additionalProperties": false
  },
  "outputs": {
    "type": "object",
    "properties": {
      "data_as_of": {
        "type": "string",
        "format": "date-time",
        "description": "When the upstream snapshot was fetched"
      },
      "sort": {
        "type": "string",
        "description": "Echoed sort dimension"
      },
      "timeframe": {
        "type": "string",
        "description": "Echoed timeframe"
      },
      "source": {
        "type": "string",
        "description": "Upstream leaderboard URL"
      },
      "data": {
        "type": "array",
        "description": "Top traders sliced to `limit`",
        "items": {
          "type": "object",
          "properties": {
            "rank": {
              "type": "integer"
            },
            "handle": {
              "type": "string"
            },
            "x_id": {
              "type": "string"
            },
            "pfp_url": {
              "type": "string"
            },
            "score": {
              "type": "number"
            },
            "breakdown": {
              "type": "object",
              "properties": {
                "staking_usd": {
                  "type": "number"
                },
                "bnkr_usd": {
                  "type": "number"
                },
                "booster_raw": {
                  "type": "number"
                },
                "pnl_usd": {
                  "type": "number"
                },
                "nft_count": {
                  "type": "integer"
                },
                "mindshare": {
                  "type": "number"
                },
                "earn_usd": {
                  "type": "number"
                },
                "referral": {
                  "type": "number"
                }
              }
            },
            "profile_url": {
              "type": "string"
            }
          }
        }
      }
    },
    "required": [
      "data_as_of",
      "sort",
      "timeframe",
      "source",
      "data"
    ]
  },
  "creatorAddress": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
  "tags": [
    "bankr",
    "base",
    "leaderboard",
    "traders",
    "x402"
  ],
  "pricing": [
    {
      "amount": "0.005",
      "asset": "USDC",
      "recipient": "0xef2cc7d15d3421629f93ffa39727f14179f31c75",
      "protocol": "x402"
    }
  ],
  "authentication": [
    {
      "type": "siwe",
      "description": "Sign In With Ethereum. Holders of the Axiom Tool Pass NFT get free unlimited access. Sign a SIWE message proving wallet ownership; the server verifies your wallet holds the pass on-chain.",
      "header": "Authorization: SIWE <base64url(message)>.<0xsignature>",
      "passContract": "0xfc9ce3990f85fA1A3a0eE51a710642396a6Cad82",
      "chain": "base",
      "chainId": 8453,
      "collection": "https://opensea.io/collection/axiom-tool-pass"
    },
    {
      "type": "x402",
      "description": "Pay per call in USDC on Base via the x402 protocol. No account or API key needed.",
      "header": "x-payment: <x402 authorization>"
    }
  ],
  "onChain": {
    "registry": "0x265BB2DBFC0A8165C9A1941Eb1372F349baD2cf1",
    "chainId": 8453,
    "toolId": 12
  }
}
