OptionalaccountsArray with the unique addresses of accounts to monitor for validated transactions. The addresses must be in the XRP Ledger's base58 format. The server sends a notification for any transaction that affects at least one of these accounts.
Optionalaccounts_Like accounts, but include transactions that are not yet finalized.
Optionalapi_The API version to use. If omitted, use version 1.
OptionalbooksArray of objects defining order books to monitor for updates, as detailed Below.
The name of the API method.
OptionalidA unique value to identify this request. The response to this request uses the same id field. This way, even if responses arrive out of order, you know which request prompted which response.
OptionalstreamsArray of string names of generic streams to subscribe to.
OptionalurlURL where the server sends a JSON-RPC callbacks for each event. Admin-only.
Optionalurl_Password to provide for basic authentication at the callback URL.
Optionalurl_Username to provide for basic authentication at the callback URL.
The subscribe method requests periodic notifications from the server when certain events happen. Expects a response in the form of a SubscribeResponse.