# Decoders (Carbon 2.0)

> All 63 program decoders published with Carbon 2.0.0: crates, program IDs and what each one decodes.

Carbon 2.0.0 ships 63 decoder crates for Solana programs, covering 1895 instructions, 301 account types and 455 events. Each page lists the crate, program ID, every instruction with its discriminator, data fields and accounts, every account and event, and a runnable example.

## What a decoder is

A decoder crate turns raw instructions and account data of one program into Rust types. Every crate exports the same items:

| Item                                 | What it is                                                                                                     |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| `PROGRAM_ID`                         | The program's address, a `Pubkey` constant. Use it to point a datasource at the program.                       |
| `<Program>Decoder`                   | A unit struct that implements `InstructionDecoder` and `AccountDecoder`. Pass it to the pipeline builder.      |
| `instructions::<Program>Instruction` | One variant per instruction: `{ program_id, data, accounts }`, with typed instruction data and named accounts. |
| `accounts::<Program>Account`         | One variant per account type, wrapping the decoded struct.                                                     |
| `instructions::CpiEvent`             | For Anchor programs that emit events with `emit_cpi!`: one variant per event.                                  |
| `types`                              | Structs and enums used inside instructions, accounts and events.                                               |

Every crate has the optional features `serde`, `postgres` and `graphql`. See [decoders](https://carbon.sevenlabs.org/concepts/decoders.md) for how decoding fits into a pipeline.

## Use a decoder

Add the crate at the same version as `carbon-core`, then register the decoder with a processor for its instruction or account enum:

```sh
cargo add carbon-core@2.0.0 carbon-pump-swap-decoder@2.0.0
```

This fragment goes in your pipeline setup; `BuyLogger` and `PoolLogger` are your [processors](https://carbon.sevenlabs.org/concepts/processors.md):

```rust
use carbon_pump_swap_decoder::{PumpSwapDecoder, PROGRAM_ID};

Pipeline::builder()
    .datasource(datasource) // e.g. an RpcTransactionCrawler for PROGRAM_ID
    .instruction(PumpSwapDecoder, BuyLogger)
    .account(PumpSwapDecoder, PoolLogger)
    .build()?
    .run()
    .await
```

Each decoder page has a complete program in its **Usage** section, and the [quickstart](https://carbon.sevenlabs.org/quickstart.md) walks through one end to end. To decode several programs in one pipeline, see [multiple programs](https://carbon.sevenlabs.org/guides/multiple-programs.md).

## Generate your own

Every crate here is generated by the Carbon CLI from the program's Anchor or Codama IDL. For a program that is not listed, generate a decoder the same way: see [generate a decoder](https://carbon.sevenlabs.org/guides/generate-a-decoder.md). To write one by hand, see [custom decoder](https://carbon.sevenlabs.org/guides/custom-decoder.md).

## Catalog

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

### Core & SPL

See [core and SPL program decoders](https://carbon.sevenlabs.org/decoders/core-and-spl.md) for these programs together.

| Program                                                                                       | Crate                                     | Program ID                                     | Instructions | Accounts | Events |
| --------------------------------------------------------------------------------------------- | ----------------------------------------- | ---------------------------------------------- | -----------: | -------: | -----: |
| [Address Lookup Table](https://carbon.sevenlabs.org/decoders/address-lookup-table.md)         | `carbon-address-lookup-table-decoder`     | `AddressLookupTab1e1111111111111111111111111`  |            5 |        1 |      0 |
| [Associated Token Account](https://carbon.sevenlabs.org/decoders/associated-token-account.md) | `carbon-associated-token-account-decoder` | `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL` |            3 |        0 |      0 |
| [SPL Memo](https://carbon.sevenlabs.org/decoders/memo-program.md)                             | `carbon-memo-program-decoder`             | `MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr`  |            1 |        0 |      0 |
| [SPL Name Service](https://carbon.sevenlabs.org/decoders/name-service.md)                     | `carbon-name-service-decoder`             | `namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX`  |            5 |        1 |      0 |
| [SPL Token](https://carbon.sevenlabs.org/decoders/token-program.md)                           | `carbon-token-program-decoder`            | `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`  |           28 |        3 |      0 |
| [Stake Program](https://carbon.sevenlabs.org/decoders/stake-program.md)                       | `carbon-stake-program-decoder`            | `Stake11111111111111111111111111111111111111`  |           18 |        0 |      0 |
| [System Program](https://carbon.sevenlabs.org/decoders/system-program.md)                     | `carbon-system-program-decoder`           | `11111111111111111111111111111111`             |           13 |        1 |      0 |
| [Token-2022](https://carbon.sevenlabs.org/decoders/token-2022.md)                             | `carbon-token-2022-decoder`               | `TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`  |           91 |        3 |      0 |

### DEX & AMM

See [dEX and AMM decoders](https://carbon.sevenlabs.org/decoders/dex-and-amm.md) for these programs together.

| Program                                                                                  | Crate                                  | Program ID                                     | Instructions | Accounts | Events |
| ---------------------------------------------------------------------------------------- | -------------------------------------- | ---------------------------------------------- | -----------: | -------: | -----: |
| [BonkSwap](https://carbon.sevenlabs.org/decoders/bonkswap.md)                            | `carbon-bonkswap-decoder`              | `BSwp6bEBihVLdqJRKGgzjcGLHkcTuzmSo1TQkHepzH8p` |           19 |        5 |      0 |
| [FluxBeam](https://carbon.sevenlabs.org/decoders/fluxbeam.md)                            | `carbon-fluxbeam-decoder`              | `FLUXubRmkEi2q6K3Y9kBPg9248ggaZVsoSFhtJHSrm1X` |            6 |        0 |      0 |
| [Gavel](https://carbon.sevenlabs.org/decoders/gavel.md)                                  | `carbon-gavel-decoder`                 | `srAMMzfVHVAtgSJc8iH6CfKzuWuUTzLHVCE81QU1rgi`  |           10 |        2 |      0 |
| [Heaven](https://carbon.sevenlabs.org/decoders/heaven.md)                                | `carbon-heaven-decoder`                | `HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o` |           54 |        6 |      7 |
| [Jupiter Limit Order](https://carbon.sevenlabs.org/decoders/jupiter-limit-order.md)      | `carbon-jupiter-limit-order-decoder`   | `jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu`  |            9 |        2 |      3 |
| [Jupiter Limit Order v2](https://carbon.sevenlabs.org/decoders/jupiter-limit-order-2.md) | `carbon-jupiter-limit-order-2-decoder` | `j1o2qRpjcyUwEvwtcfhEQefh773ZgjxcVRry7LDqg5X`  |            8 |        2 |      4 |
| [Kamino Limit Order](https://carbon.sevenlabs.org/decoders/kamino-limit-order.md)        | `carbon-kamino-limit-order-decoder`    | `LiMoM9rMhrdYrfzUCxQppvxCSG1FcrUK9G8uLq4A1GF`  |           15 |        3 |      2 |
| [Lifinity AMM v2](https://carbon.sevenlabs.org/decoders/lifinity-amm-v2.md)              | `carbon-lifinity-amm-v2-decoder`       | `2wT8Yq49kHgDzXuPxZSaeLaH1qbmGXtEyPy64bL7aD3c` |            3 |        1 |      0 |
| [Meteora DAMM v2](https://carbon.sevenlabs.org/decoders/meteora-damm-v2.md)              | `carbon-meteora-damm-v2-decoder`       | `cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG`  |           38 |        9 |     23 |
| [Meteora DLMM](https://carbon.sevenlabs.org/decoders/meteora-dlmm.md)                    | `carbon-meteora-dlmm-decoder`          | `LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo`  |           76 |       12 |     30 |
| [Meteora Pools](https://carbon.sevenlabs.org/decoders/meteora-pools.md)                  | `carbon-meteora-pools-decoder`         | `Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB` |           26 |        3 |     18 |
| [OpenBook v2](https://carbon.sevenlabs.org/decoders/openbook-v2.md)                      | `carbon-openbook-v2-decoder`           | `opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb`  |           29 |        6 |      8 |
| [Orca Whirlpools](https://carbon.sevenlabs.org/decoders/orca-whirlpool.md)               | `carbon-orca-whirlpool-decoder`        | `whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc`  |           66 |       12 |      6 |
| [PancakeSwap](https://carbon.sevenlabs.org/decoders/pancake-swap.md)                     | `carbon-pancake-swap-decoder`          | `HpNfyc2Saw7RKkQd8nEL4khUcuPhQ7WwY1B2qjx8jxFq` |           27 |       10 |     11 |
| [Phoenix v1](https://carbon.sevenlabs.org/decoders/phoenix-v1.md)                        | `carbon-phoenix-v1-decoder`            | `PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY`  |           28 |        0 |      0 |
| [PumpSwap](https://carbon.sevenlabs.org/decoders/pump-swap.md)                           | `carbon-pump-swap-decoder`             | `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA`  |           25 |        7 |     22 |
| [Raydium AMM v4](https://carbon.sevenlabs.org/decoders/raydium-amm-v4.md)                | `carbon-raydium-amm-v4-decoder`        | `675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8` |           18 |        3 |      0 |
| [Raydium CLMM](https://carbon.sevenlabs.org/decoders/raydium-clmm.md)                    | `carbon-raydium-clmm-decoder`          | `CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK` |           34 |       12 |     15 |
| [Raydium CPMM](https://carbon.sevenlabs.org/decoders/raydium-cpmm.md)                    | `carbon-raydium-cpmm-decoder`          | `CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C` |           14 |        4 |      2 |
| [Raydium Stable Swap](https://carbon.sevenlabs.org/decoders/raydium-stable-swap.md)      | `carbon-raydium-stable-swap-decoder`   | `5quBtoiQqxF9Jv6KYKctB59NT3gtJD2Y65kdnB1Uev3h` |            6 |        0 |      0 |
| [Stabble Stable Swap](https://carbon.sevenlabs.org/decoders/stabble-stable-swap.md)      | `carbon-stabble-stable-swap-decoder`   | `swapNyd8XiQwJ6ianp9snpu4brUqFxadzvHebnAXjJZ`  |           19 |        3 |      2 |
| [Stabble Weighted Swap](https://carbon.sevenlabs.org/decoders/stabble-weighted-swap.md)  | `carbon-stabble-weighted-swap-decoder` | `swapFpHZwjELNnjvThjajtiVmkz3yPQEHjLtka2fwHW`  |           13 |        2 |      2 |

### Lending

See [lending decoders](https://carbon.sevenlabs.org/decoders/lending.md) for these programs together.

| Program                                                                   | Crate                           | Program ID                                     | Instructions | Accounts | Events |
| ------------------------------------------------------------------------- | ------------------------------- | ---------------------------------------------- | -----------: | -------: | -----: |
| [Jupiter Lend](https://carbon.sevenlabs.org/decoders/jupiter-lend.md)     | `carbon-jupiter-lend-decoder`   | `jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC`  |           24 |        7 |     19 |
| [Kamino Lending](https://carbon.sevenlabs.org/decoders/kamino-lending.md) | `carbon-kamino-lending-decoder` | `KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD`  |           63 |       10 |      5 |
| [Kamino Vault](https://carbon.sevenlabs.org/decoders/kamino-vault.md)     | `carbon-kamino-vault-decoder`   | `kvauTFR8qm1dhniz6pYuBZkuene3Hfrs1VQhVRgCNrr`  |           12 |        2 |      0 |
| [marginfi v2](https://carbon.sevenlabs.org/decoders/marginfi-v2.md)       | `carbon-marginfi-v2-decoder`    | `MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA`  |           91 |       15 |     30 |
| [Meteora Vault](https://carbon.sevenlabs.org/decoders/meteora-vault.md)   | `carbon-meteora-vault-decoder`  | `24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi` |           14 |        2 |      8 |
| [Sharky](https://carbon.sevenlabs.org/decoders/sharky.md)                 | `carbon-sharky-decoder`         | `SHARKobtfF1bHhxD2eqftjHBdVSCbKo9JtgK71FhELP`  |           35 |        9 |      0 |

### Perpetuals & derivatives

See [perpetuals and derivatives decoders](https://carbon.sevenlabs.org/decoders/perpetuals.md) for these programs together.

| Program                                                                           | Crate                               | Program ID                                    | Instructions | Accounts | Events |
| --------------------------------------------------------------------------------- | ----------------------------------- | --------------------------------------------- | -----------: | -------: | -----: |
| [Drift v2](https://carbon.sevenlabs.org/decoders/drift-v2.md)                     | `carbon-drift-v2-decoder`           | `dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH` |          249 |       27 |     26 |
| [Jupiter Perpetuals](https://carbon.sevenlabs.org/decoders/jupiter-perpetuals.md) | `carbon-jupiter-perpetuals-decoder` | `PERPHjGBqRHArX4DySjwM6UJHiR3sWAatqfdBS2qQJu` |           59 |        8 |     25 |
| [Zeta Markets](https://carbon.sevenlabs.org/decoders/zeta.md)                     | `carbon-zeta-decoder`               | `ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD` |          107 |       23 |      8 |

### Launchpads

See [launchpad decoders](https://carbon.sevenlabs.org/decoders/launchpads.md) for these programs together.

| Program                                                                         | Crate                              | Program ID                                     | Instructions | Accounts | Events |
| ------------------------------------------------------------------------------- | ---------------------------------- | ---------------------------------------------- | -----------: | -------: | -----: |
| [Boop](https://carbon.sevenlabs.org/decoders/boop.md)                           | `carbon-boop-decoder`              | `boop8hVGQGqehUK2iVEMEnMrL5RbjywRzHKBmBE7ry4`  |           29 |        4 |     25 |
| [Meteora DBC](https://carbon.sevenlabs.org/decoders/meteora-dbc.md)             | `carbon-meteora-dbc-decoder`       | `dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN`  |           28 |        9 |     23 |
| [Moonshot](https://carbon.sevenlabs.org/decoders/moonshot.md)                   | `carbon-moonshot-decoder`          | `MoonCVVNZFSYkqNXP6bxHLPL6QQJiMagDL3qcqUQTrG`  |            6 |        2 |      2 |
| [Pump.fun](https://carbon.sevenlabs.org/decoders/pumpfun.md)                    | `carbon-pumpfun-decoder`           | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P`  |           38 |        6 |     23 |
| [Raydium Launchpad](https://carbon.sevenlabs.org/decoders/raydium-launchpad.md) | `carbon-raydium-launchpad-decoder` | `LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj`  |           25 |        5 |      4 |
| [Vertigo](https://carbon.sevenlabs.org/decoders/vertigo.md)                     | `carbon-vertigo-decoder`           | `vrTGoBuy5rYSxAfV3jaRJWHH6nN9WK4NRExGxsk1bCJ`  |            6 |        1 |      3 |
| [Virtuals](https://carbon.sevenlabs.org/decoders/virtuals.md)                   | `carbon-virtuals-decoder`          | `5U3EU2ubXtK84QcRjWVmYt9RaDyA8gKxdUrPFXmZyaki` |            8 |        1 |      4 |
| [Wavebreak](https://carbon.sevenlabs.org/decoders/wavebreak.md)                 | `carbon-wavebreak-decoder`         | `waveQX2yP3H1pVU8djGvEHmYg8uamQ84AuyGtpsrXTF`  |           64 |        5 |      0 |

### Liquid staking & restaking

See [liquid staking and restaking decoders](https://carbon.sevenlabs.org/decoders/liquid-staking.md) for these programs together.

| Program                                                                                 | Crate                                      | Program ID                                    | Instructions | Accounts | Events |
| --------------------------------------------------------------------------------------- | ------------------------------------------ | --------------------------------------------- | -----------: | -------: | -----: |
| [Marinade Finance](https://carbon.sevenlabs.org/decoders/marinade-finance.md)           | `carbon-marinade-finance-decoder`          | `MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD` |           28 |        2 |     25 |
| [Solayer Restaking](https://carbon.sevenlabs.org/decoders/solayer-restaking-program.md) | `carbon-solayer-restaking-program-decoder` | `sSo1iU21jBrU9VaJ8PJib1MtorefUV4fzC9GURa2KNn` |            4 |        1 |      0 |

### NFTs & metadata

See [nFT and metadata decoders](https://carbon.sevenlabs.org/decoders/nfts.md) for these programs together.

| Program                                                                                | Crate                               | Program ID                                     | Instructions | Accounts | Events |
| -------------------------------------------------------------------------------------- | ----------------------------------- | ---------------------------------------------- | -----------: | -------: | -----: |
| [Bubblegum](https://carbon.sevenlabs.org/decoders/bubblegum.md)                        | `carbon-bubblegum-decoder`          | `BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY` |           17 |        2 |      0 |
| [Metaplex Core](https://carbon.sevenlabs.org/decoders/mpl-core.md)                     | `carbon-mpl-core-decoder`           | `CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d` |           42 |        6 |      0 |
| [Metaplex Token Metadata](https://carbon.sevenlabs.org/decoders/mpl-token-metadata.md) | `carbon-mpl-token-metadata-decoder` | `metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s`  |           58 |       14 |      0 |

### Bridges & messaging

See [bridge and messaging decoders](https://carbon.sevenlabs.org/decoders/bridges.md) for these programs together.

| Program                                                                                                      | Crate                                          | Program ID                                     | Instructions | Accounts | Events |
| ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- | ---------------------------------------------- | -----------: | -------: | -----: |
| [Circle CCTP Message Transmitter v2](https://carbon.sevenlabs.org/decoders/circle-message-transmitter-v2.md) | `carbon-circle-message-transmitter-v2-decoder` | `CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC` |           15 |        3 |     11 |
| [Circle CCTP Token Messenger v2](https://carbon.sevenlabs.org/decoders/circle-token-messenger-v2.md)         | `carbon-circle-token-messenger-v2-decoder`     | `CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe` |           25 |        7 |     22 |

### Aggregators & routing

See [aggregator and routing decoders](https://carbon.sevenlabs.org/decoders/aggregators.md) for these programs together.

| Program                                                                             | Crate                                | Program ID                                     | Instructions | Accounts | Events |
| ----------------------------------------------------------------------------------- | ------------------------------------ | ---------------------------------------------- | -----------: | -------: | -----: |
| [DFlow Aggregator v4](https://carbon.sevenlabs.org/decoders/dflow-aggregator-v4.md) | `carbon-dflow-aggregator-v4-decoder` | `DF1ow4tspfHX9JwWJsAb9epbkA8hmpSEAtxXy1V27QBH` |           17 |        1 |      2 |
| [Jupiter Swap](https://carbon.sevenlabs.org/decoders/jupiter-swap.md)               | `carbon-jupiter-swap-decoder`        | `JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4`  |           17 |        1 |      6 |
| [OKX DEX](https://carbon.sevenlabs.org/decoders/okx-dex.md)                         | `carbon-okx-dex-decoder`             | `6m2CDdhRgxpH4WjvdzxAYbGxwdGUz5MziiL5jek2kBma` |           14 |        0 |      2 |
| [OnChain Labs DEX v2](https://carbon.sevenlabs.org/decoders/onchain-labs-dex-v2.md) | `carbon-onchain-labs-dex-v2-decoder` | `proVF4pMXVaYqmy4NjniPh4pqKNfMmsihgd4wdkCX3u`  |           19 |        1 |      6 |

### Other

See [other program decoders](https://carbon.sevenlabs.org/decoders/other.md) for these programs together.

| 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 |

---

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