Solana IDL reference › Jupiter DCA › Dca

Dca account layout

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

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
userpubkey832
inputMintpubkey4032
outputMintpubkey7232
idxu641048
nextCycleAti641128
inDepositedu641208
inWithdrawnu641288
outWithdrawnu641368
inUsedu641448
outReceivedu641528
inAmountPerCycleu641608
cycleFrequencyi641688
nextCycleAmountLeftu641768
inAccountpubkey18432
outAccountpubkey21632
minOutAmountu642488
maxOutAmountu642568
keeperInBalanceBeforeBorrowu642648
dcaOutBalanceBeforeSwapu642728
createdAti642808
bumpu82881

getProgramAccounts filter

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>"
          }
        }
      ]
    }
  ]
}

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.

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.