Exemple #1
0
        public NewFilterInput CreateFilterInput(BlockParameter fromBlock = null, BlockParameter toBlock = null)
        {
            var ethFilterInput = _contract.GetDefaultFilterInput(fromBlock, toBlock);

            ethFilterInput.Topics = _eventTopicBuilder.GetSignatureTopic();
            return(ethFilterInput);
        }
Exemple #2
0
        public static NewFilterInput CreateFilterInput(this EventABI eventABI, string[] contractAddress, BlockParameter fromBlock = null, BlockParameter toBlock = null)
        {
            var eventTopicBuilder = new EventTopicBuilder(eventABI);
            var ethFilterInput    = FilterInputBuilder.GetDefaultFilterInput(contractAddress, fromBlock, toBlock);

            ethFilterInput.Topics = eventTopicBuilder.GetSignatureTopic();
            return(ethFilterInput);
        }