public override async Task <BlockWithTransactions> ExecuteAsync(IClient client) { var ethGetBlockByHash = new EthGetBlockWithTransactionsByHash(client); return (await ethGetBlockByHash.SendRequestAsync(Settings.GetBlockHash())); }
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); }
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"); }