fetch_contract_deployment_block

Documentation for eth_defi.tokenised_fund.asseto.backfill.fetch_contract_deployment_block function.

fetch_contract_deployment_block(web3, address, end_block)

Find the first block containing runtime code for an Asseto token.

Parameters
  • web3 (web3.main.Web3) – Archive-capable connection for the product chain.

  • address (eth_typing.evm.HexAddress) – Asseto ERC-20 token address.

  • end_block (int) – Highest block that may be checked.

Returns

First block containing contract code.

Raises

ValueError – If the public registry address has no contract code on this chain.

Return type

int