0.01 credits per call
logsSubscribe on Solana: Subscribes to transaction logging.
Endpoint
logsSubscribe is a WebSocket subscription method.
Authenticate with Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
filter | string | object | yes | "all", "allWithVotes", or {mentions: [<base-58 address>]}. | {"mentions":["11111111111111111111111111111111"]} |
config | object | no | {commitment?}. | {"commitment":"finalized"} |
Returns
number: Subscription id (used with logsUnsubscribe). Notifications arrive as logsNotification messages.
Examples
Errors
Standard JSON-RPC errors:-32600 invalid request, -32601 method not found, -32602 invalid params.