public override async Task <BlockWithTransactions> ExecuteAsync(IClient client)
        {
            var ethGetBlockByHash = new EthGetBlockWithTransactionsByHash(client);

            return
                (await
                 ethGetBlockByHash.SendRequestAsync(Settings.GetBlockHash()));
        }
예제 #2
0
        public async Task <object> ExecuteTestAsync(IClient client)
        {
            var ethGetBlockByHash = new EthGetBlockWithTransactionsByHash(client);

            return
                (await
                 ethGetBlockByHash.SendRequestAsync(
                     "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"));
        }
 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);
 }
 public async Task<dynamic> ExecuteTestAsync(RpcClient client)
 {
     var ethGetBlockByHash = new EthGetBlockWithTransactionsByHash(client);
     return await ethGetBlockByHash.SendRequestAsync( "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331");
 }