# Pump.fun decoder (Carbon 2.0)

> Decode Pump.fun instructions, accounts and events in Rust with carbon-pumpfun-decoder 2.0.0. Program ID 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P.

`carbon-pumpfun-decoder` decodes the instructions, accounts and events of the Pump.fun program (`6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P`): 38 instructions, 6 account types, 23 events. It is generated with Codama from the program's IDL; see [decoders](https://carbon.sevenlabs.org/concepts/decoders.md) for how decoders plug into a pipeline.

|                  |                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------- |
| Crate            | [`carbon-pumpfun-decoder`](https://crates.io/crates/carbon-pumpfun-decoder/2.0.0) 2.0.0                 |
| Install          | `cargo add carbon-pumpfun-decoder@2.0.0`                                                                |
| Program ID       | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` (`carbon_pumpfun_decoder::PROGRAM_ID`)                    |
| Category         | [Launchpads](https://carbon.sevenlabs.org/decoders/launchpads.md)                                       |
| Decoder          | `carbon_pumpfun_decoder::PumpfunDecoder`                                                                |
| Instruction enum | `instructions::PumpfunInstruction`                                                                      |
| Account enum     | `accounts::PumpfunAccount`                                                                              |
| Event enum       | `instructions::CpiEvent`                                                                                |
| Features         | `serde`, `postgres`, `graphql` (none enabled by default)                                                |
| API docs         | [docs.rs/carbon-pumpfun-decoder/2.0.0](https://docs.rs/carbon-pumpfun-decoder/2.0.0)                    |
| Source           | [decoders/pumpfun-decoder](https://github.com/sevenlabs-hq/carbon/tree/v2.0.0/decoders/pumpfun-decoder) |

Other launchpad decoders: [Boop](https://carbon.sevenlabs.org/decoders/boop.md), [Meteora DBC](https://carbon.sevenlabs.org/decoders/meteora-dbc.md), [Moonshot](https://carbon.sevenlabs.org/decoders/moonshot.md), [Raydium Launchpad](https://carbon.sevenlabs.org/decoders/raydium-launchpad.md), [Vertigo](https://carbon.sevenlabs.org/decoders/vertigo.md), [Virtuals](https://carbon.sevenlabs.org/decoders/virtuals.md), [Wavebreak](https://carbon.sevenlabs.org/decoders/wavebreak.md). To decode several in one pipeline, see [launchpad decoders](https://carbon.sevenlabs.org/decoders/launchpads.md).

Guide: [Track Pump.fun launches and trades](https://carbon.sevenlabs.org/guides/track-pumpfun-launches.md).

The `serde` feature derives `Serialize`/`Deserialize` on every type, `postgres` adds tables and processors for [Postgres](https://carbon.sevenlabs.org/guides/postgres.md), and `graphql` adds a schema for the [GraphQL server](https://carbon.sevenlabs.org/guides/graphql.md).

## Usage

This program crawls recent Pump.fun transactions from the public RPC and prints every decoded `Buy` instruction. Add the dependencies:

```sh
cargo add carbon-core@2.0.0 carbon-pumpfun-decoder@2.0.0 carbon-rpc-transaction-crawler-datasource@2.0.0 carbon-log-metrics@2.0.0 env_logger tokio --features tokio/full
```

`src/main.rs`:

```rust
use {
    carbon_core::{
        error::CarbonResult, instruction::InstructionProcessorInputType, pipeline::Pipeline,
        processor::Processor,
    },
    carbon_log_metrics::LogMetrics,
    carbon_pumpfun_decoder::{instructions::PumpfunInstruction, PumpfunDecoder, PROGRAM_ID},
    carbon_rpc_transaction_crawler_datasource::{ConnectionConfig, Filters, RpcTransactionCrawler},
    std::sync::Arc,
};

#[tokio::main]
async fn main() -> CarbonResult<()> {
    env_logger::init();

    // Fetches the program's recent transactions over JSON-RPC, newest first.
    let datasource = RpcTransactionCrawler::new(
        "https://api.mainnet-beta.solana.com".to_string(),
        PROGRAM_ID,
        ConnectionConfig::default(),
        Filters::new(None, None, None),
        None,
    );

    Pipeline::builder()
        .datasource(datasource)
        .metrics(Arc::new(LogMetrics::new()))
        .instruction(PumpfunDecoder, InstructionLogger)
        .build()?
        .run()
        .await
}

struct InstructionLogger;

impl Processor<InstructionProcessorInputType<'_, PumpfunInstruction>> for InstructionLogger {
    async fn process(
        &mut self,
        input: &InstructionProcessorInputType<'_, PumpfunInstruction>,
    ) -> CarbonResult<()> {
        let signature = input.metadata.transaction_metadata.signature;
        if let PumpfunInstruction::Buy { data, accounts, .. } = input.decoded_instruction {
            println!("buy {signature}: {data:?} global={}", accounts.global);
        }
        Ok(())
    }
}
```

```sh
RUST_LOG=info cargo run
```

Each `Buy` instruction prints one line with the transaction signature and the decoded `Buy` data. The public endpoint rate-limits requests, so the first lines can take a while; use your own RPC URL for anything beyond a test. See [stream with RPC](https://carbon.sevenlabs.org/guides/stream-with-rpc.md) for the crawler options.

Events published with Anchor's `emit_cpi!` arrive as the `CpiEvent` instruction. Match them with `PumpfunInstruction::CpiEvent { data: CpiEvent::AdminSetCreatorEvent(event), .. }` (import `instructions::CpiEvent`); see [Events](#events). If `CpiEvent` never arrives, the program logs its events with `emit!` instead: decode them with [`decode_log_events`](https://carbon.sevenlabs.org/concepts/instructions.md#log-events).

### Decode accounts

The transaction crawler emits transactions only. To decode accounts, use a datasource that emits account updates. This program subscribes to the program's accounts with `programSubscribe` on the public WebSocket endpoint and prints every decoded `BondingCurve` account as it changes. Add the datasource and the Solana RPC types it takes:

```sh
cargo add carbon-rpc-program-subscribe-datasource@2.0.0 solana-client@4.2.2
```

`src/main.rs`:

```rust
use {
    carbon_core::{
        account::AccountProcessorInputType, error::CarbonResult, pipeline::Pipeline,
        processor::Processor,
    },
    carbon_log_metrics::LogMetrics,
    carbon_pumpfun_decoder::{accounts::PumpfunAccount, PumpfunDecoder, PROGRAM_ID},
    carbon_rpc_program_subscribe_datasource::{Filters, RpcProgramSubscribe},
    solana_client::rpc_config::{RpcAccountInfoConfig, RpcProgramAccountsConfig, UiAccountEncoding},
    std::sync::Arc,
};

#[tokio::main]
async fn main() -> CarbonResult<()> {
    env_logger::init();

    // Streams every change to an account owned by the program (programSubscribe).
    let config = RpcProgramAccountsConfig {
        account_config: RpcAccountInfoConfig {
            encoding: Some(UiAccountEncoding::Base64),
            ..Default::default()
        },
        ..Default::default()
    };
    let datasource = RpcProgramSubscribe::new(
        "wss://api.mainnet-beta.solana.com".to_string(),
        Filters::new(PROGRAM_ID, Some(config)),
    );

    Pipeline::builder()
        .datasource(datasource)
        .metrics(Arc::new(LogMetrics::new()))
        .account(PumpfunDecoder, AccountLogger)
        .build()?
        .run()
        .await
}

struct AccountLogger;

impl Processor<AccountProcessorInputType<'_, PumpfunAccount>> for AccountLogger {
    async fn process(
        &mut self,
        input: &AccountProcessorInputType<'_, PumpfunAccount>,
    ) -> CarbonResult<()> {
        if let PumpfunAccount::BondingCurve(bonding_curve) = &input.decoded_account.data {
            println!("bonding_curve {}: {bonding_curve:?}", input.metadata.pubkey);
        }
        Ok(())
    }
}
```

```sh
RUST_LOG=info cargo run
```

Each update to a `BondingCurve` account prints its address and decoded fields; the program runs until you stop it. Cargo resolves `solana-client` to 4.2.2, the exact version the datasource pins, so both use the same `RpcProgramAccountsConfig` type. To load every existing account once instead of streaming changes, see [load account state](https://carbon.sevenlabs.org/guides/load-account-state.md).

## Instructions

Variants of `PumpfunInstruction`. Each is `PumpfunInstruction::<Variant> { program_id, data, accounts }`, where `data` and `accounts` are the types listed under the variant, exported from `carbon_pumpfun_decoder::instructions`. Discriminators are the leading bytes of the instruction data, in hex.

**How an instruction decodes.** The decoder returns a variant only when all of these hold; otherwise the instruction is skipped and no processor is called:

1. The instruction's program ID is `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P`.
2. The data starts with the variant's discriminator, and the rest deserializes into its data type.
3. The instruction has at least as many accounts as the variant requires (the "Required accounts" count under each variant).

**Accounts.** They are matched by position, in the order listed. An account marked _optional_ is `None` only when the instruction ends before it; Anchor programs pass the program ID as a placeholder for an omitted optional account, so check for `Some(PROGRAM_ID)` too. Accounts after the listed ones are in `accounts.remaining` as `AccountMeta`s. The decoder doesn't record whether an account signed or was writable: read that from `input.raw_instruction.accounts[i].is_signer` and `.is_writable`, which follow the same order. It doesn't check signer, writable, owner or PDA constraints either; the program enforced those when the transaction executed, so a decoded instruction from a successful transaction already satisfied them.

### `AddQuoteMint`

Discriminator `6f79153828185ed1` · data `AddQuoteMint` · accounts `AddQuoteMintInstructionAccounts`.

| Field        | Type     |
| ------------ | -------- |
| `quote_mint` | `Pubkey` |

Required accounts: 4; extras go to `remaining`.

Fields of `AddQuoteMintInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `AdminSetCreator`

