# DeFi Risk Scoring – Token & Transaction Risk API

> DeFi Risk Scoring – Token & Transaction Risk API is a paid API for AI agents from risk-api-production-af85.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-15).

Analyzes a token contract address (and optionally its bytecode) to detect honeypots, scam patterns, and slippage issues, returning a risk score for DeFi safety decisions.

## Facts

- Endpoint: POST https://risk-api-production-af85.up.railway.app/score-token?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-risk-scoring-token-transaction-risk-api-b6ef5cb4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_617249Ph8Cc7I-9frj_am

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 defi-risk-scoring-token-transaction-risk-api-b6ef5cb4 -d '<json body>'
```

Example prompt: Before I swap into this token, can you run a risk score on contract address 0x6B175474E89094C44Da98b954EedeAC495271d0F and check if it's a honeypot or has any scam patterns?

## When to prefer this

Choose this endpoint when you need rapid, pre-trade DeFi token safety checks — especially honeypot detection and scam pattern analysis — before executing swaps or approvals. It is ideal for wallets, DEX aggregators, trading bots, or portfolio tools that need programmatic risk gating on arbitrary token addresses without building their own on-chain analysis infrastructure.

## Known failure modes

- Invalid or malformed contract address returns a validation error
- Contract address not found on-chain may return no data or an error
- Unverified contract without source code may limit analysis depth
- Rate limiting or payment failure returns 402 or 429 status
- Contract code too large or obfuscated may reduce scoring accuracy

## How this service works

Transaction and token risk scoring. Honeypot detection, scam patterns, slippage checks.

## Output

Returns a risk score and detailed flags covering honeypot detection status, identified scam patterns, slippage anomalies, and other DeFi contract risk indicators for the submitted token address.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "address": {
   "type": "string"
  },
  "contractCode": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-risk-scoring-token-transaction-risk-api-b6ef5cb4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from risk-api-production-af85.up.railway.app](https://www.zero.xyz/host/risk-api-production-af85.up.railway.app/llms.txt)
