Address risk

¿Esta dirección está sancionada, es phishing o una estafa? Compruébalo antes de enviar fondos.

Análisis de riesgo Documento OpenAPI

🎁 Prueba gratuita: 3 llamadas gratis / día (por llamante y herramienta)

Herramientas

Prueba una llamada real ahora mismo

HTTPcURLNode.jsPython

Lo que envía tu agente

{
  "address": "0x000000000000000000000000000000000000dEaD",
  "chain": "ethereum"
}
🎁 3 de 3 llamadas gratis restantes hoy

curl solo se detiene en el desafío 402: añade un cliente x402 (pestañas Node.js o Python) para pagar automáticamente.

Shell
# curl solo se detiene en el desafío 402: añade un cliente x402 (pestañas Node.js o Python) para pagar automáticamente.
curl -X POST 'https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address' \
  -H 'content-type: application/json' \
  -d '{"address":"0x000000000000000000000000000000000000dEaD","chain":"ethereum"}'

El SDK de x402 gestiona el 402, la firma y el reintento por ti: una llamada, un resultado.

TypeScript
// npm install @x402/fetch @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const fetchWithPayment = wrapFetchWithPayment(fetch, client);

const res = await fetchWithPayment("https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"0x000000000000000000000000000000000000dEaD","chain":"ethereum"}),
});
console.log(await res.json());

El SDK de x402 gestiona el 402, la firma y el reintento por ti: una llamada, un resultado.

Python 3
# pip install "x402[httpx]" eth_account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client


async def main() -> None:
    client = x402Client()
    account = Account.from_key(os.environ["EVM_PRIVATE_KEY"])
    register_exact_evm_client(client, EthAccountSigner(account))
    async with x402HttpxClient(client) as http:
        response = await http.post("https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address", json={"address":"0x000000000000000000000000000000000000dEaD","chain":"ethereum"})
        await response.aread()
        print(response.json())


asyncio.run(main())

El cliente Java de referencia del repositorio x402. Aún no hay un SDK de Java publicado: tú aportas la firma (por ejemplo con web3j).

Java 11+
// Reference client from github.com/coinbase/x402 (java/): build it with `mvn clean install`, then
// <dependency><groupId>org.x402</groupId><artifactId>x402</artifactId><version>1.0.0-SNAPSHOT</version></dependency>
import org.x402.client.X402HttpClient;
import org.x402.crypto.CryptoSigner;
import java.math.BigInteger;
import java.net.URI;
import java.net.http.HttpResponse;
import java.util.Map;

public class Call {
  public static void main(String[] args) throws Exception {
    // You provide the EIP-3009 signature (for example with web3j) from your private key (env EVM_PRIVATE_KEY).
    CryptoSigner signer = new CryptoSigner() {
      @Override
      public String sign(Map<String, Object> payload) {
        return signWithWallet(System.getenv("EVM_PRIVATE_KEY"), payload);
      }
    };
    X402HttpClient client = new X402HttpClient(signer);

    BigInteger amount = BigInteger.valueOf(5000); // $0.005 in USDC (6 decimals)
    String usdcOnBase = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
    String payTo = "<the seller address from the 402 challenge>";
    HttpResponse<String> response = client.get(URI.create("https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address"), amount, usdcOnBase, payTo);
    System.out.println(response.body());
  }
}

El SDK de x402 gestiona el 402, la firma y el reintento por ti: una llamada, un resultado.

Go
// go get github.com/x402-foundation/x402/go/v2
package main

import (
	"context"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
	"strings"

	x402 "github.com/x402-foundation/x402/go/v2"
	x402http "github.com/x402-foundation/x402/go/v2/http"
	evm "github.com/x402-foundation/x402/go/v2/mechanisms/evm/exact/client"
	evmsigners "github.com/x402-foundation/x402/go/v2/signers/evm"
)

