public ContractLogs(Etherscan.Client apiClient, string address, uint fromBlock, uint maxBlock) { this.fromBlock = fromBlock; this.maxBlock = maxBlock; this.address = address; this.apiClient = apiClient; }
public EthContracts(Etherscan.Client apiClient, bool testnet, uint lastBlock) { _lastBlock = lastBlock; _apiClient = apiClient; ethBtcContract = testnet ? "0x80449a756D5aCe9b221E2f7f61d94941f876d18a" : "0x81A679f98b63B3dDf2F17CB5619f4d6775b3c5ED"; }
public EthereumWorker(EthereumWorkerOptions options, IServiceScopeFactory scopeFactory, ILogger <EthereumWorker> logger, ILoggerFactory loggerFactory) { _options = options; _scopeFactory = scopeFactory; _logger = logger; _loggerFactory = loggerFactory; _apiClient = new Etherscan.Client(_options.ApiUrl); }