InstructionLIVE

OKX DEX Swap

Real-time decoded data for the Swap instruction on the OKX DEX program. Every time this instruction is executed on Solana, you receive the full decoded payload with 5 accounts and 2 arguments in under 50ms.

Topicsolana.okx_okx.swap
5accounts
1signers
2writable
2arguments

Accounts

Decoded account addresses included in every Swap message.

NameTypeSignerWritable
payerPublicKeyyes-
source_token_accountPublicKey-yes
destination_token_accountPublicKey-yes
source_mintPublicKey--
destination_mintPublicKey--

Arguments

Decoded instruction arguments included in every Swap message.

NameType
datastruct { amount_in: u64, expect_amount_out: u64, min_return: u64, amounts: Vec<u64>, routes: Vec<Vec<struct { dexes: Vec<enum(splTokenSwap, stableSwap, whirlpool, meteoraDynamicpool, raydiumSwap, raydiumStableSwap, raydiumClmmSwap, aldrinExchangeV1, ...)>, weights: bytes }>> }
order_idu64

Subscribe to Swap

Connect and start receiving decoded data in seconds.

grpcurl -plaintext \
  -H 'x-eventstream-policy: {"version":1,"allowed_programs":"all","allowed_topics":"all"}' \
  -d '{"topic":"solana.okx_okx.swap","format":"JSON"}' \
  events.nln.clr3.org:443 \
  nln.stream.v1.StreamService/Subscribe

The solana.okx_okx.swap stream delivers decoded Swap instruction data from the OKX DEX program (6m2CDdhRgxpH...) on Solana. Each message includes 5 decoded account addresses and 2 typed arguments, delivered in under 50 milliseconds from on-chain confirmation. Available in both JSON and Protobuf formats via the NoLimitNodes gRPC streaming API.

Stream OKX DEX Swap data now

Get your API key and start receiving decoded instructions in seconds.