Check if an Ethereum address is a contract via eth_getCode
Check if an Ethereum address is a contract via eth_getCode - returns deployed bytecode
Answeringour last check, 2026-09-24
1 of 1checks answered this week
789 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
GET https://api.onesource.io/api/chain/code/:address
| Category | Code and developer |
|---|---|
| Provider host | api.onesource.io |
| Networks | eip155:8453 |
| Payment schemes | batch-settlement, exact |
| Self-reported calls, 30 days | 370 from 367 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.003 | 789 ms |
Example input (from the provider)
{
"method": "GET",
"pathParams": {
"address": "0x6cf19308c22fc82ea620fa0b3e94948d20f27b96"
},
"queryParams": {
"network": "ethereum"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"pathParams": {
"properties": {
"address": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
},
"queryParams": {
"properties": {
"network": {
"default": "ethereum",
"enum": [
"ethereum",
"sepolia",
"robinhood"
],
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"description": "Endpoint-specific response payload",
"properties": {
"address": {
"type": "string"
},
"code": {
"type": "string"
},
"code_length": {
"type": "integer"
},
"is_contract": {
"type": "boolean"
}
},
"type": "object"
},
"error": {
"properties": {
"code": {
"type": "integer"
},
"message": {
"type": "string"
}
},
"type": [
"object",
"null"
]
},
"meta": {
"properties": {
"cost_usdc": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"payment_chain": {
"type": "string"
},
"payment_token": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"endpoint",
"request_id"
],
"type": "object"
}
},
"required": [
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}