> _From the program's IDL:_
>
> Allows Global::admin_set_creator_authority to override the bonding curve creator

Discriminator `4519ab8e39ef0d04` · data `AdminSetCreator` · accounts `AdminSetCreatorInstructionAccounts`.

| Field     | Type     |
| --------- | -------- |
| `creator` | `Pubkey` |

Required accounts: 6; extras go to `remaining`.

Fields of `AdminSetCreatorInstructionAccounts`, in account order:

| #  | Field                         | Type               |
| -- | ----------------------------- | ------------------ |
| 0  | `admin_set_creator_authority` | `Pubkey`           |
| 1  | `global`                      | `Pubkey`           |
| 2  | `mint`                        | `Pubkey`           |
| 3  | `bonding_curve`               | `Pubkey`           |
| 4  | `event_authority`             | `Pubkey`           |
| 5  | `program`                     | `Pubkey`           |
| 6… | `remaining`                   | `Vec<AccountMeta>` |

### `AdminSetIdlAuthority`

Discriminator `08d960e79068c005` · data `AdminSetIdlAuthority` · accounts `AdminSetIdlAuthorityInstructionAccounts`.

| Field           | Type     |
| --------------- | -------- |
| `idl_authority` | `Pubkey` |

Required accounts: 7; extras go to `remaining`.

Fields of `AdminSetIdlAuthorityInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `authority`       | `Pubkey`           |
| 1  | `global`          | `Pubkey`           |
| 2  | `idl_account`     | `Pubkey`           |
| 3  | `system_program`  | `Pubkey`           |
| 4  | `program_signer`  | `Pubkey`           |
| 5  | `event_authority` | `Pubkey`           |
| 6  | `program`         | `Pubkey`           |
| 7… | `remaining`       | `Vec<AccountMeta>` |

### `AdminUpdateTokenIncentives`

Discriminator `d10b7357d5177ccc` · data `AdminUpdateTokenIncentives` · accounts `AdminUpdateTokenIncentivesInstructionAccounts`.

| Field                       | Type  |
| --------------------------- | ----- |
| `start_time`                | `i64` |
| `end_time`                  | `i64` |
| `seconds_in_a_day`          | `i64` |
| `day_number`                | `u64` |
| `pump_token_supply_per_day` | `u64` |

Required accounts: 10; extras go to `remaining`.

Fields of `AdminUpdateTokenIncentivesInstructionAccounts`, in account order:

| #   | Field                            | Type               |
| --- | -------------------------------- | ------------------ |
| 0   | `authority`                      | `Pubkey`           |
| 1   | `global`                         | `Pubkey`           |
| 2   | `global_volume_accumulator`      | `Pubkey`           |
| 3   | `mint`                           | `Pubkey`           |
| 4   | `global_incentive_token_account` | `Pubkey`           |
| 5   | `associated_token_program`       | `Pubkey`           |
| 6   | `system_program`                 | `Pubkey`           |
| 7   | `token_program`                  | `Pubkey`           |
| 8   | `event_authority`                | `Pubkey`           |
| 9   | `program`                        | `Pubkey`           |
| 10… | `remaining`                      | `Vec<AccountMeta>` |

### `Buy`

> _From the program's IDL:_
>
> Buys tokens from a bonding curve.

Discriminator `66063d1201daebea` · data `Buy` · accounts `BuyInstructionAccounts`.

| Field          | Type                        |
| -------------- | --------------------------- |
| `amount`       | `u64`                       |
| `max_sol_cost` | `u64`                       |
| `track_volume` | [`OptionBool`](#optionbool) |

Required accounts: 16; extras go to `remaining`.

Fields of `BuyInstructionAccounts`, in account order:

| #   | Field                       | Type               |
| --- | --------------------------- | ------------------ |
| 0   | `global`                    | `Pubkey`           |
| 1   | `fee_recipient`             | `Pubkey`           |
| 2   | `mint`                      | `Pubkey`           |
| 3   | `bonding_curve`             | `Pubkey`           |
| 4   | `associated_bonding_curve`  | `Pubkey`           |
| 5   | `associated_user`           | `Pubkey`           |
| 6   | `user`                      | `Pubkey`           |
| 7   | `system_program`            | `Pubkey`           |
| 8   | `token_program`             | `Pubkey`           |
| 9   | `creator_vault`             | `Pubkey`           |
| 10  | `event_authority`           | `Pubkey`           |
| 11  | `program`                   | `Pubkey`           |
| 12  | `global_volume_accumulator` | `Pubkey`           |
| 13  | `user_volume_accumulator`   | `Pubkey`           |
| 14  | `fee_config`                | `Pubkey`           |
| 15  | `fee_program`               | `Pubkey`           |
| 16… | `remaining`                 | `Vec<AccountMeta>` |

### `BuyExactQuoteInV2`

Discriminator `c2ab1c46684d5b2f` · data `BuyExactQuoteInV2` · accounts `BuyExactQuoteInV2InstructionAccounts`.

| Field                | Type  |
| -------------------- | ----- |
| `spendable_quote_in` | `u64` |
| `min_tokens_out`     | `u64` |

Required accounts: 27; extras go to `remaining`.

Fields of `BuyExactQuoteInV2InstructionAccounts`, in account order:

| #   | Field                                    | Type               |
| --- | ---------------------------------------- | ------------------ |
| 0   | `global`                                 | `Pubkey`           |
| 1   | `base_mint`                              | `Pubkey`           |
| 2   | `quote_mint`                             | `Pubkey`           |
| 3   | `base_token_program`                     | `Pubkey`           |
| 4   | `quote_token_program`                    | `Pubkey`           |
| 5   | `associated_token_program`               | `Pubkey`           |
| 6   | `fee_recipient`                          | `Pubkey`           |
| 7   | `associated_quote_fee_recipient`         | `Pubkey`           |
| 8   | `buyback_fee_recipient`                  | `Pubkey`           |
| 9   | `associated_quote_buyback_fee_recipient` | `Pubkey`           |
| 10  | `bonding_curve`                          | `Pubkey`           |
| 11  | `associated_base_bonding_curve`          | `Pubkey`           |
| 12  | `associated_quote_bonding_curve`         | `Pubkey`           |
| 13  | `user`                                   | `Pubkey`           |
| 14  | `associated_base_user`                   | `Pubkey`           |
| 15  | `associated_quote_user`                  | `Pubkey`           |
| 16  | `creator_vault`                          | `Pubkey`           |
| 17  | `associated_creator_vault`               | `Pubkey`           |
| 18  | `sharing_config`                         | `Pubkey`           |
| 19  | `global_volume_accumulator`              | `Pubkey`           |
| 20  | `user_volume_accumulator`                | `Pubkey`           |
| 21  | `associated_user_volume_accumulator`     | `Pubkey`           |
| 22  | `fee_config`                             | `Pubkey`           |
| 23  | `fee_program`                            | `Pubkey`           |
| 24  | `system_program`                         | `Pubkey`           |
| 25  | `event_authority`                        | `Pubkey`           |
| 26  | `program`                                | `Pubkey`           |
| 27… | `remaining`                              | `Vec<AccountMeta>` |

### `BuyExactSolIn`

> _From the program's IDL:_
>
> Given a budget of spendable SOL, buy at least min_tokens_out tokens.\
> Fees are deducted from spendable_sol_in.
>
> **Quote formulas**
>
> Where:
>
> - total_fee_bps = protocol_fee_bps + creator_fee_bps (creator_fee_bps is 0 if no creator)
> - floor(a/b) = a / b (integer division)
> - ceil(a/b) = (a + b - 1) / b
>
> SOL → tokens quote\
> To calculate tokens_out for a given spendable_sol_in:
>
> 1. net_sol = floor(spendable_sol_in \* 10_000 / (10_000 + total_fee_bps))
> 2. fees = ceil(net_sol \* protocol_fee_bps / 10_000) + ceil(net_sol \* creator_fee_bps / 10_000) (creator_fee_bps is 0 if no creator)
> 3. if net_sol + fees > spendable_sol_in: net_sol = net_sol - (net_sol + fees
>    - spendable_sol_in)
> 4. tokens_out = floor((net_sol - 1) \* virtual_token_reserves / (virtual_sol_reserves + net_sol - 1))
>
> Reverse quote (tokens → SOL)\
> To calculate spendable_sol_in for a desired number of tokens:
>
> 1. net_sol = ceil(tokens \* virtual_sol_reserves / (virtual_token_reserves - tokens)) + 1
> 2. spendable_sol_in = ceil(net_sol \* (10_000 + total_fee_bps) / 10_000)
>
> Rent\
> Separately make sure the instruction's payer has enough SOL to cover rent for:
>
> - creator_vault: rent.minimum_balance(0)
> - user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)

Discriminator `38fc74089edfcd5f` · data `BuyExactSolIn` · accounts `BuyExactSolInInstructionAccounts`.

| Field              | Type                        |
| ------------------ | --------------------------- |
| `spendable_sol_in` | `u64`                       |
| `min_tokens_out`   | `u64`                       |
| `track_volume`     | [`OptionBool`](#optionbool) |

Required accounts: 16; extras go to `remaining`.

Fields of `BuyExactSolInInstructionAccounts`, in account order:

| #   | Field                       | Type               |
| --- | --------------------------- | ------------------ |
| 0   | `global`                    | `Pubkey`           |
| 1   | `fee_recipient`             | `Pubkey`           |
| 2   | `mint`                      | `Pubkey`           |
| 3   | `bonding_curve`             | `Pubkey`           |
| 4   | `associated_bonding_curve`  | `Pubkey`           |
| 5   | `associated_user`           | `Pubkey`           |
| 6   | `user`                      | `Pubkey`           |
| 7   | `system_program`            | `Pubkey`           |
| 8   | `token_program`             | `Pubkey`           |
| 9   | `creator_vault`             | `Pubkey`           |
| 10  | `event_authority`           | `Pubkey`           |
| 11  | `program`                   | `Pubkey`           |
| 12  | `global_volume_accumulator` | `Pubkey`           |
| 13  | `user_volume_accumulator`   | `Pubkey`           |
| 14  | `fee_config`                | `Pubkey`           |
| 15  | `fee_program`               | `Pubkey`           |
| 16… | `remaining`                 | `Vec<AccountMeta>` |

### `BuyV2`

Discriminator `b817ee6167c5d33d` · data `BuyV2` · accounts `BuyV2InstructionAccounts`.

| Field          | Type  |
| -------------- | ----- |
| `amount`       | `u64` |
| `max_sol_cost` | `u64` |

Required accounts: 27; extras go to `remaining`.

Fields of `BuyV2InstructionAccounts`, in account order:

| #   | Field                                    | Type               |
| --- | ---------------------------------------- | ------------------ |
| 0   | `global`                                 | `Pubkey`           |
| 1   | `base_mint`                              | `Pubkey`           |
| 2   | `quote_mint`                             | `Pubkey`           |
| 3   | `base_token_program`                     | `Pubkey`           |
| 4   | `quote_token_program`                    | `Pubkey`           |
| 5   | `associated_token_program`               | `Pubkey`           |
| 6   | `fee_recipient`                          | `Pubkey`           |
| 7   | `associated_quote_fee_recipient`         | `Pubkey`           |
| 8   | `buyback_fee_recipient`                  | `Pubkey`           |
| 9   | `associated_quote_buyback_fee_recipient` | `Pubkey`           |
| 10  | `bonding_curve`                          | `Pubkey`           |
| 11  | `associated_base_bonding_curve`          | `Pubkey`           |
| 12  | `associated_quote_bonding_curve`         | `Pubkey`           |
| 13  | `user`                                   | `Pubkey`           |
| 14  | `associated_base_user`                   | `Pubkey`           |
| 15  | `associated_quote_user`                  | `Pubkey`           |
| 16  | `creator_vault`                          | `Pubkey`           |
| 17  | `associated_creator_vault`               | `Pubkey`           |
| 18  | `sharing_config`                         | `Pubkey`           |
| 19  | `global_volume_accumulator`              | `Pubkey`           |
| 20  | `user_volume_accumulator`                | `Pubkey`           |
| 21  | `associated_user_volume_accumulator`     | `Pubkey`           |
| 22  | `fee_config`                             | `Pubkey`           |
| 23  | `fee_program`                            | `Pubkey`           |
| 24  | `system_program`                         | `Pubkey`           |
| 25  | `event_authority`                        | `Pubkey`           |
| 26  | `program`                                | `Pubkey`           |
| 27… | `remaining`                              | `Vec<AccountMeta>` |

### `ClaimCashback`

Discriminator `253a237ebe35e4c5` · data `ClaimCashback` · accounts `ClaimCashbackInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `ClaimCashbackInstructionAccounts`, in account order:

