# BlockchainSecurity Address Risk Score via x402

> BlockchainSecurity Address Risk Score via x402 is a paid API for AI agents from base-agent-preflight.bytoken2023.workers.dev, paid per call via x402, $0.15/call, status down (last checked 2026-09-15).

Returns a blockchain address risk score for Ethereum or Tron addresses, proxied through an x402-payment-gated Cloudflare Worker.

## Facts

- Endpoint: GET https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/bcs/address-risk
- Price: $0.15/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchainsecurity-address-risk-score-via-x402-c70dc541
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rrEu6BmgUxQgTrXf_fO4I

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockchainsecurity-address-risk-score-via-x402-c70dc541
```

Example prompt: Can you check the risk score for the Ethereum address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e? I want to know if it's safe to interact with before I send funds.

## When to prefer this

Use this endpoint when you need a risk score specifically for Ethereum or Tron addresses and are operating in an x402 micropayment environment. Prefer this over manual on-chain analysis when you need a quick, structured risk signal for compliance screening, fraud prevention, or due diligence before transacting. Note: only supports Ethereum and Tron chains.

## Known failure modes

- Invalid or missing `address` parameter returns a 400 error
- Unsupported blockchain (not 'ethereum' or 'tron') returns a validation error
- Payment failure (x402) if USDC balance is insufficient — returns 402 Payment Required
- Address not found or unscored by upstream service returns empty data
- Rate limit exceeded from upstream BlockchainSecurity service

## How this service works

Pay-per-request identity, risk, authorization, execution-preflight and evidence APIs for autonomous agents.

## Output

A JSON object containing a risk score and associated data for the queried blockchain address, sourced from the BlockchainSecurity Atlantis service. Includes upstream request ID, credit metadata, and the raw risk data payload in the `upstream_response.data` field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "blockchain",
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^[A-Za-z0-9:_-]{3,128}$",
       "description": "Address to risk-score."
      },
      "symbols": {
       "type": "string",
       "pattern": "^[A-Za-z0-9,._-]{1,240}$",
       "description": "Optional comma-separated asset symbols to include."
      },
      "contracts": {
       "type": "string",
       "pattern": "^[A-Za-z0-9,:._-]{1,1000}$",
       "description": "Optional comma-separated token contracts to include."
      },
      "blockchain": {
       "type": "string",
       "pattern": "^(?:ethereum|tron)$",
       "description": "BlockchainSecurity chain slug. Address risk currently supports ethereum or tron."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "product",
      "upstream_service",
      "upstream_response"
     ],
     "properties": {
      "product": {
       "type": "string"
      },
      "request": {
       "type": "object"
      },
      "provenance": {
       "type": "object"
      },
      "upstream_headers": {
       "type": "object"
      },
      "upstream_service": {
       "type": "string"
      },
      "upstream_response": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "product": "bcs-address-risk-score",
  "upstream_headers": {
   "request_id": "example-request-id",
   "credit_cost": null,
   "credit_remaining": null
  },
  "upstream_service": "blockchainsecurity-atlantis",
  "upstream_response": {
   "data": {},
   "meta": {
    "request_id": "example-request-id"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchainsecurity-address-risk-score-via-x402-c70dc541/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-agent-preflight.bytoken2023.workers.dev](https://www.zero.xyz/host/base-agent-preflight.bytoken2023.workers.dev/llms.txt)
