Solana IDL reference › SPL Token Swap › Fees
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 |
|---|---|---|---|
| tradeFeeNumerator | u64 | 0 | 8 |
| tradeFeeDenominator | u64 | 8 | 8 |
| ownerTradeFeeNumerator | u64 | 16 | 8 |
| ownerTradeFeeDenominator | u64 | 24 | 8 |
| ownerWithdrawFeeNumerator | u64 | 32 | 8 |
| ownerWithdrawFeeDenominator | u64 | 40 | 8 |
| hostFeeNumerator | u64 | 48 | 8 |
| hostFeeDenominator | u64 | 56 | 8 |
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.