示例#1
0
 public IbftApiService(IClient client) : base(client)
 {
     DiscardValidatorVote       = new IbftDiscardValidatorVote(client);
     GetValidatorsByBlockHash   = new IbftGetValidatorsByBlockHash(client);
     GetPendingVotes            = new IbftGetPendingVotes(client);
     GetValidatorsByBlockNumber = new IbftGetValidatorsByBlockNumber(client);
     ProposeValidatorVote       = new IbftProposeValidatorVote(client);
 }
        public override async Task <string[]> ExecuteAsync(IClient client)
        {
            var ibftGetValidatorsByBlockNumber = new IbftGetValidatorsByBlockNumber(client);

            return(await ibftGetValidatorsByBlockNumber.SendRequestAsync(BlockParameter.CreateLatest()));
        }