Solana IDL reference › SPL Token Swap › SwapV1

SwapV1 account layout

SPL Token Swap account type. Program ID SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8. This snapshot does not confirm whether SPL Token Swap data starts with a discriminator or other header, so offsets below are relative to the start of the struct, not to the start of the account data.

Fields

FieldTypeOffsetSize
isInitializedbool01
bumpSeedu811
tokenProgramIdpubkey232
tokenApubkey3432
tokenBpubkey6632
poolMintpubkey9832
tokenAMintpubkey13032
tokenBMintpubkey16232
poolFeeAccountpubkey19432
feesFees22664
tradeFeeNumeratoru642268
tradeFeeDenominatoru642348
ownerTradeFeeNumeratoru642428
ownerTradeFeeDenominatoru642508
ownerWithdrawFeeNumeratoru642588
ownerWithdrawFeeDenominatoru642668
hostFeeNumeratoru642748
hostFeeDenominatoru642828
swapCurveSwapCurve290varies

Decode account data

Decoding runs on Rugsight's server against the bundled snapshot. Nothing is fetched from the chain. Paste public account data only; never paste a private key or seed phrase.

Other SPL Token Swap account types

SPL Token Swap instructions · Explain a transaction

Data: solana-idls@1.2.1 (MIT, © Obsidian Protocol) and SPL Token / Token-2022 state layouts (Apache-2.0), snapshot 2026-11-17. Programs can upgrade and an IDL snapshot can lag the deployed program, so check important offsets against current account data.