teckel Ethereum icon

teckel Ethereum

Query the Ethereum blockchain via the teckel platform

Get Code

AI-generated

Summary

Retrieves the execution bytecode of an Ethereum contract at a specified address.

Inputs

  • network — Ethereum network to query (mainnet or sepolia). Defaults to mainnet.
  • block — Block number (integer) or identifier (latest, earliest, pending, safe, finalized). Defaults to latest.
  • address (required) — Ethereum address (0x-prefixed hex) to query.

Output shape

A list of items, each containing the raw response data (JSON) from the teckel Ethereum API.

The response typically indicates whether an address contains a contract (non-empty bytecode).

Examples

Example 1: Check if an address is a contract

Set operation to 'Get Code', provide address, and inspect if the returned data is empty (external account) or non-empty (contract).

Example 2: Retrieve bytecode for verification

Use 'Get Code' on a specific address and block number to fetch the compiled bytecode for analysis.

Links

Discussion