Check whether a Base mainnet address is a contract via eth_getCode
Check whether a Base mainnet address is a contract via eth_getCode - returns bytecode size, zero for an externally-owned account. No result, no charge.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
1073 msmedian answer time
$0.003listed price per call
$0.003price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402.agentindex.world/base/code
| Category | Code and developer |
|---|---|
| Provider host | x402.agentindex.world |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.003 | 1019 ms |
| 2026-11-25 | valid payment request | 402 | $0.003 | 1073 ms |
| 2026-11-24 | valid payment request | 402 | $0.003 | 1293 ms |
| 2026-11-23 | valid payment request | 402 | $0.003 | 1179 ms |
| 2026-11-22 | valid payment request | 402 | $0.003 | 1049 ms |
| 2026-11-21 | valid payment request | 402 | $0.003 | 1454 ms |
| 2026-11-20 | valid payment request | 402 | $0.003 | 922 ms |
| 2026-11-19 | valid payment request | 402 | $0.003 | 988 ms |
| 2026-11-18 | valid payment request | 402 | $0.003 | 1003 ms |
| 2026-11-17 | valid payment request | 402 | $0.003 | 2308 ms |
| 2026-11-16 | valid payment request | 402 | $0.003 | 897 ms |
| 2026-11-15 | valid payment request | 402 | $0.003 | 2783 ms |
| 2026-11-14 | valid payment request | 402 | $0.003 | 915 ms |
| 2026-11-13 | valid payment request | 402 | $0.003 | 942 ms |
| 2026-11-06 | valid payment request | 402 | $0.003 | 894 ms |
| 2026-11-05 | valid payment request | 402 | $0.003 | 863 ms |
| 2026-11-04 | valid payment request | 402 | $0.003 | 916 ms |
| 2026-11-03 | valid payment request | 402 | $0.003 | 958 ms |
| 2026-11-02 | valid payment request | 402 | $0.003 | 866 ms |
| 2026-11-01 | valid payment request | 402 | $0.003 | 895 ms |
| 2026-10-31 | valid payment request | 402 | $0.003 | 1250 ms |
| 2026-10-29 | valid payment request | 402 | $0.003 | 901 ms |
Example input (from the provider)
{
"body": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"address": {
"title": "Address",
"type": "string"
}
},
"required": [
"address"
],
"title": "AddressInput",
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"address": {
"title": "Address",
"type": "string"
},
"bytecode_size": {
"title": "Bytecode Size",
"type": "integer"
},
"is_contract": {
"title": "Is Contract",
"type": "boolean"
}
},
"required": [
"address",
"is_contract",
"bytecode_size"
],
"title": "CodeOutput",
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}