public Task <IEnumerable <int> > GetSpecificBlocks( bool?smartContracts, bool?delegatorContracts, OffsetParameter offset, [Range(0, 10000)] int limit = 10000) { var events = Data.Models.BlockEvents.None; if (smartContracts == true) { events |= Data.Models.BlockEvents.SmartContracts; } if (delegatorContracts == true) { events |= Data.Models.BlockEvents.DelegatorContracts; } return(Blocks.GetEventLevels(events, offset, limit)); }
public Task <IEnumerable <int> > GetSmartContractBlocks(OffsetParameter offset, [Range(0, 10000)] int limit = 10000) { return(Blocks.GetEventLevels(Data.Models.BlockEvents.SmartContracts, offset, limit)); }