x402 (machine-payable)

Token risk verdict by free-form query, 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.

post/v1/x402/token-risk

Request

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

Request body

querystring

A token contract address, or a name/ticker (resolved to the deepest-liquidity match). address is accepted as an alias.

addressstring

Alias for query.

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.