logsSubscribe

logsSubscribe WebSocket Method

post
/

Subscribe to transaction logging to receive notifications when transactions occur that match specified filter criteria. This method establishes a persistent WebSocket connection that will send real-time log notifications whenever transactions matching your filters are processed by the network. You can filter by all transactions, transactions with votes, or transactions mentioning specific accounts.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body

Request object for subscribing to transaction logs via WebSocket

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The WebSocket method name

Example: logsSubscribePossible values:
Responses
chevron-right
101

WebSocket notification for transaction logs

application/json

WebSocket notification sent when a transaction log matches the subscription filter

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
methodstring · enumRequired

Notification method name indicating this is a logs notification

Example: logsNotificationPossible values:
post
/

Last updated