the402 endpoint detail

← All endpoints

api.agentstools.dev code

https://api.agentstools.dev/code

answers 402

Is an address a contract or an EOA on Base, Ethereum, Arbitrum, Optimism, Polygon or BNB (default Base)? Returns is_contract, deployed code size in bytes, and the keccak256 code hash (eth_getCode).

We sent a real GET request to this endpoint and it answered 402 with payment requirements we could parse.
Price
$0.003
Network
base
Pay to
0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493
Spec dialect
v2 (declares x402Version 2)
Transport
PAYMENT-REQUIRED header
HTTP method
GET
Response latency
161 ms
Payment options
1 usable of 1
Last checked
2026-09-06T01:17:01.802Z (2h ago)
Category
other

Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fapi.agentstools.dev%2Fcode"