subscribe
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Subscribe to real-time updates for various types of data in the XRP Ledger. This method establishes a subscription to receive streaming data such as transactions, ledger closes, order book changes, and more.
Body
Subscribe to real-time updates for various types of data in the XRP Ledger. This method establishes a subscription to receive streaming data such as transactions, ledger closes, order book changes, and more.
JSON-RPC request payload.
idstringOptional unique identifier for the subscription request.
commandstringsubscriberequiredThe command name
booksArray<object>requiredArray of order book specifications to subscribe to.
methodstringsubscribeJSON-RPC method name.
paramsarrayOrdered JSON-RPC method parameters.
Response
HTTP 200 response for subscribe. The body contains either a successful result or a method-level JSON-RPC error.
Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error. The gateway or node failed while processing the request.