public async Task <object> ExecuteTestAsync(IClient client) { var ethGetTransactionByBlockNumberAndIndex = new EthGetTransactionByBlockNumberAndIndex(client); return ((object) await ethGetTransactionByBlockNumberAndIndex.SendRequestAsync(new HexBigInteger(20), new HexBigInteger(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 override async Task <Transaction> ExecuteAsync(IClient client) { var ethGetTransactionByBlockNumberAndIndex = new EthGetTransactionByBlockNumberAndIndex(client); return(await ethGetTransactionByBlockNumberAndIndex.SendRequestAsync(new HexBigInteger(Settings.GetBlockNumber()), new HexBigInteger(0))); }
public async Task<dynamic> ExecuteTestAsync(RpcClient client) { var ethGetTransactionByBlockNumberAndIndex = new EthGetTransactionByBlockNumberAndIndex(client); return (object)await ethGetTransactionByBlockNumberAndIndex.SendRequestAsync( new HexBigInteger(20), new HexBigInteger(0)); }