Esempio n. 1
0
        public async Task <object> ExecuteTestAsync(IClient client)
        {
            var ethGetTransactionByBlockHashAndIndex = new EthGetTransactionByBlockHashAndIndex(client);

            return
                ((object)
                 await
                 ethGetTransactionByBlockHashAndIndex.SendRequestAsync(
                     "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331", 0));
        }
 public EthApiTransactionsService(IClient client) : base(client)
 {
     Call        = new EthCall(client);
     EstimateGas = new EthEstimateGas(client);
     GetTransactionByBlockHashAndIndex   = new EthGetTransactionByBlockHashAndIndex(client);
     GetTransactionByBlockNumberAndIndex = new EthGetTransactionByBlockNumberAndIndex(client);
     GetTransactionByHash  = new EthGetTransactionByHash(client);
     GetTransactionCount   = new EthGetTransactionCount(client);
     GetTransactionReceipt = new EthGetTransactionReceipt(client);
     SendRawTransaction    = new EthSendRawTransaction(client);
     SendTransaction       = new EthSendTransaction(client);
 }
 public EthTransactionsService(IClient client) : base(client)
 {
     Call = new EthCall(client);
     EstimateGas = new EthEstimateGas(client);
     GetTransactionByBlockHashAndIndex = new EthGetTransactionByBlockHashAndIndex(client);
     GetTransactionByBlockNumberAndIndex = new EthGetTransactionByBlockNumberAndIndex(client);
     GetTransactionByHash = new EthGetTransactionByHash(client);
     GetTransactionCount = new EthGetTransactionCount(client);
     GetTransactionReceipt = new EthGetTransactionReceipt(client);
     SendRawTransaction = new EthSendRawTransaction(client);
     SendTransaction = new EthSendTransaction(client);
 }
 public async Task<dynamic> ExecuteTestAsync(RpcClient client)
 {
     var ethGetTransactionByBlockHashAndIndex = new EthGetTransactionByBlockHashAndIndex(client);
     return (object)await ethGetTransactionByBlockHashAndIndex.SendRequestAsync( "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331", 0);
 }
Esempio n. 5
0
        public override async Task <Transaction> ExecuteAsync(IClient client)
        {
            var ethGetTransactionByBlockHashAndIndex = new EthGetTransactionByBlockHashAndIndex(client);

            return(await ethGetTransactionByBlockHashAndIndex.SendRequestAsync(Settings.GetBlockHash(), new HexBigInteger(0)));
        }