x402 (machine-payable)

Token risk verdict, paid per call via x402

Machine-payable twin of the standard route for AI agents and bots: no key, no account, no signup. First call returns HTTP 402 with payment options (x402 protocol v1, USDC on Solana via an accountless facilitator); pay and retry with the X-PAYMENT header to receive the verdict. You are charged only when a verdict is actually returned: server errors are never charged, and a failed settlement withholds the response. Prices: see GET /v1/x402/pricing. The free tier (100/day/IP) and API keys remain the better deal for humans and steady integrations.

get/v1/x402/token-risk/{chain}/{address}

Request

  • Base URL: https://hostdefi.com/api
  • URL: https://hostdefi.com/api/v1/x402/token-risk/{chain}/{address}
  • Auth: none required

Path parameters

chainstring required

Chain id, e.g. solana, ethereum, bsc, base, arbitrum, optimism, polygon, avalanche.

addressstring required

Token contract address (Solana mint or 0x EVM address).

Response

Verdict. Settled payment is confirmed by the X-PAYMENT-RESPONSE header (base64 JSON: payer, transaction signature, network) and meta.x402.

oktrue

Changes

No recorded changes to this operation across all 1 revision of this API.