Function getContractAddressByChainIdAndContractName

  • Retrieves a contract address for a specific chain ID and contract name.

    Parameters

    • chainId: number

      The numeric identifier of the blockchain network

    • contractName: keyof ContractAddresses

      The name of the contract to look up

    Returns string | undefined

    The contract address if found, undefined otherwise

    const address = getContractAddressByChainIdAndContractName(1, 'KeeperRegistry');