Skip to main content

Get the contract code at a specific address

GET 

/:network/contract/code

Get the contract code at a specific address

Request

Path Parameters

    network stringrequired

    Blockchain network name or chain id

Query Parameters

    block_height number

    Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.

    date string

    Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.

    contract_address stringrequired

    Address of the contract

    projectId stringrequired

    The id of your project. Can be found in your Histori dashboard.

Responses

Contract code fetched successfully.

Schema

    network stringrequired

    Name of the blockchain network

    chain_id numberrequired

    Chain ID of the blockchain network

    contract_address stringrequired

    Address of the contract

    code stringrequired

    Bytecode of the contract deployed at the given address

Loading...