TransactionsRequestBuilder extends RequestBuilder { public TransactionsRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "transactions"); return this; } TransactionsRequestBuilder(OkHttpClient httpClient, URI serverURI); TransactionResponse transaction(URI uri); TransactionResponse transaction(String transactionId); TransactionsRequestBuilder forAccount(KeyPair account); TransactionsRequestBuilder forLedger(long ledgerSeq); static Page<TransactionResponse> execute(OkHttpClient httpClient, URI uri); @Override ServerSentEvent stream(EventListener<ListenerType> listener); Page<TransactionResponse> execute(); @Override TransactionsRequestBuilder cursor(String token); @Override TransactionsRequestBuilder limit(int number); @Override TransactionsRequestBuilder order(Order direction);  }
@Test public void testForAccount() { Server server = new Server("https: URI uri = server.transactions() .forAccount(KeyPair.fromAccountId("GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H")) .limit(200) .order(RequestBuilder.Order.DESC) .buildUri(); assertEquals("https: }