ToolAssay

Retrieve the bytecode of a smart contract on Base Mainnet at a specific address

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

Answeringour last check, 2026-11-26
3 of 3checks answered this week
314 msmedian answer time
$0.002listed price per call
$0.002price 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://www.brainiac.software/api/v1/chain-data/contract/code

CategoryCode and developer
Provider hostwww.brainiac.software
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.002 730 ms
2026-11-25 valid payment request 402$0.002 314 ms
2026-11-24 valid payment request 402$0.002 313 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": {
          "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"
}

This page as JSON