Access to api/v2/smart-contracts/:address_hash
Access to api/v2/smart-contracts/:address_hash. Retrieve detailed information about a verified smart contract
2000 (raw units)
price
13
calls / 30d
2
unique payers
2026-09-14
updated
Provider
api.blockscout.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xd441D9F4c59CB26253E2F0A7a62ac9cE7823b4b4",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"pathParams": {
"address_hash_param": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chain_id": "8453"
},
"type": "http"
},
"output": {
"example": {
"abi": [
{}
],
"additional_sources": [
{
"file_path": "string",
"source_code": "string"
}
],
"can_be_visualized_via_sol2uml": true,
"certified": true,
"coin_balance": "string",
"compiler_settings": {},
"compiler_version": "string",
"conflicting_implementations": [
{
"implementations": [
{
"address_hash": "string",
"name": "string"
}
],
"proxy_type": "string"
}
],
"constructor_args": "string",
"creation_bytecode": "string",
"creation_status": "string",
"decoded_constructor_args": [
[
{}
]
],
"deployed_bytecode": "string",
"evm_version": "string",
"external_libraries": [
{
"address_hash": "string",
"name": "string"
}
],
"file_path": "string",
"github_repository_metadata": {},
"has_constructor_args": true,
"implementations": [
{
"address_hash": "string",
"name": "string"
}
],
"is_blueprint": true,
"is_changed_bytecode": true,
"is_fully_verified": true,
"is_partially_verified": true,
"is_verified": true,
"is_verified_via_eth_bytecode_db": true,
"is_verified_via_sourcify": true,
"is_verified_via_verifier_alliance": true,
"language": "string",
"license_type": "string",
"market_cap": "string",
"name": "string",
"optimization_enabled": true,
"optimization_runs": 0,
"package_name": "string",
"proxy_type": "string",
"reputation": "string",
"source_code": "string",
"sourcify_repo_url": "string",
"transactions_count": 0,
"verification_metadata": {},
"verified_at": "string",
"verified_twin_address_hash": "string"
},
"type": "json"
}
},
"routeTemplate": "/:chain_id/api/v2/smart-contracts/:address_hash_param",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"pathParams": {
"properties": {
"address_hash_param": {
"type": "string"
},
"chain_id": {
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.blockscout.com/:chain_id/api/v2/smart-contracts/:address_hash_param" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.blockscout.com/:chain_id/api/v2/smart-contracts/:address_hash_param");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.blockscout.com/:chain_id/api/v2/smart-contracts/:address_hash_param")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5396.json, and this resource appears in /discovery/resources and /discovery/search.