Solana IDL reference › Jupiter DCA › Dca
Jupiter DCA account type. Program ID DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M. Data starts with the 8-byte account discriminator, computed with the standard Anchor rule: first 8 bytes of sha256("account:Dca").
Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("account:Dca"))
hex 0x525d5a7f2865919a
bytes [82, 93, 90, 127, 40, 101, 145, 154]
base58 En3LttUePqB
| Field | Type | Offset | Size |
|---|---|---|---|
| user | pubkey | 8 | 32 |
| inputMint | pubkey | 40 | 32 |
| outputMint | pubkey | 72 | 32 |
| idx | u64 | 104 | 8 |
| nextCycleAt | i64 | 112 | 8 |
| inDeposited | u64 | 120 | 8 |
| inWithdrawn | u64 | 128 | 8 |
| outWithdrawn | u64 | 136 | 8 |
| inUsed | u64 | 144 | 8 |
| outReceived | u64 | 152 | 8 |
| inAmountPerCycle | u64 | 160 | 8 |
| cycleFrequency | i64 | 168 | 8 |
| nextCycleAmountLeft | u64 | 176 | 8 |
| inAccount | pubkey | 184 | 32 |
| outAccount | pubkey | 216 | 32 |
| minOutAmount | u64 | 248 | 8 |
| maxOutAmount | u64 | 256 | 8 |
| keeperInBalanceBeforeBorrow | u64 | 264 | 8 |
| dcaOutBalanceBeforeSwap | u64 | 272 | 8 |
| createdAt | i64 | 280 | 8 |
| bump | u8 | 288 | 1 |
Every Dca account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches user at offset 8. A dataSize: 289 filter would also work only while live accounts still have the snapshot size; programs often add fields in upgrades, so it is left out here. getProgramAccounts on a large program is heavy; many RPC providers limit or disable it.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M",
{
"encoding": "base64",
"filters": [
{
"memcmp": {
"offset": 0,
"bytes": "En3LttUePqB"
}
},
{
"memcmp": {
"offset": 8,
"bytes": "<user as base58>"
}
}
]
}
]
}
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.
Jupiter DCA 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.