Node reference
Watch Raydium trades
Stream swaps for one selected pool
Watch Raydium trades listens for activity in one pool and reports decoded trade details and token-balance changes.
Try it step by step#
- Choose the pool address. Use automatic pool-type detection unless you have a reason to set it explicitly.
- Start the listener and inspect a matching event’s signature, inputMint, outputMint, and deltas.
- Use the reported mint identities when formatting an observation message.
What to expect#
The result describes the observed transaction and indicates whether it was routed. A routed transaction can involve more than one operation.
Things to check#
- Do not assume the first balance change describes only this pool’s swap.
- Use the event’s token identities and instructionKind to interpret the data.
- Receiving a trade event does not quote a new trade or guarantee the same price remains available.
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 |
|---|---|---|
| Pool Address | — | Address identifying the pool for this operation. |
| Raydium Product | auto | Pool type to search or observe. Available choices depend on this operation. |
| Raydium API URL | — | Optional Raydium data API URL. Leave empty to use the configured network endpoint. |
| Commitment | confirmed | Watchers subscribe at confirmed or finalized commitment so transaction verification cannot miss one-shot processed events. |
| 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. |
Raydium Product: Choices: Detect from API (auto), AMM v4 (ammV4), CPMM (cpmm), CLMM (clmm), Stable AMM (stable). Available under More options.
Raydium API URL: Available under More options.
Commitment: Choices: 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 | A successful direct swap for one required Raydium pool with complete signer-owned token deltas. |
out fields#
| Field | Type |
|---|---|
signature | string |
pool | string |
user | string |
inputMint | string |
outputMint | string |
instructionKind | string |
routed | boolean |
deltas | array |