Package org.stellar.sdk.requests
package org.stellar.sdk.requests
Provides request builder classes for the Horizon API.
Each builder class corresponds to a Horizon REST endpoint and allows setting query parameters
(cursor, limit, order, filters) before executing the request. Common base functionality such as
pagination parameters is provided by RequestBuilder.
Builders that support Server-Sent Events (SSE) streaming expose a stream() method for
real-time event subscription. Streaming maintains a persistent connection and automatically
reconnects on failure.
Request builders are obtained from the Server entry point. For
example:
Server server = new Server("https://horizon.stellar.org");
Page<TransactionResponse> page = server.transactions()
.forAccount("G...")
.limit(10)
.order(RequestBuilder.Order.DESC)
.execute();
- See Also:
-
ClassDescriptionBuilds requests to the Horizon
/accountsendpoint.Builds requests to the Horizon/assetsendpoint.Builds requests connected to claimable balances.An OkHttpInterceptorthat adds client identification headers to every outgoing HTTP request.Builds requests connected to effects.This interface is used inRequestBuilderclassesstreammethod.Builds requests to the Horizon/fee_statsendpoint.Builds requests to the Horizon/ledgersendpoint.Builds requests to the Horizon/liquidity_poolsendpoint.Builds requests to the Horizon/offersendpoint.Builds requests to the Horizon/operationsendpoint.Builds requests to the Horizon/order_bookendpoint.Builds requests to the Horizon/paymentsendpoint.Abstract class for request builders.Represents possibleorderparameter values.Handles HTTP responses and converts them into typed Java objects.Builds requests connected to root.Implements Server-Sent Events (SSE) streaming from a Horizon endpoint.Builds requests to the Horizon/paths/strict-receiveendpoint.Builds requests to the Horizon/paths/strict-sendendpoint.Builds requests connected to trades.Builds requests to the Horizon/tradesendpoint.Builds requests to the Horizon/transactionsendpoint.