Node reference
Logs subscribe
Stream matching transaction logs
Logs subscribe listens for transaction log notifications. Use an address mention filter to watch a narrower stream while learning.
Try it step by step#
- Choose mentions in Filter and enter an address involved in activity you want to observe.
- Connect a node that records the received signature and logs, then start listening.
- Inspect err as well as logs when a notification arrives. Stop the run after the observation.
What to expect#
The result includes signature, logs, err, and context.slot. A log notification can describe a failed transaction; receiving logs alone does not establish success.
Things to check#
- all and allWithVotes can produce much larger streams than a mention filter.
- Logs are program messages. Their wording is not a stable substitute for a decoded event format.
- Use the dedicated Pump or Raydium watchers when you need those integrations’ parsed event fields.
Keep learning#
Network setup: This node uses solana. See connections for RPC setup and Test mode for network selection.
Parameters#
| Setting | Default | What it does |
|---|---|---|
| Transactions | all | Listen to all logs, include vote logs, or limit logs to an address mention. |
| Mentioned address | — | Address used when the log filter is Mentions. |
| Commitment | confirmed | How far a Solana block must be confirmed before its data is used. |
| RPC URL | {{global.chains.solana.rpcUrl}} | Configured for Solana in workspace RPC settings. |
| Timeout (seconds) | 0 | Use 0 to wait until a matching notification arrives or the workflow is stopped. |
| On failure | stop | Choose whether a failed execution stops the workflow or only ends this path. |
| Retry attempts | 5 | How many times to reconnect after the subscription connection fails. |
Transactions: Choices: All transactions (all), All including votes (allWithVotes), Mentioning an address (mentions).
Mentioned address: Shown when filter is mentions.
Commitment: Choices: Processed (processed), Confirmed (confirmed), Finalized (finalized). Available under More options.
RPC URL: Available under More options.
Timeout (seconds): Available under More options.
On failure: Choices: Stop workflow (stop), Continue (continue). Available under More options.
Retry attempts: Available under More options. Limits: minimum 0.
Inputs#
| Port | Value |
|---|---|
in | any |
Outputs#
| Port | Value | Description |
|---|---|---|
out | object | The next matching transaction log notification. |
out fields#
| Field | Type |
|---|---|
filter | string |
context.slot | number |
signature | string |
err | any |
logs | array |