| #  | Field                     | Type               |
| -- | ------------------------- | ------------------ |
| 0  | `user`                    | `Pubkey`           |
| 1  | `user_volume_accumulator` | `Pubkey`           |
| 2  | `system_program`          | `Pubkey`           |
| 3  | `event_authority`         | `Pubkey`           |
| 4  | `program`                 | `Pubkey`           |
| 5… | `remaining`               | `Vec<AccountMeta>` |

### `ClaimCashbackV2`

Discriminator `7af3cc415e741d37` · data `ClaimCashbackV2` · accounts `ClaimCashbackV2InstructionAccounts`.

No data fields.

Required accounts: 10; extras go to `remaining`.

Fields of `ClaimCashbackV2InstructionAccounts`, in account order:

| #   | Field                                | Type               |
| --- | ------------------------------------ | ------------------ |
| 0   | `user`                               | `Pubkey`           |
| 1   | `user_volume_accumulator`            | `Pubkey`           |
| 2   | `quote_mint`                         | `Pubkey`           |
| 3   | `quote_token_program`                | `Pubkey`           |
| 4   | `associated_token_program`           | `Pubkey`           |
| 5   | `associated_user_volume_accumulator` | `Pubkey`           |
| 6   | `associated_quote_user`              | `Pubkey`           |
| 7   | `system_program`                     | `Pubkey`           |
| 8   | `event_authority`                    | `Pubkey`           |
| 9   | `program`                            | `Pubkey`           |
| 10… | `remaining`                          | `Vec<AccountMeta>` |

### `ClaimTokenIncentives`

Discriminator `1004471ccc01281b` · data `ClaimTokenIncentives` · accounts `ClaimTokenIncentivesInstructionAccounts`.

No data fields.

Required accounts: 12; extras go to `remaining`.

Fields of `ClaimTokenIncentivesInstructionAccounts`, in account order:

| #   | Field                            | Type               |
| --- | -------------------------------- | ------------------ |
| 0   | `user`                           | `Pubkey`           |
| 1   | `user_ata`                       | `Pubkey`           |
| 2   | `global_volume_accumulator`      | `Pubkey`           |
| 3   | `global_incentive_token_account` | `Pubkey`           |
| 4   | `user_volume_accumulator`        | `Pubkey`           |
| 5   | `mint`                           | `Pubkey`           |
| 6   | `token_program`                  | `Pubkey`           |
| 7   | `system_program`                 | `Pubkey`           |
| 8   | `associated_token_program`       | `Pubkey`           |
| 9   | `event_authority`                | `Pubkey`           |
| 10  | `program`                        | `Pubkey`           |
| 11  | `payer`                          | `Pubkey`           |
| 12… | `remaining`                      | `Vec<AccountMeta>` |

### `CloseUserVolumeAccumulator`

Discriminator `f945a4da9667548a` · data `CloseUserVolumeAccumulator` · accounts `CloseUserVolumeAccumulatorInstructionAccounts`.

No data fields.

Required accounts: 4; extras go to `remaining`.

Fields of `CloseUserVolumeAccumulatorInstructionAccounts`, in account order:

| #  | Field                     | Type               |
| -- | ------------------------- | ------------------ |
| 0  | `user`                    | `Pubkey`           |
| 1  | `user_volume_accumulator` | `Pubkey`           |
| 2  | `event_authority`         | `Pubkey`           |
| 3  | `program`                 | `Pubkey`           |
| 4… | `remaining`               | `Vec<AccountMeta>` |

### `CollectCreatorFee`

> _From the program's IDL:_
>
> Collects creator_fee from creator_vault to the coin creator account

Discriminator `1416567bc61cdb84` · data `CollectCreatorFee` · accounts `CollectCreatorFeeInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `CollectCreatorFeeInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `creator`         | `Pubkey`           |
| 1  | `creator_vault`   | `Pubkey`           |
| 2  | `system_program`  | `Pubkey`           |
| 3  | `event_authority` | `Pubkey`           |
| 4  | `program`         | `Pubkey`           |
| 5… | `remaining`       | `Vec<AccountMeta>` |

### `Create`

> _From the program's IDL:_
>
> Creates a new coin and bonding curve.

Discriminator `181ec828051c0777` · data `Create` · accounts `CreateInstructionAccounts`.

| Field     | Type     |
| --------- | -------- |
| `name`    | `String` |
| `symbol`  | `String` |
| `uri`     | `String` |
| `creator` | `Pubkey` |

Required accounts: 14; extras go to `remaining`.

Fields of `CreateInstructionAccounts`, in account order:

| #   | Field                      | Type               |
| --- | -------------------------- | ------------------ |
| 0   | `mint`                     | `Pubkey`           |
| 1   | `mint_authority`           | `Pubkey`           |
| 2   | `bonding_curve`            | `Pubkey`           |
| 3   | `associated_bonding_curve` | `Pubkey`           |
| 4   | `global`                   | `Pubkey`           |
| 5   | `mpl_token_metadata`       | `Pubkey`           |
| 6   | `metadata`                 | `Pubkey`           |
| 7   | `user`                     | `Pubkey`           |
| 8   | `system_program`           | `Pubkey`           |
| 9   | `token_program`            | `Pubkey`           |
| 10  | `associated_token_program` | `Pubkey`           |
| 11  | `rent`                     | `Pubkey`           |
| 12  | `event_authority`          | `Pubkey`           |
| 13  | `program`                  | `Pubkey`           |
| 14… | `remaining`                | `Vec<AccountMeta>` |

