{"slug":"www-brainiac-software-api-v1-chain-data-contract-code-6e29e1","title":"Retrieve the bytecode of a smart contract on Base Mainnet at a specific address ","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/chain-data/contract/code","category":"code","description":"Retrieve the bytecode of a smart contract on Base Mainnet at a specific address and optional block number. Docs: https://www.brainiac.software/api/chain-data/contract-code","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":3,"answered_7d":3,"latency_ms_median":314,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"address":{"description":"On-chain address. 0x-prefixed 40-hex address.","example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","pattern":"^0x[0-9a-fA-F]{40}$","type":"string"},"blockNumber":{"description":"block Number supplied by the caller for this operation.","maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["address"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"address":{"description":"address returned by this operation.","type":"string"},"chainId":{"description":"EVM chain id used for this check.","type":"integer"},"code":{"description":"code returned by this operation.","type":"string"},"retrievedAt":{"description":"ISO-8601 timestamp when upstream data was retrieved.","type":"string"},"source":{"additionalProperties":true,"description":"Named upstream source for this delayed reference series.","properties":{"status":{"description":"Coverage status: complete or partial with real data is charged on HTTP 2xx; failed or empty payloads return non-2xx and are not charged.","type":"string"},"url":{"description":"Requested public URL.","type":"string"}},"type":"object"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":730,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":314,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":313,"error":null}],"description_full":"Retrieve the bytecode of a smart contract on Base Mainnet at a specific address and optional block number. Docs: https://www.brainiac.software/api/chain-data/contract-code","last_updated":"2026-11-24T14:42:38.464Z","schemes":["exact"]}