Wallet Doctor is a pay-per-call HTTP API. There is no account and no API key: the agent requests an endpoint, receives HTTP 402 with the price, pays in USDC on Solana or Base via x402, and gets the JSON back. Calls that fail are not charged.
Wallet Doctor detailsx402 catalog| Request | Returns | USDC |
|---|---|---|
GET /v1/balance | Solana wallet balance: SOL and USDC | $0.0001 |
GET /v1/txtrace | Transaction trace: status, slot, fee, SOL balance changes, first 20 log lines | $0.0005 |
GET /v1/approvals | SPL token approvals: token accounts with an active delegate (SPL Token + Token-2022) | $0.0005 |
GET /v1/token_safety | Token mint safety: mint/freeze authority, supply, decimals; top-10 holder concentration when the public RPC allows it | $0.0010 |
GET /v1/drain_forensics | Wallet activity review: last 25 transactions with status, failed ones flagged, plus active token delegates | $0.0025 |
$ curl -i "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/balance?wallet=<address>"
HTTP/2 402
payment-required: <base64 JSON>
{"x402Version":2,"accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount":"100","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",...},
{"scheme":"exact","network":"eip155:8453","amount":"100",...}]}
Amounts are USDC base units with 6 decimals, so "100" is $0.0001. An x402 v2 client signs a payment that matches one entry in accepts and retries the request with the X-PAYMENT header. Settlement runs through the PayAI facilitator.
Wallet Doctor returns public on-chain data and third-party API data, which may be incomplete or delayed. It is information only, not financial or security advice.