コード例 #1
0
        public override async Task <HexBigInteger> ExecuteAsync(IClient client)
        {
            var ethGetBlockTransactionCountByHash = new EthGetBlockTransactionCountByHash(client);

            return
                (await
                 ethGetBlockTransactionCountByHash.SendRequestAsync(Settings.GetBlockHash()));
        }
コード例 #2
0
        public async Task <dynamic> ExecuteTestAsync(RpcClient client)
        {
            var ethGetBlockTransactionCountByHash = new EthGetBlockTransactionCountByHash(client);

            return
                (await
                 ethGetBlockTransactionCountByHash.SendRequestAsync(
                     "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"));
        }
コード例 #3
0
 public EthApiBlockService(IClient client) : base(client)
 {
     GetBlockNumber = new EthBlockNumber(client);
     GetBlockTransactionCountByHash         = new EthGetBlockTransactionCountByHash(client);
     GetBlockTransactionCountByNumber       = new EthGetBlockTransactionCountByNumber(client);
     GetBlockWithTransactionsByHash         = new EthGetBlockWithTransactionsByHash(client);
     GetBlockWithTransactionsByNumber       = new EthGetBlockWithTransactionsByNumber(client);
     GetBlockWithTransactionsHashesByHash   = new EthGetBlockWithTransactionsHashesByHash(client);
     GetBlockWithTransactionsHashesByNumber = new EthGetBlockWithTransactionsHashesByNumber(client);
 }
コード例 #4
0
 public EthBlockService(RpcClient client) : base(client)
 {
     GetBlockNumber = new EthBlockNumber(client);
     GetBlockTransactionCountByHash = new EthGetBlockTransactionCountByHash(client);
     GetBlockTransactionCountByNumber = new EthGetBlockTransactionCountByNumber(client);
     GetBlockWithTransactionsByHash = new EthGetBlockWithTransactionsByHash(client);
     GetBlockWithTransactionsByNumber = new EthGetBlockWithTransactionsByNumber(client);
     GetBlockWithTransactionsHashesByHash = new EthGetBlockWithTransactionsHashesByHash(client);
     GetBlockWithTransactionsHashesByNumber = new EthGetBlockWithTransactionsHashesByNumber(client);
 }
コード例 #5
0
 public async Task<dynamic> ExecuteTestAsync(RpcClient client)
 {
     var ethGetBlockTransactionCountByHash = new EthGetBlockTransactionCountByHash(client);
     return await ethGetBlockTransactionCountByHash.SendRequestAsync( "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238");
 }