Skip to content

​Parameters

​filter
string | object
required
Filter describing which transactions should emit log notifications.
  • all subscribes to all transactions except simple vote transactions
  • allWithVotes subscribes to all transactions, including simple vote transactions
  • { "mentions": [<pubkey>] } subscribes to transactions that mention a single base-58 encoded address
The mentions filter currently supports exactly one address. Listing more than one returns an Invalid params error.
​config
object
Optional configuration object.

​Result

​result
integer
Subscription id. Pass this to logsUnsubscribe.

​Notification format

Notifications are delivered as logsNotification.
​jsonrpc
string
Always "2.0".
​method
string
Always "logsNotification".
​params
object
Notification wrapper with the logs payload and the subscription id.