示例#1
0
        public ResultWrapper <Quantity> eth_newFilter(Filter filter)
        {
            var fromBlock = MapFilterBlock(filter.FromBlock);
            var toBlock   = MapFilterBlock(filter.ToBlock);
            int filterId  = _blockchainBridge.NewFilter(fromBlock, toBlock, filter.Address, filter.Topics);

            return(ResultWrapper <Quantity> .Success(new Quantity(filterId)));
        }
示例#2
0
        public ResultWrapper <IEnumerable <Log> > eth_getLogs(Filter filter)
        {
            var fromBlock = MapFilterBlock(filter.FromBlock);
            var toBlock   = MapFilterBlock(filter.ToBlock);

            return(ResultWrapper <IEnumerable <Log> > .Success(MapLogs(_blockchainBridge.GetLogs(fromBlock, toBlock,
                                                                                                 filter.Address,
                                                                                                 filter.Topics))));
        }