{"slug":"api-onesource-io-api-chain-code-address-6e84bb","title":"Check if an Ethereum address is a contract via eth_getCode","host":"api.onesource.io","method":"GET","resource":"https://api.onesource.io/api/chain/code/:address","category":"code","description":"Check if an Ethereum address is a contract via eth_getCode - returns deployed bytecode","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":789,"reported_calls_30d":370,"reported_payers_30d":367,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","pathParams":{"address":"0x6cf19308c22fc82ea620fa0b3e94948d20f27b96"},"queryParams":{"network":"ethereum"},"type":"http"},"output_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":{"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"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":789,"error":null}],"description_full":"Check if an Ethereum address is a contract via eth_getCode - returns deployed bytecode","last_updated":"2026-09-24T15:49:59.693Z","schemes":["batch-settlement","exact"]}