zonder
Version:
Ergonomic multi-chain indexing framework with dual runtime support for Ponder and Envio.
9 lines (8 loc) • 453 B
TypeScript
import type { Address, PublicClient } from 'viem';
/**
* Find the deployment block of a contract using binary search
* @param client - Viem public client
* @param contractAddress - The contract address to find deployment for
* @returns The block number where the contract was deployed, or null if not found
*/
export declare function findDeploymentBlock(client: PublicClient, contractAddress: Address, latestBlock: bigint): Promise<bigint | null>;