Solana IDL reference › SPL Token Swap › SwapCurve
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.
| Field | Type | Offset | Size |
|---|---|---|---|
| curveType | CurveType | 0 | 1 |
| calculator | Arc<dynCurveCalculator+Sync+Send> | 1 | varies |
calculator has a size that depends on the data (Vec, String, Option or an enum with different variant sizes), so offsets after it vary from account to account.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.
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.