# Other program decoders (Carbon 2.0)

> Decode 5 more Solana programs in Rust, including Jupiter DCA, Kamino Farms, Pump Fees and Raydium Liquidity Locking, with Carbon decoder crates.

Carbon 2.0.0 has decoder crates for 5 more programs on Solana: 74 instructions, 14 account types and 21 events in all. Use them to index DCA orders, farms, fee configuration, liquidity locks and smart wallets as typed Rust values instead of parsing raw bytes. Each program's page lists every instruction with its discriminator, data fields and accounts, every account and event, and a complete program that runs against the public RPC.

## Programs

Program IDs are the mainnet addresses compiled into each crate as `PROGRAM_ID`. Instruction counts exclude the `CpiEvent` wrapper.

| Program                                                                                         | Crate                                      | Program ID                                     | Instructions | Accounts | Events |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------ | ---------------------------------------------- | -----------: | -------: | -----: |
| [Jupiter DCA](https://carbon.sevenlabs.org/decoders/jupiter-dca.md)                             | `carbon-jupiter-dca-decoder`               | `DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M` |           12 |        1 |      6 |
| [Kamino Farms](https://carbon.sevenlabs.org/decoders/kamino-farms.md)                           | `carbon-kamino-farms-decoder`              | `FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr` |           26 |        4 |      0 |
| [Pump Fees](https://carbon.sevenlabs.org/decoders/pump-fees.md)                                 | `carbon-pump-fees-decoder`                 | `pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ`  |           17 |        7 |     14 |
| [Raydium Liquidity Locking](https://carbon.sevenlabs.org/decoders/raydium-liquidity-locking.md) | `carbon-raydium-liquidity-locking-decoder` | `LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE`  |            4 |        2 |      1 |
| [Swig](https://carbon.sevenlabs.org/decoders/swig.md)                                           | `carbon-swig-decoder`                      | `swigypWHEksbC64pWKwah1WTeh9JXwx8H1rJHLdbQMB`  |           15 |        0 |      0 |

## Decode several in one pipeline

Add `carbon-core` and the decoder crates you need, all at the same version. For every program in this category:

```sh
cargo add carbon-core@2.0.0 carbon-jupiter-dca-decoder@2.0.0 carbon-kamino-farms-decoder@2.0.0 carbon-pump-fees-decoder@2.0.0 carbon-raydium-liquidity-locking-decoder@2.0.0 carbon-swig-decoder@2.0.0
```

Register each decoder with a processor for its instruction enum. This fragment goes in your pipeline setup; the processors are yours, one per program, each implementing `Processor` for that program's instruction input (see [processors](https://carbon.sevenlabs.org/concepts/processors.md)):

```rust
use carbon_jupiter_dca_decoder::JupiterDcaDecoder;
use carbon_kamino_farms_decoder::KaminoFarmsDecoder;
use carbon_pump_fees_decoder::PumpFeesDecoder;

Pipeline::builder()
    .datasource(datasource) // a datasource that emits these programs' transactions
    .instruction(JupiterDcaDecoder, JupiterDcaProcessor)
    .instruction(KaminoFarmsDecoder, KaminoFarmsProcessor)
    .instruction(PumpFeesDecoder, PumpFeesProcessor)
    .build()?
    .run()
    .await
```

Each decoder only returns instructions whose program ID matches its own `PROGRAM_ID`, so one pipeline can hold all of them. For datasource filters that follow several programs, and one processor that sees every program's instructions in a transaction, see [index multiple programs](https://carbon.sevenlabs.org/guides/multiple-programs.md).

## A program that is not listed

Generate a decoder from the program's Anchor or Codama IDL with the Carbon CLI: see [generate a decoder](https://carbon.sevenlabs.org/guides/generate-a-decoder.md). Every crate above was generated the same way. The [full catalog](https://carbon.sevenlabs.org/decoders.md) lists decoders in every category.

---

Carbon 2.0.0 documentation · Web: https://carbon.sevenlabs.org/decoders/other · Last updated 2026-11-09 · Index of all pages: https://carbon.sevenlabs.org/llms.txt
