Launchpad decoders
Decode 8 Solana launchpad programs in Rust, including Pump.fun, Meteora DBC, Raydium Launchpad and Boop, with Carbon decoder crates.
Carbon 2.0.0 has decoder crates for 8 launchpad programs on Solana: 204 instructions, 33 account types and 84 events in all. Use them to index token creations, bonding-curve buys and sells, and migrations to AMM pools 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 |
|---|---|---|---|---|---|
| Boop | carbon-boop-decoder | boop8hVGQGqehUK2iVEMEnMrL5RbjywRzHKBmBE7ry4 | 29 | 4 | 25 |
| Meteora DBC | carbon-meteora-dbc-decoder | dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN | 28 | 9 | 23 |
| Moonshot | carbon-moonshot-decoder | MoonCVVNZFSYkqNXP6bxHLPL6QQJiMagDL3qcqUQTrG | 6 | 2 | 2 |
| Pump.fun | carbon-pumpfun-decoder | 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P | 38 | 6 | 23 |
| Raydium Launchpad | carbon-raydium-launchpad-decoder | LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj | 25 | 5 | 4 |
| Vertigo | carbon-vertigo-decoder | vrTGoBuy5rYSxAfV3jaRJWHH6nN9WK4NRExGxsk1bCJ | 6 | 1 | 3 |
| Virtuals | carbon-virtuals-decoder | 5U3EU2ubXtK84QcRjWVmYt9RaDyA8gKxdUrPFXmZyaki | 8 | 1 | 4 |
| Wavebreak | carbon-wavebreak-decoder | waveQX2yP3H1pVU8djGvEHmYg8uamQ84AuyGtpsrXTF | 64 | 5 | 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:
cargo add carbon-core@2.0.0 carbon-boop-decoder@2.0.0 carbon-meteora-dbc-decoder@2.0.0 carbon-moonshot-decoder@2.0.0 carbon-pumpfun-decoder@2.0.0 carbon-raydium-launchpad-decoder@2.0.0 carbon-vertigo-decoder@2.0.0 carbon-virtuals-decoder@2.0.0 carbon-wavebreak-decoder@2.0.0Register 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):
use carbon_pumpfun_decoder::PumpfunDecoder;
use carbon_meteora_dbc_decoder::MeteoraDbcDecoder;
use carbon_raydium_launchpad_decoder::RaydiumLaunchpadDecoder;
Pipeline::builder()
.datasource(datasource) // a datasource that emits these programs' transactions
.instruction(PumpfunDecoder, PumpfunProcessor)
.instruction(MeteoraDbcDecoder, MeteoraDbcProcessor)
.instruction(RaydiumLaunchpadDecoder, RaydiumLaunchpadProcessor)
.build()?
.run()
.awaitEach 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.
Guides#
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. Every crate above was generated the same way. The full catalog lists decoders in every category.