token_verdict_get_verdict
Token safety verdict: honeypot and rug-pull check with taxes, liquidity, admin powers and holders for a token address
- Prijs
- $0.01 USDC · per aanroep
- Dienst
- Token verdict
- Categorie
- Risicoscreening
- Endpoint
POST /v1/token-verdict/get_verdict
Safety verdict for a token before an agent buys it. Send the token contract `address` and, optionally, the `chain` (base by default; ethereum, bsc, polygon, arbitrum, optimism and avalanche are supported). The answer is a verdict (`safe`, `caution`, `danger`, or `unknown` when the security data is unavailable, which is never a green light), a 0-100 safety score and the findings that drove it, each with a severity and a stable code. It checks: honeypot behaviour and buy and sell taxes; whether the contract admin can mint, pause transfers, block addresses, change taxes, reclaim control or hide behind a proxy; whether the source code is verified; liquidity in USD across pools, how much of it is locked and how old the pools are; holder count and concentration (creator, admin, ten largest wallets); price, fully diluted value, 24-hour volume and trades. The rules are fixed and published in the findings, so the same token gives the same verdict: no language model is involved. This is an automated risk screen, not financial advice. A token that is not found is not charged. Costs $0.01 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 verdict you accept, or 0 to force a fresh check. A call usually takes 1 to 3 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.01 USDC per call.
Parameters
address | string · verplicht | The token contract address (`0x` followed by 40 hex characters). |
|---|---|---|
chain | string · optioneel | The chain: `base` (default), `ethereum`, `bsc`, `polygon`, `arbitrum`, `optimism` or `avalanche`. |
max_age_seconds | integer · optioneel | The oldest verdict you accept, in seconds. Omit it for the default (verdicts up to 5 minutes old); `0` forces a fresh check. The response always says how old it is. |
Voorbeeldverzoek
Wat je agent verstuurt
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"chain": "ethereum"
}Kale curl stopt bij de 402-challenge: voeg een x402-client toe (tabs Node.js of Python) om automatisch te betalen.
# Kale curl stopt bij de 402-challenge: voeg een x402-client toe (tabs Node.js of Python) om automatisch te betalen.
curl -X POST 'https://api.17711.xyz/registry/token-verdict-service/v1/token-verdict/get_verdict' \
-H 'content-type: application/json' \
-d '{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","chain":"ethereum"}'De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
// 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/token-verdict-service/v1/token-verdict/get_verdict", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","chain":"ethereum"}),
});
console.log(await res.json());De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
# 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/token-verdict-service/v1/token-verdict/get_verdict", json={"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","chain":"ethereum"})
await response.aread()
print(response.json())
asyncio.run(main())De Java-referentieclient uit de officiële x402-repository. Er is nog geen gepubliceerde Java-SDK: de handtekening lever je zelf (bijv. met web3j).
// 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(10000); // $0.01 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/token-verdict-service/v1/token-verdict/get_verdict"), amount, usdcOnBase, payTo);
System.out.println(response.body());
}
}De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
// 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/token-verdict-service/v1/token-verdict/get_verdict", strings.NewReader(`{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","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))
}De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
// 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/token-verdict-service/v1/token-verdict/get_verdict")
.header("content-type", "application/json")
.body(r#"{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","chain":"ethereum"}"#)
.send()
.await?;
println!("{} {}", res.status(), res.text().await?);
Ok(())
}Wat de x402-client van je agent achter de schermen doet (technisch, ter illustratie).
- 1
Endpoint aanroepen
→POST https://api.17711.xyz/registry/token-verdict-service/v1/token-verdict/get_verdict content-type: application/json { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "chain": "ethereum" }←402 Payment RequiredHTTP/1.1 402 Payment Required PAYMENT-REQUIRED: <base64> { "x402Version": 2, "accepts": [ { "scheme": "exact", "network": "eip155:8453", "amount": "10000", "asset": "USDC", "payTo": "0x…" } ] } - 2
Betaling ondertekenen (lokaal)
Je wallet ondertekent lokaal een USDC-machtiging. Alleen de handtekening verlaat je machine.
→wallet.sign(transferWithAuthorization, to: payTo, value: 10000 ($0.01 USDC), network: base)←signaturePAYMENT-SIGNATURE: <signed authorisation> - 3
Opnieuw met de handtekening
→POST https://api.17711.xyz/registry/token-verdict-service/v1/token-verdict/get_verdict PAYMENT-SIGNATURE: <signed authorisation> content-type: application/json { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "chain": "ethereum" }←200 OKHTTP/1.1 200 OK PAYMENT-RESPONSE: <settlement receipt> { … the tool's JSON answer … }
De x402-SDK doet stap 2 en 3 voor je.
OpenAPI-definitie
OpenAPI-definitie · token_verdict_get_verdict
{
"operationId": "token_verdict_get_verdict",
"summary": "Token safety verdict: honeypot and rug-pull check with taxes, liquidity, admin powers and holders for a token address ($0.01, x402)",
"description": "Safety verdict for a token before an agent buys it. Send the token contract `address` and, optionally, the `chain` (base by default; ethereum, bsc, polygon, arbitrum, optimism and avalanche are supported). The answer is a verdict (`safe`, `caution`, `danger`, or `unknown` when the security data is unavailable, which is never a green light), a 0-100 safety score and the findings that drove it, each with a severity and a stable code. It checks: honeypot behaviour and buy and sell taxes; whether the contract admin can mint, pause transfers, block addresses, change taxes, reclaim control or hide behind a proxy; whether the source code is verified; liquidity in USD across pools, how much of it is locked and how old the pools are; holder count and concentration (creator, admin, ten largest wallets); price, fully diluted value, 24-hour volume and trades. The rules are fixed and published in the findings, so the same token gives the same verdict: no language model is involved. This is an automated risk screen, not financial advice. A token that is not found is not charged. Costs $0.01 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 verdict you accept, or 0 to force a fresh check. A call usually takes 1 to 3 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.01 USDC per call.",
"x-price-usdc": "0.01",
"x-payment-info": {
"price": {
"mode": "fixed",
"currency": "USD",
"amount": "0.010000"
},
"protocols": [
{
"x402": {}
}
]
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "The token contract address (`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 verdict you accept, in seconds. Omit it for the default (verdicts up to 5 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"
},
"name": {
"type": [
"string",
"null"
]
},
"symbol": {
"type": [
"string",
"null"
]
},
"verdict": {
"type": "string",
"description": "`safe`, `caution`, `danger` or `unknown` (the security source did not answer: not a green light)."
},
"safety_score": {
"type": "integer",
"minimum": 0,
"description": "0 to 100, higher is safer; derived from the findings."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"severity": {
"type": "string",
"description": "`critical`, `high`, `medium`, `low` or `info`."
},
"code": {
"type": "string",
"description": "Stable machine-readable code, e.g. `tls.expired`, `mail.dmarc_absent`, `http.hsts_missing`."
},
"message": {
"type": "string",
"description": "What was observed and why it matters, in one sentence."
}
},
"required": [
"severity",
"code",
"message"
]
},
"description": "Everything that drove the verdict, most severe first."
},
"contract": {
"type": "object",
"properties": {
"source_verified": {
"description": "Whether the source code is published and verified.",
"type": [
"boolean",
"null"
]
},
"proxy": {
"description": "Whether it is an upgradeable proxy (the logic can be replaced).",
"type": [
"boolean",
"null"
]
},
"mintable": {
"description": "Whether new tokens can be minted.",
"type": [
"boolean",
"null"
]
},
"owner": {
"description": "Owner address, absent when ownership is renounced.",
"type": [
"string",
"null"
]
},
"ownership_renounced": {
"type": "boolean"
},
"owner_can_reclaim": {
"description": "Whether a previous owner can take ownership back.",
"type": [
"boolean",
"null"
]
},
"hidden_owner": {
"description": "Whether the real owner is hidden.",
"type": [
"boolean",
"null"
]
},
"pausable": {
"description": "Whether transfers can be paused.",
"type": [
"boolean",
"null"
]
},
"blacklist": {
"description": "Whether the contract can block addresses.",
"type": [
"boolean",
"null"
]
},
"self_destruct": {
"description": "Whether the contract can self-destruct.",
"type": [
"boolean",
"null"
]
},
"taxes_modifiable": {
"description": "Whether the owner can change the taxes after launch.",
"type": [
"boolean",
"null"
]
}
},
"required": [
"ownership_renounced"
]
},
"trading": {
"type": "object",
"properties": {
"honeypot": {
"description": "Whether the token cannot be sold after being bought.",
"type": [
"boolean",
"null"
]
},
"buy_tax_percent": {
"description": "Buy tax in percent.",
"type": [
"number",
"null"
]
},
"sell_tax_percent": {
"description": "Sell tax in percent.",
"type": [
"number",
"null"
]
},
"cannot_sell_all": {
"description": "Whether a holder cannot sell their whole balance.",
"type": [
"boolean",
"null"
]
}
}
},
"liquidity": {
"type": "object",
"properties": {
"total_usd": {
"type": "number",
"description": "Liquidity in USD summed over the trading pools."
},
"pools": {
"type": "integer",
"minimum": 0
},
"top_pool": {
"description": "Largest pool: exchange name.",
"type": [
"string",
"null"
]
},
"locked_percent": {
"description": "Share of the liquidity-token supply that is locked, in percent.",
"type": [
"number",
"null"
]
},
"pool_age_days": {
"description": "Age in days of the oldest trading pool.",
"type": [
"number",
"null"
]
}
},
"required": [
"total_usd",
"pools"
]
},
"market": {
"type": "object",
"properties": {
"price_usd": {
"type": [
"number",
"null"
]
},
"fully_diluted_value_usd": {
"type": [
"number",
"null"
]
},
"volume_24h_usd": {
"type": "number"
},
"price_change_24h_percent": {
"type": [
"number",
"null"
]
},
"buys_24h": {
"type": "integer",
"minimum": 0
},
"sells_24h": {
"type": "integer",
"minimum": 0
}
},
"required": [
"volume_24h_usd",
"buys_24h",
"sells_24h"
]
},
"holders": {
"type": "object",
"properties": {
"count": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"creator_percent": {
"description": "Share of the supply held by the creator, in percent.",
"type": [
"number",
"null"
]
},
"owner_percent": {
"description": "Share of the supply held by the owner, in percent.",
"type": [
"number",
"null"
]
},
"top10_wallets_percent": {
"description": "Share held by the ten largest wallets that are not contracts, in percent.",
"type": [
"number",
"null"
]
}
}
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The data sources consulted."
},
"disclaimer": {
"type": "string",
"description": "Always states that this is an automated risk screen, not advice."
},
"retrieved_at": {
"type": "string",
"description": "When the data was read (UTC)."
},
"age_seconds": {
"type": "integer",
"minimum": 0,
"description": "How old this verdict is, in seconds (0 for a fresh check)."
},
"from_cache": {
"type": "boolean",
"description": "`true` when served from a stored result."
}
},
"required": [
"address",
"chain",
"verdict",
"safety_score",
"findings",
"contract",
"trading",
"liquidity",
"market",
"holders",
"sources",
"disclaimer",
"retrieved_at",
"age_seconds",
"from_cache"
]
},
"example": {
"address": "string",
"chain": "string",
"name": "string",
"symbol": "string",
"verdict": "string",
"safety_score": 0,
"findings": [
{
"severity": "string",
"code": "string",
"message": "string"
}
],
"contract": {
"source_verified": false,
"proxy": false,
"mintable": false,
"owner": "string",
"ownership_renounced": false,
"owner_can_reclaim": false,
"hidden_owner": false,
"pausable": false,
"blacklist": false,
"self_destruct": false,
"taxes_modifiable": false
},
"trading": {
"honeypot": false,
"buy_tax_percent": 0,
"sell_tax_percent": 0,
"cannot_sell_all": false
},
"liquidity": {
"total_usd": 0,
"pools": 0,
"top_pool": "string",
"locked_percent": 0,
"pool_age_days": 0
},
"market": {
"price_usd": 0,
"fully_diluted_value_usd": 0,
"volume_24h_usd": 0,
"price_change_24h_percent": 0,
"buys_24h": 0,
"sells_24h": 0
},
"holders": {
"count": 0,
"creator_percent": 0,
"owner_percent": 0,
"top10_wallets_percent": 0
},
"sources": [
"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"
}
}
}
}
}
}