func main() {
	signer, _ := evmsigners.NewClientSignerFromPrivateKey(os.Getenv("EVM_PRIVATE_KEY"))
	client := x402.Newx402Client().Register("eip155:*", evm.NewExactEvmScheme(signer))
	httpClient := x402http.WrapHTTPClientWithPayment(http.DefaultClient, x402http.Newx402HTTPClient(client))

	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
	defer cancel()
	req, _ := http.NewRequestWithContext(ctx, "POST", "https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address", strings.NewReader(`{"address":"0x000000000000000000000000000000000000dEaD","chain":"ethereum"}`))
	req.Header.Set("content-type", "application/json")
	res, err := httpClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(body))
}

El SDK de x402 gestiona el 402, la firma y el reintento por ti: una llamada, un resultado.

Rust
// Cargo.toml: x402-reqwest = "0.6", x402-chain-eip155, alloy-signer-local, reqwest, tokio (features = ["full"])
use alloy_signer_local::PrivateKeySigner;
use reqwest::Client;
use std::sync::Arc;
use x402_chain_eip155::V2Eip155ExactClient;
use x402_reqwest::{ReqwestWithPayments, ReqwestWithPaymentsBuild, X402Client};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let signer: Arc<PrivateKeySigner> = Arc::new(std::env::var("EVM_PRIVATE_KEY")?.parse()?);
    let x402 = X402Client::new().register(V2Eip155ExactClient::new(signer));
    let http = Client::new().with_payments(x402).build();

    let res = http
        .post("https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address")
        .header("content-type", "application/json")
        .body(r#"{"address":"0x000000000000000000000000000000000000dEaD","chain":"ethereum"}"#)
        .send()
        .await?;
    println!("{} {}", res.status(), res.text().await?);
    Ok(())
}

