Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UnsubscribeRequest

The unsubscribe command tells the server to stop sending messages for a particular subscription or set of subscriptions. Expects a response in the form of an UnsubscribeResponse.

Hierarchy

  • BaseRequest
    • UnsubscribeRequest

Index

Properties

Optional accounts

accounts: string[]

Array of unique account addresses to stop receiving updates for, in the. XRP Ledger's base58 format.

Optional accounts_proposed

accounts_proposed: string[]

Like accounts, but for accounts_proposed subscriptions that included. not-yet-validated transactions.

Optional api_version

api_version: number

The API version to use. If omitted, use version 1.

Optional books

books: Book[]

Array of objects defining order books to unsubscribe from, as explained. below.

command

command: "unsubscribe"

Optional id

id: string | number

A 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.

Optional streams

streams: StreamType[]

Array of string names of generic streams to unsubscribe from, including. ledger, server, transactions, and transactions_proposed.

Generated using TypeDoc