n9t2_xrpl_subscribe
Open a bounded native XRPL WebSocket subscription and capture live events for selected streams, accounts, proposed transactions, or order books. Use this when an agent needs event-driven updates instead of a one-time snapshot. The tool sends the XRPL subscribe command, collects events until duration_seconds expires or max_events is reached, then closes the connection and returns the subscription acknowledgement plus captured events. When subscription inputs are omitted, the default is the ledger stream for 3 seconds with up to 25 events. This is read-only: it does not submit transactions or modify ledger state. Do not request the admin-only peer_status stream unless the upstream XRPL server permits it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| books | No | Optional list of XRPL order-book subscription descriptors. | |
| streams | No | Optional XRPL stream names such as ledger or transactions. | |
| accounts | No | Optional list of XRPL classic account addresses whose activity should be streamed. | |
| max_events | No | Maximum number of events to capture before returning. Default is 25. | |
| duration_seconds | No | How many seconds the bounded WebSocket subscription remains open. Default is 3. | |
| accounts_proposed | No | Optional list of XRPL accounts for proposed transaction events. |