コード例 #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);
 }
コード例 #2
0
        public override async Task <string[]> ExecuteAsync(IClient client)
        {
            var ibftGetValidatorsByBlockHash = new IbftGetValidatorsByBlockHash(client);

            return(await ibftGetValidatorsByBlockHash.SendRequestAsync(Settings.GetBlockHash()));
        }