Lo que hace entre bastidores el cliente x402 de tu agente (técnico, ilustrativo).

  1. 1

    Llamar al endpoint

    →
    POST https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address
    content-type: application/json
    
    {
      "address": "0x000000000000000000000000000000000000dEaD",
      "chain": "ethereum"
    }
    ←
    402 Payment Required
    HTTP/1.1 402 Payment Required
    PAYMENT-REQUIRED: <base64>
    
    {
      "x402Version": 2,
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "5000",
          "asset": "USDC",
          "payTo": "0x…"
        }
      ]
    }
  2. 2

    Firmar el pago (local)

    Tu wallet firma localmente una autorización USDC. Solo la firma sale de tu máquina.

    →
    wallet.sign(transferWithAuthorization,
      to: payTo, value: 5000 ($0.005 USDC), network: base)
    ←
    signature
    PAYMENT-SIGNATURE: <signed authorisation>
  3. 3

    Reintentar con la firma

    →
    POST https://api.17711.xyz/registry/address-risk-service/v1/address-risk/check_address
    PAYMENT-SIGNATURE: <signed authorisation>
    content-type: application/json
    
    {
      "address": "0x000000000000000000000000000000000000dEaD",
      "chain": "ethereum"
    }
    ←
    200 OK
    HTTP/1.1 200 OK
    PAYMENT-RESPONSE: <settlement receipt>
    
    { … the tool's JSON answer … }

El SDK de x402 hace los pasos 2 y 3 por ti.

Pruébalo en directo

Una llamada real a la API desde tu navegador, con las llamadas gratuitas incluidas en este servicio.

Definición OpenAPI

Definición OpenAPI · address_risk_check_address
openapi.json
{
  "operationId": "address_risk_check_address",
  "summary": "Wallet address risk check: is this address sanctioned, phishing or a scam? Sanctions, theft, mixer and blacklist flags before you send funds ($0.005, x402)",
  "description": "Screens a wallet or contract address before an agent sends it funds or interacts with it. Send the `address` and, optionally, the `chain` (base by default; ethereum, bsc, polygon, arbitrum, optimism and avalanche are supported). The answer is a verdict (`clear`, `caution`, `risky` or `dangerous`), a 0-100 safety score, whether the address is a wallet or a contract, and the flags raised, each with a severity and a stable code: sanctions lists, theft and attack, phishing, blackmail, cybercrime, financial crime, money laundering, dark-web transactions, mixers, fake KYC, honeypot-related and fake-token addresses, malicious contract creation, gas abuse and blacklist suspicion, with the reporting sources when known. The rules are fixed, so the same address gives the same answer: no language model is involved. A clear result means nothing was reported, not that the address is guaranteed safe, and it is never returned when the threat-report source is unavailable (the call then fails and is not charged). Costs $0.005 per call. Results are stored briefly and reused: the response says when the data was read (`retrieved_at`), how old it is (`age_seconds`) and whether it came from a stored result (`from_cache`); send `max_age_seconds` to choose the oldest result you accept, or 0 to force a fresh check. A call usually takes under 2 seconds. Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.005 USDC per call.",
  "x-price-usdc": "0.005",
  "x-payment-info": {
    "price": {
      "mode": "fixed",
      "currency": "USD",
      "amount": "0.005000"
    },
    "protocols": [
      {
        "x402": {}
      }
    ]
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string",
              "description": "The wallet or contract address to screen (`0x` followed by 40 hex characters)."
            },
            "chain": {
              "description": "The chain: `base` (default), `ethereum`, `bsc`, `polygon`, `arbitrum`, `optimism` or `avalanche`.",
              "type": [
                "string",
                "null"
              ]
            },
            "max_age_seconds": {
              "description": "The oldest result you accept, in seconds. Omit it for the default (up to 10 minutes old); `0` forces a fresh check. The response always says how old it is.",
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            }
          },
          "required": [
            "address"
          ]
        },
        "example": {
          "address": "string",
          "chain": "string",
          "max_age_seconds": 0
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Successful response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "chain": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "description": "`contract` or `wallet`."
              },
              "verdict": {
                "type": "string",
                "description": "`clear` (no known flag), `caution`, `risky` or `dangerous`. `clear` means no report was found, not that the address is guaranteed safe."
              },
              "safety_score": {
                "type": "integer",
                "minimum": 0,
                "description": "0 to 100, higher is safer; derived from the flags."
              },
              "flags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "severity": {
                      "type": "string",
                      "description": "`critical`, `high` or `medium`."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable code, e.g. `sanctioned`, `phishing`, `theft`, `mixer`, `blacklist_doubt`."
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "severity",
                    "code",
                    "message"
                  ]
                },
                "description": "Every flag raised, most severe first. Empty when the verdict is `clear`."
              },
              "reported_by": {
                "description": "Who reported the address, when the source says (e.g. `SlowMist,BlockSec`).",
                "type": [
                  "string",
                  "null"
                ]
              },
              "disclaimer": {
                "type": "string"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When the data was read (UTC)."
              },
              "age_seconds": {
                "type": "integer",
                "minimum": 0,
                "description": "How old this result is, in seconds (0 for a fresh check)."
              },
              "from_cache": {
                "type": "boolean",
                "description": "`true` when served from a stored result."
              }
            },
            "required": [
              "address",
              "chain",
              "kind",
              "verdict",
              "safety_score",
              "flags",
              "disclaimer",
              "retrieved_at",
              "age_seconds",
              "from_cache"
            ]
          },
          "example": {
            "address": "string",
            "chain": "string",
            "kind": "string",
            "verdict": "string",
            "safety_score": 0,
            "flags": [
              {
                "severity": "string",
                "code": "string",
                "message": "string"
              }
            ],
            "reported_by": "string",
            "disclaimer": "string",
            "retrieved_at": "string",
            "age_seconds": 0,
            "from_cache": false
          }
        }
      }
    },
    "402": {
      "description": "Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "description": "x402 v2 PaymentRequired challenge",
            "properties": {
              "x402Version": {
                "type": "integer"
              },
              "error": {
                "type": "string"
              },
              "resource": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string"
                  }
                }
              },
              "accepts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "scheme": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "string",
                      "description": "Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."
                    },
                    "asset": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "maxTimeoutSeconds": {
                      "type": "integer"
                    },
                    "extra": {
                      "type": "object"
                    }
                  }
                }
              }
            },
            "required": [
              "x402Version",
              "accepts"
            ]
          }
        }
      }
    },
    "default": {
      "description": "Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "description": "ErrorEnvelope"
          }
        }
      }
    }
  }
}

Servicios relacionados