### `CreateV2`

> _From the program's IDL:_
>
> Creates a new spl-22 coin and bonding curve.

Discriminator `d6904cec5f8b31b4` · data `CreateV2` · accounts `CreateV2InstructionAccounts`.

| Field                 | Type                        |
| --------------------- | --------------------------- |
| `name`                | `String`                    |
| `symbol`              | `String`                    |
| `uri`                 | `String`                    |
| `creator`             | `Pubkey`                    |
| `is_mayhem_mode`      | `bool`                      |
| `is_cashback_enabled` | [`OptionBool`](#optionbool) |

Required accounts: 16; extras go to `remaining`.

Fields of `CreateV2InstructionAccounts`, in account order:

| #   | Field                      | Type               |
| --- | -------------------------- | ------------------ |
| 0   | `mint`                     | `Pubkey`           |
| 1   | `mint_authority`           | `Pubkey`           |
| 2   | `bonding_curve`            | `Pubkey`           |
| 3   | `associated_bonding_curve` | `Pubkey`           |
| 4   | `global`                   | `Pubkey`           |
| 5   | `user`                     | `Pubkey`           |
| 6   | `system_program`           | `Pubkey`           |
| 7   | `token_program`            | `Pubkey`           |
| 8   | `associated_token_program` | `Pubkey`           |
| 9   | `mayhem_program_id`        | `Pubkey`           |
| 10  | `global_params`            | `Pubkey`           |
| 11  | `sol_vault`                | `Pubkey`           |
| 12  | `mayhem_state`             | `Pubkey`           |
| 13  | `mayhem_token_vault`       | `Pubkey`           |
| 14  | `event_authority`          | `Pubkey`           |
| 15  | `program`                  | `Pubkey`           |
| 16… | `remaining`                | `Vec<AccountMeta>` |

### `DistributeCreatorFees`

> _From the program's IDL:_
>
> Distributes creator fees to shareholders based on their share percentages\
> The creator vault needs to have at least the minimum distributable amount to distribute fees This can be checked with the get_minimum_distributable_fee instruction

Discriminator `a572670079cef751` · data `DistributeCreatorFees` · accounts `DistributeCreatorFeesInstructionAccounts`.

No data fields.

Required accounts: 7; extras go to `remaining`.

Fields of `DistributeCreatorFeesInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `mint`            | `Pubkey`           |
| 1  | `bonding_curve`   | `Pubkey`           |
| 2  | `sharing_config`  | `Pubkey`           |
| 3  | `creator_vault`   | `Pubkey`           |
| 4  | `system_program`  | `Pubkey`           |
| 5  | `event_authority` | `Pubkey`           |
| 6  | `program`         | `Pubkey`           |
| 7… | `remaining`       | `Vec<AccountMeta>` |

### `ExtendAccount`

> _From the program's IDL:_
>
> Extends the size of program-owned accounts

Discriminator `ea66c2cb96483ee5` · data `ExtendAccount` · accounts `ExtendAccountInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `ExtendAccountInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `account`         | `Pubkey`           |
| 1  | `user`            | `Pubkey`           |
| 2  | `system_program`  | `Pubkey`           |
| 3  | `event_authority` | `Pubkey`           |
| 4  | `program`         | `Pubkey`           |
| 5… | `remaining`       | `Vec<AccountMeta>` |

### `GetMinimumDistributableFee`

> _From the program's IDL:_
>
> Permissionless instruction to check the minimum required fees for distribution Returns the minimum required balance from the creator_vault and whether distribution can proceed

Discriminator `75e17fca865f4423` · data `GetMinimumDistributableFee` · accounts `GetMinimumDistributableFeeInstructionAccounts`.

No data fields.

Required accounts: 4; extras go to `remaining`.

Fields of `GetMinimumDistributableFeeInstructionAccounts`, in account order:

| #  | Field            | Type               |
| -- | ---------------- | ------------------ |
| 0  | `mint`           | `Pubkey`           |
| 1  | `bonding_curve`  | `Pubkey`           |
| 2  | `sharing_config` | `Pubkey`           |
| 3  | `creator_vault`  | `Pubkey`           |
| 4… | `remaining`      | `Vec<AccountMeta>` |

### `Initialize`

> _From the program's IDL:_
>
> Creates the global state.

Discriminator `afaf6d1f0d989bed` · data `Initialize` · accounts `InitializeInstructionAccounts`.

No data fields.

Required accounts: 3; extras go to `remaining`.

Fields of `InitializeInstructionAccounts`, in account order:

| #  | Field            | Type               |
| -- | ---------------- | ------------------ |
| 0  | `global`         | `Pubkey`           |
| 1  | `user`           | `Pubkey`           |
| 2  | `system_program` | `Pubkey`           |
| 3… | `remaining`      | `Vec<AccountMeta>` |

### `InitUserVolumeAccumulator`

Discriminator `5e06ca73ff60e8b7` · data `InitUserVolumeAccumulator` · accounts `InitUserVolumeAccumulatorInstructionAccounts`.

No data fields.

Required accounts: 6; extras go to `remaining`.

Fields of `InitUserVolumeAccumulatorInstructionAccounts`, in account order:

| #  | Field                     | Type               |
| -- | ------------------------- | ------------------ |
| 0  | `payer`                   | `Pubkey`           |
| 1  | `user`                    | `Pubkey`           |
| 2  | `user_volume_accumulator` | `Pubkey`           |
| 3  | `system_program`          | `Pubkey`           |
| 4  | `event_authority`         | `Pubkey`           |
| 5  | `program`                 | `Pubkey`           |
| 6… | `remaining`               | `Vec<AccountMeta>` |

### `Migrate`

> _From the program's IDL:_
>
> Migrates liquidity to pump_amm if the bonding curve is complete

Discriminator `9beae792ec9ea21e` · data `Migrate` · accounts `MigrateInstructionAccounts`.

No data fields.

Required accounts: 25; extras go to `remaining`.

Fields of `MigrateInstructionAccounts`, in account order:

| #   | Field                         | Type               |
| --- | ----------------------------- | ------------------ |
| 0   | `global`                      | `Pubkey`           |
| 1   | `withdraw_authority`          | `Pubkey`           |
| 2   | `mint`                        | `Pubkey`           |
| 3   | `bonding_curve`               | `Pubkey`           |
| 4   | `associated_bonding_curve`    | `Pubkey`           |
| 5   | `user`                        | `Pubkey`           |
| 6   | `system_program`              | `Pubkey`           |
| 7   | `token_program`               | `Pubkey`           |
| 8   | `pump_amm`                    | `Pubkey`           |
| 9   | `pool`                        | `Pubkey`           |
| 10  | `pool_authority`              | `Pubkey`           |
| 11  | `pool_authority_mint_account` | `Pubkey`           |
| 12  | `pool_authority_wsol_account` | `Pubkey`           |
| 13  | `amm_global_config`           | `Pubkey`           |
| 14  | `wsol_mint`                   | `Pubkey`           |
| 15  | `lp_mint`                     | `Pubkey`           |
| 16  | `user_pool_token_account`     | `Pubkey`           |
| 17  | `pool_base_token_account`     | `Pubkey`           |
| 18  | `pool_quote_token_account`    | `Pubkey`           |
| 19  | `token2022_program`           | `Pubkey`           |
| 20  | `associated_token_program`    | `Pubkey`           |
| 21  | `pump_amm_event_authority`    | `Pubkey`           |
| 22  | `event_authority`             | `Pubkey`           |
| 23  | `program`                     | `Pubkey`           |
| 24  | `rent`                        | `Pubkey`           |
| 25… | `remaining`                   | `Vec<AccountMeta>` |

### `MigrateBondingCurveCreator`

Discriminator `577c34bf3426d6e8` · data `MigrateBondingCurveCreator` · accounts `MigrateBondingCurveCreatorInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `MigrateBondingCurveCreatorInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `mint`            | `Pubkey`           |
| 1  | `bonding_curve`   | `Pubkey`           |
| 2  | `sharing_config`  | `Pubkey`           |
| 3  | `event_authority` | `Pubkey`           |
| 4  | `program`         | `Pubkey`           |
| 5… | `remaining`       | `Vec<AccountMeta>` |

### `MigrateV2`

> _From the program's IDL:_
>
> Migrates liquidity to pump_amm if the bonding curve is complete

Discriminator `bbcb121fceedfe29` · data `MigrateV2` · accounts `MigrateV2InstructionAccounts`.

No data fields.

Required accounts: 27; extras go to `remaining`.

Fields of `MigrateV2InstructionAccounts`, in account order:

| #   | Field                            | Type               |
| --- | -------------------------------- | ------------------ |
| 0   | `global`                         | `Pubkey`           |
| 1   | `withdraw_authority`             | `Pubkey`           |
| 2   | `base_mint`                      | `Pubkey`           |
| 3   | `quote_mint`                     | `Pubkey`           |
| 4   | `bonding_curve`                  | `Pubkey`           |
| 5   | `associated_base_bonding_curve`  | `Pubkey`           |
| 6   | `associated_quote_bonding_curve` | `Pubkey`           |
| 7   | `user`                           | `Pubkey`           |
| 8   | `system_program`                 | `Pubkey`           |
| 9   | `pump_amm`                       | `Pubkey`           |
| 10  | `pool`                           | `Pubkey`           |
| 11  | `pool_authority`                 | `Pubkey`           |
| 12  | `pool_authority_mint_account`    | `Pubkey`           |
| 13  | `pool_authority_quote_account`   | `Pubkey`           |
| 14  | `amm_global_config`              | `Pubkey`           |
| 15  | `lp_mint`                        | `Pubkey`           |
| 16  | `user_pool_token_account`        | `Pubkey`           |
| 17  | `pool_base_token_account`        | `Pubkey`           |
| 18  | `pool_quote_token_account`       | `Pubkey`           |
| 19  | `base_token_program`             | `Pubkey`           |
| 20  | `quote_token_program`            | `Pubkey`           |
| 21  | `token2022_program`              | `Pubkey`           |
| 22  | `associated_token_program`       | `Pubkey`           |
| 23  | `pump_amm_event_authority`       | `Pubkey`           |
| 24  | `rent`                           | `Pubkey`           |
| 25  | `event_authority`                | `Pubkey`           |
| 26  | `program`                        | `Pubkey`           |
| 27… | `remaining`                      | `Vec<AccountMeta>` |

### `RemoveQuoteMint`

Discriminator `b141df2658d19e9b` · data `RemoveQuoteMint` · accounts `RemoveQuoteMintInstructionAccounts`.

| Field        | Type     |
| ------------ | -------- |
| `quote_mint` | `Pubkey` |

Required accounts: 4; extras go to `remaining`.

Fields of `RemoveQuoteMintInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `Sell`

> _From the program's IDL:_
>
> Sells tokens into a bonding curve.\
> For cashback coins, pass as remaining_accounts: \[0] user_volume_accumulator,\
> \[1] bonding_curve_v2. If provided and valid, creator_fee goes to user_volume_accumulator. Otherwise, falls back to transferring creator_fee to creator_vault.

Discriminator `33e685a4017f83ad` · data `Sell` · accounts `SellInstructionAccounts`.

| Field            | Type  |
| ---------------- | ----- |
| `amount`         | `u64` |
| `min_sol_output` | `u64` |

Required accounts: 14; extras go to `remaining`.

Fields of `SellInstructionAccounts`, in account order:

| #   | Field                      | Type               |
| --- | -------------------------- | ------------------ |
| 0   | `global`                   | `Pubkey`           |
| 1   | `fee_recipient`            | `Pubkey`           |
| 2   | `mint`                     | `Pubkey`           |
| 3   | `bonding_curve`            | `Pubkey`           |
| 4   | `associated_bonding_curve` | `Pubkey`           |
| 5   | `associated_user`          | `Pubkey`           |
| 6   | `user`                     | `Pubkey`           |
| 7   | `system_program`           | `Pubkey`           |
| 8   | `creator_vault`            | `Pubkey`           |
| 9   | `token_program`            | `Pubkey`           |
| 10  | `event_authority`          | `Pubkey`           |
| 11  | `program`                  | `Pubkey`           |
| 12  | `fee_config`               | `Pubkey`           |
| 13  | `fee_program`              | `Pubkey`           |
| 14… | `remaining`                | `Vec<AccountMeta>` |

### `SellV2`

Discriminator `5df6823ce7e940b2` · data `SellV2` · accounts `SellV2InstructionAccounts`.

| Field            | Type  |
| ---------------- | ----- |
| `amount`         | `u64` |
| `min_sol_output` | `u64` |

Required accounts: 26; extras go to `remaining`.

Fields of `SellV2InstructionAccounts`, in account order:

| #   | Field                                    | Type               |
| --- | ---------------------------------------- | ------------------ |
| 0   | `global`                                 | `Pubkey`           |
| 1   | `base_mint`                              | `Pubkey`           |
| 2   | `quote_mint`                             | `Pubkey`           |
| 3   | `base_token_program`                     | `Pubkey`           |
| 4   | `quote_token_program`                    | `Pubkey`           |
| 5   | `associated_token_program`               | `Pubkey`           |
| 6   | `fee_recipient`                          | `Pubkey`           |
| 7   | `associated_quote_fee_recipient`         | `Pubkey`           |
| 8   | `buyback_fee_recipient`                  | `Pubkey`           |
| 9   | `associated_quote_buyback_fee_recipient` | `Pubkey`           |
| 10  | `bonding_curve`                          | `Pubkey`           |
| 11  | `associated_base_bonding_curve`          | `Pubkey`           |
| 12  | `associated_quote_bonding_curve`         | `Pubkey`           |
| 13  | `user`                                   | `Pubkey`           |
| 14  | `associated_base_user`                   | `Pubkey`           |
| 15  | `associated_quote_user`                  | `Pubkey`           |
| 16  | `creator_vault`                          | `Pubkey`           |
| 17  | `associated_creator_vault`               | `Pubkey`           |
| 18  | `sharing_config`                         | `Pubkey`           |
| 19  | `user_volume_accumulator`                | `Pubkey`           |
| 20  | `associated_user_volume_accumulator`     | `Pubkey`           |
| 21  | `fee_config`                             | `Pubkey`           |
| 22  | `fee_program`                            | `Pubkey`           |
| 23  | `system_program`                         | `Pubkey`           |
| 24  | `event_authority`                        | `Pubkey`           |
| 25  | `program`                                | `Pubkey`           |
| 26… | `remaining`                              | `Vec<AccountMeta>` |

### `SetCreator`

> _From the program's IDL:_
>
> Allows Global::set_creator_authority to set the bonding curve creator from\
> Metaplex metadata or input argument

Discriminator `fe94ff70cf8eaaa5` · data `SetCreator` · accounts `SetCreatorInstructionAccounts`.

| Field     | Type     |
| --------- | -------- |
| `creator` | `Pubkey` |

Required accounts: 7; extras go to `remaining`.

Fields of `SetCreatorInstructionAccounts`, in account order:

| #  | Field                   | Type               |
| -- | ----------------------- | ------------------ |
| 0  | `set_creator_authority` | `Pubkey`           |
| 1  | `global`                | `Pubkey`           |
| 2  | `mint`                  | `Pubkey`           |
| 3  | `metadata`              | `Pubkey`           |
| 4  | `bonding_curve`         | `Pubkey`           |
| 5  | `event_authority`       | `Pubkey`           |
| 6  | `program`               | `Pubkey`           |
| 7… | `remaining`             | `Vec<AccountMeta>` |

### `SetMayhemVirtualParams`

Discriminator `3da9bcbf99952a61` · data `SetMayhemVirtualParams` · accounts `SetMayhemVirtualParamsInstructionAccounts`.

No data fields.

Required accounts: 8; extras go to `remaining`.

Fields of `SetMayhemVirtualParamsInstructionAccounts`, in account order:

| #  | Field                 | Type               |
| -- | --------------------- | ------------------ |
| 0  | `sol_vault_authority` | `Pubkey`           |
| 1  | `mayhem_token_vault`  | `Pubkey`           |
| 2  | `mint`                | `Pubkey`           |
| 3  | `global`              | `Pubkey`           |
| 4  | `bonding_curve`       | `Pubkey`           |
| 5  | `token_program`       | `Pubkey`           |
| 6  | `event_authority`     | `Pubkey`           |
| 7  | `program`             | `Pubkey`           |
| 8… | `remaining`           | `Vec<AccountMeta>` |

### `SetMetaplexCreator`

> _From the program's IDL:_
>
> Syncs the bonding curve creator with the Metaplex metadata creator if it exists

Discriminator `8a60aed93055c5f6` · data `SetMetaplexCreator` · accounts `SetMetaplexCreatorInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `SetMetaplexCreatorInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `mint`            | `Pubkey`           |
| 1  | `metadata`        | `Pubkey`           |
| 2  | `bonding_curve`   | `Pubkey`           |
| 3  | `event_authority` | `Pubkey`           |
| 4  | `program`         | `Pubkey`           |
| 5… | `remaining`       | `Vec<AccountMeta>` |

### `SetParams`

> _From the program's IDL:_
>
> Sets the global state parameters.

Discriminator `1beab2349302bb8d` · data `SetParams` · accounts `SetParamsInstructionAccounts`.

| Field                            | Type     |
| -------------------------------- | -------- |
| `initial_virtual_token_reserves` | `u64`    |
| `initial_virtual_sol_reserves`   | `u64`    |
| `initial_real_token_reserves`    | `u64`    |
| `token_total_supply`             | `u64`    |
| `fee_basis_points`               | `u64`    |
| `withdraw_authority`             | `Pubkey` |
| `enable_migrate`                 | `bool`   |
| `pool_migration_fee`             | `u64`    |
| `creator_fee_basis_points`       | `u64`    |
| `set_creator_authority`          | `Pubkey` |
| `admin_set_creator_authority`    | `Pubkey` |

Required accounts: 4; extras go to `remaining`.

Fields of `SetParamsInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `SetReservedFeeRecipients`

Discriminator `6faca2e87259d58e` · data `SetReservedFeeRecipients` · accounts `SetReservedFeeRecipientsInstructionAccounts`.

| Field           | Type     |
| --------------- | -------- |
| `whitelist_pda` | `Pubkey` |

Required accounts: 4; extras go to `remaining`.

Fields of `SetReservedFeeRecipientsInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `SetVirtualQuoteReserves`

Discriminator `6587bf6809581460` · data `SetVirtualQuoteReserves` · accounts `SetVirtualQuoteReservesInstructionAccounts`.

| Field                            | Type  |
| -------------------------------- | ----- |
| `initial_virtual_quote_reserves` | `u64` |

Required accounts: 4; extras go to `remaining`.

Fields of `SetVirtualQuoteReservesInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `SyncUserVolumeAccumulator`

Discriminator `561fc057a3574fee` · data `SyncUserVolumeAccumulator` · accounts `SyncUserVolumeAccumulatorInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `SyncUserVolumeAccumulatorInstructionAccounts`, in account order:

| #  | Field                       | Type               |
| -- | --------------------------- | ------------------ |
| 0  | `user`                      | `Pubkey`           |
| 1  | `global_volume_accumulator` | `Pubkey`           |
| 2  | `user_volume_accumulator`   | `Pubkey`           |
| 3  | `event_authority`           | `Pubkey`           |
| 4  | `program`                   | `Pubkey`           |
| 5… | `remaining`                 | `Vec<AccountMeta>` |

### `ToggleCashbackEnabled`

Discriminator `7367e0ffbd5956c3` · data `ToggleCashbackEnabled` · accounts `ToggleCashbackEnabledInstructionAccounts`.

| Field     | Type   |
| --------- | ------ |
| `enabled` | `bool` |

Required accounts: 4; extras go to `remaining`.

Fields of `ToggleCashbackEnabledInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `ToggleCreateV2`

Discriminator `1cffe6f0ac6bcbab` · data `ToggleCreateV2` · accounts `ToggleCreateV2InstructionAccounts`.

| Field     | Type   |
| --------- | ------ |
| `enabled` | `bool` |

Required accounts: 4; extras go to `remaining`.

Fields of `ToggleCreateV2InstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `ToggleMayhemMode`

Discriminator `01096fd0641fffa3` · data `ToggleMayhemMode` · accounts `ToggleMayhemModeInstructionAccounts`.

| Field     | Type   |
| --------- | ------ |
| `enabled` | `bool` |

Required accounts: 4; extras go to `remaining`.

Fields of `ToggleMayhemModeInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `UpdateBuybackConfig`

Discriminator `fbe0ab92a01a71e9` · data `UpdateBuybackConfig` · accounts `UpdateBuybackConfigInstructionAccounts`.

| Field                  | Type          |
| ---------------------- | ------------- |
| `buyback_basis_points` | `Option<u64>` |

Required accounts: 4; extras go to `remaining`.

Fields of `UpdateBuybackConfigInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `event_authority` | `Pubkey`           |
| 3  | `program`         | `Pubkey`           |
| 4… | `remaining`       | `Vec<AccountMeta>` |

### `UpdateGlobalAuthority`

Discriminator `e3b54ac4d01561d5` · data `UpdateGlobalAuthority` · accounts `UpdateGlobalAuthorityInstructionAccounts`.

No data fields.

Required accounts: 5; extras go to `remaining`.

Fields of `UpdateGlobalAuthorityInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `global`          | `Pubkey`           |
| 1  | `authority`       | `Pubkey`           |
| 2  | `new_authority`   | `Pubkey`           |
| 3  | `event_authority` | `Pubkey`           |
| 4  | `program`         | `Pubkey`           |
| 5… | `remaining`       | `Vec<AccountMeta>` |

### `CpiEvent`

Anchor self-CPI that carries one of the program's [events](#events). `data` is the `CpiEvent` enum.

Discriminator `e445a52e51cb9a1d` · data `CpiEvent` · accounts `CpiEventInstructionAccounts`.

Required accounts: 2; extras go to `remaining`.

Fields of `CpiEventInstructionAccounts`, in account order:

| #  | Field             | Type               |
| -- | ----------------- | ------------------ |
| 0  | `program`         | `Pubkey`           |
| 1  | `event_authority` | `Pubkey`           |
| 2… | `remaining`       | `Vec<AccountMeta>` |

## Accounts

Variants of `PumpfunAccount`. Each wraps a boxed struct from `carbon_pumpfun_decoder::accounts::<module>`. `decode_account` only considers accounts owned by `PROGRAM_ID` and returns the first variant that matches.

### `BondingCurve`

Discriminator `17b7f83760d8ac60` · `accounts::bonding_curve::BondingCurve`.

| Field                    | Type     |
| ------------------------ | -------- |
| `virtual_token_reserves` | `u64`    |
| `virtual_quote_reserves` | `u64`    |
| `real_token_reserves`    | `u64`    |
| `real_quote_reserves`    | `u64`    |
| `token_total_supply`     | `u64`    |
| `complete`               | `bool`   |
| `creator`                | `Pubkey` |
| `is_mayhem_mode`         | `bool`   |
| `is_cashback_coin`       | `bool`   |
| `quote_mint`             | `Pubkey` |

### `FeeConfig`

Discriminator `8f3492bbdb7b4c9b` · `accounts::fee_config::FeeConfig`.

| Field              | Type                       |
| ------------------ | -------------------------- |
| `bump`             | `u8`                       |
| `admin`            | `Pubkey`                   |
| `flat_fees`        | [`Fees`](#fees)            |
| `fee_tiers`        | [`Vec<FeeTier>`](#feetier) |
| `stable_fee_tiers` | [`Vec<FeeTier>`](#feetier) |

### `Global`

Discriminator `a7e8e8b1c86c727f` · `accounts::global::Global`.

| Field                            | Type          | Description |
| -------------------------------- | ------------- | ----------- |
| `initialized`                    | `bool`        | Unused      |
| `authority`                      | `Pubkey`      |             |
| `fee_recipient`                  | `Pubkey`      |             |
| `initial_virtual_token_reserves` | `u64`         |             |
| `initial_virtual_sol_reserves`   | `u64`         |             |
| `initial_real_token_reserves`    | `u64`         |             |
| `token_total_supply`             | `u64`         |             |
| `fee_basis_points`               | `u64`         |             |
| `withdraw_authority`             | `Pubkey`      |             |
| `enable_migrate`                 | `bool`        | Unused      |
| `pool_migration_fee`             | `u64`         |             |
| `creator_fee_basis_points`       | `u64`         |             |
| `fee_recipients`                 | `[Pubkey; 7]` |             |
| `set_creator_authority`          | `Pubkey`      |             |
| `admin_set_creator_authority`    | `Pubkey`      |             |
| `create_v2_enabled`              | `bool`        |             |
| `whitelist_pda`                  | `Pubkey`      |             |
| `reserved_fee_recipient`         | `Pubkey`      |             |
| `mayhem_mode_enabled`            | `bool`        |             |
| `reserved_fee_recipients`        | `[Pubkey; 7]` |             |
| `is_cashback_enabled`            | `bool`        |             |
| `buyback_fee_recipients`         | `[Pubkey; 8]` |             |
| `buyback_basis_points`           | `u64`         |             |
| `initial_virtual_quote_reserves` | `u64`         |             |
| `whitelisted_quote_mints`        | `[Pubkey; 1]` |             |

### `GlobalVolumeAccumulator`

Discriminator `ca2af62b8ebe1eff` · `accounts::global_volume_accumulator::GlobalVolumeAccumulator`.

| Field                | Type        |
| -------------------- | ----------- |
| `start_time`         | `i64`       |
| `end_time`           | `i64`       |
| `seconds_in_a_day`   | `i64`       |
| `mint`               | `Pubkey`    |
| `total_token_supply` | `[u64; 30]` |
| `sol_volumes`        | `[u64; 30]` |

### `SharingConfig`

Discriminator `d84a0900388c5d4b` · `accounts::sharing_config::SharingConfig`.

| Field           | Type                               |
| --------------- | ---------------------------------- |
| `bump`          | `u8`                               |
| `version`       | `u8`                               |
| `status`        | [`ConfigStatus`](#configstatus)    |
| `mint`          | `Pubkey`                           |
| `admin`         | `Pubkey`                           |
| `admin_revoked` | `bool`                             |
| `shareholders`  | [`Vec<Shareholder>`](#shareholder) |

### `UserVolumeAccumulator`

Discriminator `56ff700e66359afa` · `accounts::user_volume_accumulator::UserVolumeAccumulator`.

| Field                      | Type     |
| -------------------------- | -------- |
| `user`                     | `Pubkey` |
| `needs_claim`              | `bool`   |
| `total_unclaimed_tokens`   | `u64`    |
| `total_claimed_tokens`     | `u64`    |
| `current_sol_volume`       | `u64`    |
| `last_update_timestamp`    | `i64`    |
| `has_total_claimed_tokens` | `bool`   |
| `cashback_earned`          | `u64`    |
| `total_cashback_claimed`   | `u64`    |

## Events

Variants of `instructions::CpiEvent`, decoded from the `CpiEvent` instruction. Each wraps a struct from `carbon_pumpfun_decoder::events::<module>`. The discriminator is the 8-byte event discriminator that follows the `e445a52e51cb9a1d` CPI-event tag.

### `AdminSetCreatorEvent`

Discriminator `4045c0681d1e196b` · `events::admin_set_creator_event::AdminSetCreatorEventEvent`.

| Field                         | Type     |
| ----------------------------- | -------- |
| `timestamp`                   | `i64`    |
| `admin_set_creator_authority` | `Pubkey` |
| `mint`                        | `Pubkey` |
| `bonding_curve`               | `Pubkey` |
| `old_creator`                 | `Pubkey` |
| `new_creator`                 | `Pubkey` |

### `AdminSetIdlAuthorityEvent`

Discriminator `f53b46224bb96d5c` · `events::admin_set_idl_authority_event::AdminSetIdlAuthorityEventEvent`.

| Field           | Type     |
| --------------- | -------- |
| `idl_authority` | `Pubkey` |

### `AdminUpdateTokenIncentivesEvent`

Discriminator `93fa6c78f71d43de` · `events::admin_update_token_incentives_event::AdminUpdateTokenIncentivesEventEvent`.

| Field                  | Type     |
| ---------------------- | -------- |
| `start_time`           | `i64`    |
| `end_time`             | `i64`    |
| `day_number`           | `u64`    |
| `token_supply_per_day` | `u64`    |
| `mint`                 | `Pubkey` |
| `seconds_in_a_day`     | `i64`    |
| `timestamp`            | `i64`    |

### `ClaimCashbackEvent`

Discriminator `e2d6f62107f293e5` · `events::claim_cashback_event::ClaimCashbackEventEvent`.

| Field                   | Type     |
| ----------------------- | -------- |
| `user`                  | `Pubkey` |
| `amount`                | `u64`    |
| `timestamp`             | `i64`    |
| `total_claimed`         | `u64`    |
| `total_cashback_earned` | `u64`    |

### `ClaimTokenIncentivesEvent`

Discriminator `4facf631cd5bcee8` · `events::claim_token_incentives_event::ClaimTokenIncentivesEventEvent`.

| Field                  | Type     |
| ---------------------- | -------- |
| `user`                 | `Pubkey` |
| `mint`                 | `Pubkey` |
| `amount`               | `u64`    |
| `timestamp`            | `i64`    |
| `total_claimed_tokens` | `u64`    |
| `current_sol_volume`   | `u64`    |

### `CloseUserVolumeAccumulatorEvent`

Discriminator `929fbdac925838f4` · `events::close_user_volume_accumulator_event::CloseUserVolumeAccumulatorEventEvent`.

| Field                    | Type     |
| ------------------------ | -------- |
| `user`                   | `Pubkey` |
| `timestamp`              | `i64`    |
| `total_unclaimed_tokens` | `u64`    |
| `total_claimed_tokens`   | `u64`    |
| `current_sol_volume`     | `u64`    |
| `last_update_timestamp`  | `i64`    |

### `CollectCreatorFeeEvent`

Discriminator `7a027f010ebf0caf` · `events::collect_creator_fee_event::CollectCreatorFeeEventEvent`.

| Field         | Type     |
| ------------- | -------- |
| `timestamp`   | `i64`    |
| `creator`     | `Pubkey` |
| `creator_fee` | `u64`    |

### `CompleteEvent`

Discriminator `5f72619cd42e9808` · `events::complete_event::CompleteEventEvent`.

| Field           | Type     |
| --------------- | -------- |
| `user`          | `Pubkey` |
| `mint`          | `Pubkey` |
| `bonding_curve` | `Pubkey` |
| `timestamp`     | `i64`    |
| `quote_mint`    | `Pubkey` |

### `CompletePumpAmmMigrationEvent`

Discriminator `bde95db95c94ea94` · `events::complete_pump_amm_migration_event::CompletePumpAmmMigrationEventEvent`.

| Field                | Type     |
| -------------------- | -------- |
| `user`               | `Pubkey` |
| `mint`               | `Pubkey` |
| `mint_amount`        | `u64`    |
| `sol_amount`         | `u64`    |
| `pool_migration_fee` | `u64`    |
| `bonding_curve`      | `Pubkey` |
| `timestamp`          | `i64`    |
| `pool`               | `Pubkey` |

### `CreateEvent`

Discriminator `1b72a94ddeeb6376` · `events::create_event::CreateEventEvent`.

| Field                    | Type     |
| ------------------------ | -------- |
| `name`                   | `String` |
| `symbol`                 | `String` |
| `uri`                    | `String` |
| `mint`                   | `Pubkey` |
| `bonding_curve`          | `Pubkey` |
| `user`                   | `Pubkey` |
| `creator`                | `Pubkey` |
| `timestamp`              | `i64`    |
| `virtual_token_reserves` | `u64`    |
| `virtual_sol_reserves`   | `u64`    |
| `real_token_reserves`    | `u64`    |
| `token_total_supply`     | `u64`    |
| `token_program`          | `Pubkey` |
| `is_mayhem_mode`         | `bool`   |
| `is_cashback_enabled`    | `bool`   |
| `quote_mint`             | `Pubkey` |
| `virtual_quote_reserves` | `u64`    |

### `DistributeCreatorFeesEvent`

Discriminator `a537817004b3ca28` · `events::distribute_creator_fees_event::DistributeCreatorFeesEventEvent`.

| Field            | Type                               |
| ---------------- | ---------------------------------- |
| `timestamp`      | `i64`                              |
| `mint`           | `Pubkey`                           |
| `bonding_curve`  | `Pubkey`                           |
| `sharing_config` | `Pubkey`                           |
| `admin`          | `Pubkey`                           |
| `shareholders`   | [`Vec<Shareholder>`](#shareholder) |
| `distributed`    | `u64`                              |

### `ExtendAccountEvent`

Discriminator `6161d7905d92167c` · `events::extend_account_event::ExtendAccountEventEvent`.

| Field          | Type     |
| -------------- | -------- |
| `account`      | `Pubkey` |
| `user`         | `Pubkey` |
| `current_size` | `u64`    |
| `new_size`     | `u64`    |
| `timestamp`    | `i64`    |

### `InitUserVolumeAccumulatorEvent`

Discriminator `86240d48e86582d8` · `events::init_user_volume_accumulator_event::InitUserVolumeAccumulatorEventEvent`.

| Field       | Type     |
| ----------- | -------- |
| `payer`     | `Pubkey` |
| `user`      | `Pubkey` |
| `timestamp` | `i64`    |

### `MigrateBondingCurveCreatorEvent`

Discriminator `9ba768dcd56cf303` · `events::migrate_bonding_curve_creator_event::MigrateBondingCurveCreatorEventEvent`.

| Field            | Type     |
| ---------------- | -------- |
| `timestamp`      | `i64`    |
| `mint`           | `Pubkey` |
| `bonding_curve`  | `Pubkey` |
| `sharing_config` | `Pubkey` |
| `old_creator`    | `Pubkey` |
| `new_creator`    | `Pubkey` |

### `MinimumDistributableFeeEvent`

Discriminator `a8d884efebb63134` · `events::minimum_distributable_fee_event::MinimumDistributableFeeEventEvent`.

| Field                | Type   |
| -------------------- | ------ |
| `minimum_required`   | `u64`  |
| `distributable_fees` | `u64`  |
| `can_distribute`     | `bool` |

### `ReservedFeeRecipientsEvent`

Discriminator `2bbcfa12dd4bbb5f` · `events::reserved_fee_recipients_event::ReservedFeeRecipientsEventEvent`.

| Field                     | Type          |
| ------------------------- | ------------- |
| `timestamp`               | `i64`         |
| `reserved_fee_recipient`  | `Pubkey`      |
| `reserved_fee_recipients` | `[Pubkey; 7]` |

### `SetCreatorEvent`

Discriminator `ed347b25f5fb48d2` · `events::set_creator_event::SetCreatorEventEvent`.

| Field           | Type     |
| --------------- | -------- |
| `timestamp`     | `i64`    |
| `mint`          | `Pubkey` |
| `bonding_curve` | `Pubkey` |
| `creator`       | `Pubkey` |

### `SetMetaplexCreatorEvent`

Discriminator `8ecb06207f69bfa2` · `events::set_metaplex_creator_event::SetMetaplexCreatorEventEvent`.

| Field           | Type     |
| --------------- | -------- |
| `timestamp`     | `i64`    |
| `mint`          | `Pubkey` |
| `bonding_curve` | `Pubkey` |
| `metadata`      | `Pubkey` |
| `creator`       | `Pubkey` |

### `SetParamsEvent`

Discriminator `dfc39ff63e308f83` · `events::set_params_event::SetParamsEventEvent`.

| Field                            | Type          |
| -------------------------------- | ------------- |
| `initial_virtual_token_reserves` | `u64`         |
| `initial_virtual_sol_reserves`   | `u64`         |
| `initial_real_token_reserves`    | `u64`         |
| `final_real_sol_reserves`        | `u64`         |
| `token_total_supply`             | `u64`         |
| `fee_basis_points`               | `u64`         |
| `withdraw_authority`             | `Pubkey`      |
| `enable_migrate`                 | `bool`        |
| `pool_migration_fee`             | `u64`         |
| `creator_fee_basis_points`       | `u64`         |
| `fee_recipients`                 | `[Pubkey; 8]` |
| `timestamp`                      | `i64`         |
| `set_creator_authority`          | `Pubkey`      |
| `admin_set_creator_authority`    | `Pubkey`      |

### `SyncUserVolumeAccumulatorEvent`

Discriminator `c57aa77c74515bff` · `events::sync_user_volume_accumulator_event::SyncUserVolumeAccumulatorEventEvent`.

| Field                         | Type     |
| ----------------------------- | -------- |
| `user`                        | `Pubkey` |
| `total_claimed_tokens_before` | `u64`    |
| `total_claimed_tokens_after`  | `u64`    |
| `timestamp`                   | `i64`    |

### `TradeEvent`

Discriminator `bddb7fd34ee661ee` · `events::trade_event::TradeEventEvent`.

| Field                       | Type                               |
| --------------------------- | ---------------------------------- |
| `mint`                      | `Pubkey`                           |
| `sol_amount`                | `u64`                              |
| `token_amount`              | `u64`                              |
| `is_buy`                    | `bool`                             |
| `user`                      | `Pubkey`                           |
| `timestamp`                 | `i64`                              |
| `virtual_sol_reserves`      | `u64`                              |
| `virtual_token_reserves`    | `u64`                              |
| `real_sol_reserves`         | `u64`                              |
| `real_token_reserves`       | `u64`                              |
| `fee_recipient`             | `Pubkey`                           |
| `fee_basis_points`          | `u64`                              |
| `fee`                       | `u64`                              |
| `creator`                   | `Pubkey`                           |
| `creator_fee_basis_points`  | `u64`                              |
| `creator_fee`               | `u64`                              |
| `track_volume`              | `bool`                             |
| `total_unclaimed_tokens`    | `u64`                              |
| `total_claimed_tokens`      | `u64`                              |
| `current_sol_volume`        | `u64`                              |
| `last_update_timestamp`     | `i64`                              |
| `ix_name`                   | `String`                           |
| `mayhem_mode`               | `bool`                             |
| `cashback_fee_basis_points` | `u64`                              |
| `cashback`                  | `u64`                              |
| `buyback_fee_basis_points`  | `u64`                              |
| `buyback_fee`               | `u64`                              |
| `shareholders`              | [`Vec<Shareholder>`](#shareholder) |
| `quote_mint`                | `Pubkey`                           |
| `quote_amount`              | `u64`                              |
| `virtual_quote_reserves`    | `u64`                              |
| `real_quote_reserves`       | `u64`                              |

### `UpdateGlobalAuthorityEvent`

Discriminator `b6c3892a23cecff7` · `events::update_global_authority_event::UpdateGlobalAuthorityEventEvent`.

| Field           | Type     |
| --------------- | -------- |
| `global`        | `Pubkey` |
| `authority`     | `Pubkey` |
| `new_authority` | `Pubkey` |
| `timestamp`     | `i64`    |

### `UpdateMayhemVirtualParamsEvent`

Discriminator `757be4b6a1a8dcd6` · `events::update_mayhem_virtual_params_event::UpdateMayhemVirtualParamsEventEvent`.

| Field                        | Type     |
| ---------------------------- | -------- |
| `timestamp`                  | `i64`    |
| `mint`                       | `Pubkey` |
| `virtual_token_reserves`     | `u64`    |
| `virtual_sol_reserves`       | `u64`    |
| `new_virtual_token_reserves` | `u64`    |
| `new_virtual_sol_reserves`   | `u64`    |
| `real_token_reserves`        | `u64`    |
| `real_sol_reserves`          | `u64`    |

## Types

Types used by the instructions, accounts and events above, exported from `carbon_pumpfun_decoder::types`.

### `AdminSetCreatorEvent`

Struct `types::AdminSetCreatorEvent`. Same fields as the [`AdminSetCreatorEvent`](#adminsetcreatorevent) event.

### `AdminSetIdlAuthorityEvent`

Struct `types::AdminSetIdlAuthorityEvent`. Same fields as the [`AdminSetIdlAuthorityEvent`](#adminsetidlauthorityevent) event.

### `AdminUpdateTokenIncentivesEvent`

Struct `types::AdminUpdateTokenIncentivesEvent`. Same fields as the [`AdminUpdateTokenIncentivesEvent`](#adminupdatetokenincentivesevent) event.

### `ClaimCashbackEvent`

Struct `types::ClaimCashbackEvent`. Same fields as the [`ClaimCashbackEvent`](#claimcashbackevent) event.

### `ClaimTokenIncentivesEvent`

Struct `types::ClaimTokenIncentivesEvent`. Same fields as the [`ClaimTokenIncentivesEvent`](#claimtokenincentivesevent) event.

### `CloseUserVolumeAccumulatorEvent`

Struct `types::CloseUserVolumeAccumulatorEvent`. Same fields as the [`CloseUserVolumeAccumulatorEvent`](#closeuservolumeaccumulatorevent) event.

### `CollectCreatorFeeEvent`

Struct `types::CollectCreatorFeeEvent`. Same fields as the [`CollectCreatorFeeEvent`](#collectcreatorfeeevent) event.

### `CompleteEvent`

Struct `types::CompleteEvent`. Same fields as the [`CompleteEvent`](#completeevent) event.

### `CompletePumpAmmMigrationEvent`

Struct `types::CompletePumpAmmMigrationEvent`. Same fields as the [`CompletePumpAmmMigrationEvent`](#completepumpammmigrationevent) event.

### `ConfigStatus`

Enum `types::ConfigStatus`.

| Variant  |
| -------- |
| `Paused` |
| `Active` |

### `CreateEvent`

Struct `types::CreateEvent`. Same fields as the [`CreateEvent`](#createevent) event.

### `DistributeCreatorFeesEvent`

Struct `types::DistributeCreatorFeesEvent`. Same fields as the [`DistributeCreatorFeesEvent`](#distributecreatorfeesevent) event.

### `ExtendAccountEvent`

Struct `types::ExtendAccountEvent`. Same fields as the [`ExtendAccountEvent`](#extendaccountevent) event.

### `Fees`

Struct `types::Fees`.

| Field              | Type  |
| ------------------ | ----- |
| `lp_fee_bps`       | `u64` |
| `protocol_fee_bps` | `u64` |
| `creator_fee_bps`  | `u64` |

### `FeeTier`

Struct `types::FeeTier`.

| Field                           | Type            |
| ------------------------------- | --------------- |
| `market_cap_lamports_threshold` | `u128`          |
| `fees`                          | [`Fees`](#fees) |

### `InitUserVolumeAccumulatorEvent`

Struct `types::InitUserVolumeAccumulatorEvent`. Same fields as the [`InitUserVolumeAccumulatorEvent`](#inituservolumeaccumulatorevent) event.

### `MigrateBondingCurveCreatorEvent`

Struct `types::MigrateBondingCurveCreatorEvent`. Same fields as the [`MigrateBondingCurveCreatorEvent`](#migratebondingcurvecreatorevent) event.

### `MinimumDistributableFeeEvent`

Struct `types::MinimumDistributableFeeEvent`. Same fields as the [`MinimumDistributableFeeEvent`](#minimumdistributablefeeevent) event.

### `OptionBool`

Tuple struct `types::OptionBool` (`bool`).

### `ReservedFeeRecipientsEvent`

Struct `types::ReservedFeeRecipientsEvent`. Same fields as the [`ReservedFeeRecipientsEvent`](#reservedfeerecipientsevent) event.

### `SetCreatorEvent`

Struct `types::SetCreatorEvent`. Same fields as the [`SetCreatorEvent`](#setcreatorevent) event.

### `SetMetaplexCreatorEvent`

Struct `types::SetMetaplexCreatorEvent`. Same fields as the [`SetMetaplexCreatorEvent`](#setmetaplexcreatorevent) event.

### `SetParamsEvent`

Struct `types::SetParamsEvent`. Same fields as the [`SetParamsEvent`](#setparamsevent) event.

### `Shareholder`

Struct `types::Shareholder`.

| Field       | Type     |
| ----------- | -------- |
| `address`   | `Pubkey` |
| `share_bps` | `u16`    |

### `SyncUserVolumeAccumulatorEvent`

Struct `types::SyncUserVolumeAccumulatorEvent`. Same fields as the [`SyncUserVolumeAccumulatorEvent`](#syncuservolumeaccumulatorevent) event.

### `TradeEvent`

> _From the program's IDL:_
>
> ix_name: "buy" | "sell" | "buy_exact_sol_in"

Struct `types::TradeEvent`. Same fields as the [`TradeEvent`](#tradeevent) event.

### `UpdateGlobalAuthorityEvent`

Struct `types::UpdateGlobalAuthorityEvent`. Same fields as the [`UpdateGlobalAuthorityEvent`](#updateglobalauthorityevent) event.

### `UpdateMayhemVirtualParamsEvent`

Struct `types::UpdateMayhemVirtualParamsEvent`. Same fields as the [`UpdateMayhemVirtualParamsEvent`](#updatemayhemvirtualparamsevent) event.

---

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