Pump.fun decoder
Decode Pump.fun instructions, accounts and events in Rust with carbon-pumpfun-decoder 2.0.0. Program ID 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P.
On this page
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 for how decoders plug into a pipeline.
| Crate | carbon-pumpfun-decoder 2.0.0 |
| Install | cargo add carbon-pumpfun-decoder@2. |
| Program ID | 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P (carbon_) |
| Category | Launchpads |
| Decoder | carbon_ |
| Instruction enum | instructions:: |
| Account enum | accounts:: |
| Event enum | instructions:: |
| Features | serde, postgres, graphql (none enabled by default) |
| API docs | docs.rs/carbon-pumpfun-decoder/2.0.0 |
| Source | decoders/pumpfun-decoder |
Other launchpad decoders: Boop, Meteora DBC, Moonshot, Raydium Launchpad, Vertigo, Virtuals, Wavebreak. To decode several in one pipeline, see launchpad decoders.
Guide: Track Pump.fun launches and trades.
The serde feature derives Serialize/Deserialize on every type, postgres adds tables and processors for Postgres, and graphql adds a schema for the GraphQL server.
Usage#
This program crawls recent Pump.fun transactions from the public RPC and prints every decoded Buy instruction. Add the dependencies:
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/fulluse {
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(())
}
}RUST_LOG=info cargo runEach 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 for the crawler options.
Events published with Anchor's emit_cpi! arrive as the CpiEvent instruction. Match them with PumpfunInstruction:: (import instructions::); see Events. If CpiEvent never arrives, the program logs its events with emit! instead: decode them with decode_.
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:
cargo add carbon-rpc-program-subscribe-datasource@2.0.0 solana-client@4.2.2use {
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(())
}
}RUST_LOG=info cargo runEach 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.
Instructions#
Variants of PumpfunInstruction. Each is PumpfunInstruction::, where data and accounts are the types listed under the variant, exported from carbon_. 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:
- The instruction's program ID is
6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P. - The data starts with the variant's discriminator, and the rest deserializes into its data type.
- 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_ too. Accounts after the listed ones are in accounts. as AccountMetas. The decoder doesn't record whether an account signed or was writable: read that from input. and ., 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_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 1 | global | Pubkey |
| 2 | mint | Pubkey |
| 3 | bonding_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
AdminSetIdlAuthority#
Discriminator 08d960e79068c005 · data AdminSetIdlAuthority · accounts AdminSetIdlAuthorityInstructionAccounts.
| Field | Type |
|---|---|
idl_ | 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_ | Pubkey |
| 4 | program_ | Pubkey |
| 5 | event_ | Pubkey |
| 6 | program | Pubkey |
| 7… | remaining | Vec< |
AdminUpdateTokenIncentives#
Discriminator d10b7357d5177ccc · data AdminUpdateTokenIncentives · accounts AdminUpdateTokenIncentivesInstructionAccounts.
| Field | Type |
|---|---|
start_time | i64 |
end_time | i64 |
seconds_ | i64 |
day_number | u64 |
pump_ | u64 |
Required accounts: 10; extras go to remaining.
Fields of AdminUpdateTokenIncentivesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | global | Pubkey |
| 2 | global_ | Pubkey |
| 3 | mint | Pubkey |
| 4 | global_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | system_ | Pubkey |
| 7 | token_ | Pubkey |
| 8 | event_ | Pubkey |
| 9 | program | Pubkey |
| 10… | remaining | Vec< |
Buy#
From the program's IDL:
Buys tokens from a bonding curve.
Discriminator 66063d1201daebea · data Buy · accounts BuyInstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
max_ | u64 |
track_ | OptionBool |
Required accounts: 16; extras go to remaining.
Fields of BuyInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | global | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | bonding_ | Pubkey |
| 4 | associated_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | user | Pubkey |
| 7 | system_ | Pubkey |
| 8 | token_ | Pubkey |
| 9 | creator_ | Pubkey |
| 10 | event_ | Pubkey |
| 11 | program | Pubkey |
| 12 | global_ | Pubkey |
| 13 | user_ | Pubkey |
| 14 | fee_config | Pubkey |
| 15 | fee_program | Pubkey |
| 16… | remaining | Vec< |
BuyExactQuoteInV2#
Discriminator c2ab1c46684d5b2f · data BuyExactQuoteInV2 · accounts BuyExactQuoteInV2InstructionAccounts.
| Field | Type |
|---|---|
spendable_ | u64 |
min_ | 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_ | Pubkey |
| 4 | quote_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | fee_ | Pubkey |
| 7 | associated_ | Pubkey |
| 8 | buyback_ | Pubkey |
| 9 | associated_ | Pubkey |
| 10 | bonding_ | Pubkey |
| 11 | associated_ | Pubkey |
| 12 | associated_ | Pubkey |
| 13 | user | Pubkey |
| 14 | associated_ | Pubkey |
| 15 | associated_ | Pubkey |
| 16 | creator_ | Pubkey |
| 17 | associated_ | Pubkey |
| 18 | sharing_ | Pubkey |
| 19 | global_ | Pubkey |
| 20 | user_ | Pubkey |
| 21 | associated_ | Pubkey |
| 22 | fee_config | Pubkey |
| 23 | fee_program | Pubkey |
| 24 | system_ | Pubkey |
| 25 | event_ | Pubkey |
| 26 | program | Pubkey |
| 27… | remaining | Vec< |
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:
- net_sol = floor(spendable_sol_in * 10_000 / (10_000 + total_fee_bps))
- 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)
- if net_sol + fees > spendable_sol_in: net_sol = net_sol - (net_sol + fees
- spendable_sol_in)
- 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:
- net_sol = ceil(tokens * virtual_sol_reserves / (virtual_token_reserves - tokens)) + 1
- 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_ | u64 |
min_ | u64 |
track_ | OptionBool |
Required accounts: 16; extras go to remaining.
Fields of BuyExactSolInInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | global | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | bonding_ | Pubkey |
| 4 | associated_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | user | Pubkey |
| 7 | system_ | Pubkey |
| 8 | token_ | Pubkey |
| 9 | creator_ | Pubkey |
| 10 | event_ | Pubkey |
| 11 | program | Pubkey |
| 12 | global_ | Pubkey |
| 13 | user_ | Pubkey |
| 14 | fee_config | Pubkey |
| 15 | fee_program | Pubkey |
| 16… | remaining | Vec< |
BuyV2#
Discriminator b817ee6167c5d33d · data BuyV2 · accounts BuyV2InstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
max_ | 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_ | Pubkey |
| 4 | quote_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | fee_ | Pubkey |
| 7 | associated_ | Pubkey |
| 8 | buyback_ | Pubkey |
| 9 | associated_ | Pubkey |
| 10 | bonding_ | Pubkey |
| 11 | associated_ | Pubkey |
| 12 | associated_ | Pubkey |
| 13 | user | Pubkey |
| 14 | associated_ | Pubkey |
| 15 | associated_ | Pubkey |
| 16 | creator_ | Pubkey |
| 17 | associated_ | Pubkey |
| 18 | sharing_ | Pubkey |
| 19 | global_ | Pubkey |
| 20 | user_ | Pubkey |
| 21 | associated_ | Pubkey |
| 22 | fee_config | Pubkey |
| 23 | fee_program | Pubkey |
| 24 | system_ | Pubkey |
| 25 | event_ | Pubkey |
| 26 | program | Pubkey |
| 27… | remaining | Vec< |
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_ | Pubkey |
| 2 | system_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
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_ | Pubkey |
| 2 | quote_mint | Pubkey |
| 3 | quote_ | Pubkey |
| 4 | associated_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | associated_ | Pubkey |
| 7 | system_ | Pubkey |
| 8 | event_ | Pubkey |
| 9 | program | Pubkey |
| 10… | remaining | Vec< |
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_ | Pubkey |
| 3 | global_ | Pubkey |
| 4 | user_ | Pubkey |
| 5 | mint | Pubkey |
| 6 | token_ | Pubkey |
| 7 | system_ | Pubkey |
| 8 | associated_ | Pubkey |
| 9 | event_ | Pubkey |
| 10 | program | Pubkey |
| 11 | payer | Pubkey |
| 12… | remaining | Vec< |
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_ | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 2 | system_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
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_ | Pubkey |
| 2 | bonding_ | Pubkey |
| 3 | associated_ | Pubkey |
| 4 | global | Pubkey |
| 5 | mpl_ | Pubkey |
| 6 | metadata | Pubkey |
| 7 | user | Pubkey |
| 8 | system_ | Pubkey |
| 9 | token_ | Pubkey |
| 10 | associated_ | Pubkey |
| 11 | rent | Pubkey |
| 12 | event_ | Pubkey |
| 13 | program | Pubkey |
| 14… | remaining | Vec< |
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_ | bool |
is_ | OptionBool |
Required accounts: 16; extras go to remaining.
Fields of CreateV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | mint | Pubkey |
| 1 | mint_ | Pubkey |
| 2 | bonding_ | Pubkey |
| 3 | associated_ | Pubkey |
| 4 | global | Pubkey |
| 5 | user | Pubkey |
| 6 | system_ | Pubkey |
| 7 | token_ | Pubkey |
| 8 | associated_ | Pubkey |
| 9 | mayhem_ | Pubkey |
| 10 | global_ | Pubkey |
| 11 | sol_vault | Pubkey |
| 12 | mayhem_ | Pubkey |
| 13 | mayhem_ | Pubkey |
| 14 | event_ | Pubkey |
| 15 | program | Pubkey |
| 16… | remaining | Vec< |
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_ | Pubkey |
| 2 | sharing_ | Pubkey |
| 3 | creator_ | Pubkey |
| 4 | system_ | Pubkey |
| 5 | event_ | Pubkey |
| 6 | program | Pubkey |
| 7… | remaining | Vec< |
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_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
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_ | Pubkey |
| 2 | sharing_ | Pubkey |
| 3 | creator_ | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 3… | remaining | Vec< |
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_ | Pubkey |
| 3 | system_ | Pubkey |
| 4 | event_ | Pubkey |
| 5 | program | Pubkey |
| 6… | remaining | Vec< |
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_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | bonding_ | Pubkey |
| 4 | associated_ | Pubkey |
| 5 | user | Pubkey |
| 6 | system_ | Pubkey |
| 7 | token_ | Pubkey |
| 8 | pump_amm | Pubkey |
| 9 | pool | Pubkey |
| 10 | pool_ | Pubkey |
| 11 | pool_ | Pubkey |
| 12 | pool_ | Pubkey |
| 13 | amm_ | Pubkey |
| 14 | wsol_mint | Pubkey |
| 15 | lp_mint | Pubkey |
| 16 | user_ | Pubkey |
| 17 | pool_ | Pubkey |
| 18 | pool_ | Pubkey |
| 19 | token2022_ | Pubkey |
| 20 | associated_ | Pubkey |
| 21 | pump_ | Pubkey |
| 22 | event_ | Pubkey |
| 23 | program | Pubkey |
| 24 | rent | Pubkey |
| 25… | remaining | Vec< |
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_ | Pubkey |
| 2 | sharing_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
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_ | Pubkey |
| 2 | base_mint | Pubkey |
| 3 | quote_mint | Pubkey |
| 4 | bonding_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | associated_ | Pubkey |
| 7 | user | Pubkey |
| 8 | system_ | Pubkey |
| 9 | pump_amm | Pubkey |
| 10 | pool | Pubkey |
| 11 | pool_ | Pubkey |
| 12 | pool_ | Pubkey |
| 13 | pool_ | Pubkey |
| 14 | amm_ | Pubkey |
| 15 | lp_mint | Pubkey |
| 16 | user_ | Pubkey |
| 17 | pool_ | Pubkey |
| 18 | pool_ | Pubkey |
| 19 | base_ | Pubkey |
| 20 | quote_ | Pubkey |
| 21 | token2022_ | Pubkey |
| 22 | associated_ | Pubkey |
| 23 | pump_ | Pubkey |
| 24 | rent | Pubkey |
| 25 | event_ | Pubkey |
| 26 | program | Pubkey |
| 27… | remaining | Vec< |
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_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | u64 |
Required accounts: 14; extras go to remaining.
Fields of SellInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | global | Pubkey |
| 1 | fee_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | bonding_ | Pubkey |
| 4 | associated_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | user | Pubkey |
| 7 | system_ | Pubkey |
| 8 | creator_ | Pubkey |
| 9 | token_ | Pubkey |
| 10 | event_ | Pubkey |
| 11 | program | Pubkey |
| 12 | fee_config | Pubkey |
| 13 | fee_program | Pubkey |
| 14… | remaining | Vec< |
SellV2#
Discriminator 5df6823ce7e940b2 · data SellV2 · accounts SellV2InstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
min_ | 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_ | Pubkey |
| 4 | quote_ | Pubkey |
| 5 | associated_ | Pubkey |
| 6 | fee_ | Pubkey |
| 7 | associated_ | Pubkey |
| 8 | buyback_ | Pubkey |
| 9 | associated_ | Pubkey |
| 10 | bonding_ | Pubkey |
| 11 | associated_ | Pubkey |
| 12 | associated_ | Pubkey |
| 13 | user | Pubkey |
| 14 | associated_ | Pubkey |
| 15 | associated_ | Pubkey |
| 16 | creator_ | Pubkey |
| 17 | associated_ | Pubkey |
| 18 | sharing_ | Pubkey |
| 19 | user_ | Pubkey |
| 20 | associated_ | Pubkey |
| 21 | fee_config | Pubkey |
| 22 | fee_program | Pubkey |
| 23 | system_ | Pubkey |
| 24 | event_ | Pubkey |
| 25 | program | Pubkey |
| 26… | remaining | Vec< |
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_ | Pubkey |
| 1 | global | Pubkey |
| 2 | mint | Pubkey |
| 3 | metadata | Pubkey |
| 4 | bonding_ | Pubkey |
| 5 | event_ | Pubkey |
| 6 | program | Pubkey |
| 7… | remaining | Vec< |
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_ | Pubkey |
| 1 | mayhem_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | global | Pubkey |
| 4 | bonding_ | Pubkey |
| 5 | token_ | Pubkey |
| 6 | event_ | Pubkey |
| 7 | program | Pubkey |
| 8… | remaining | Vec< |
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_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
SetParams#
From the program's IDL:
Sets the global state parameters.
Discriminator 1beab2349302bb8d · data SetParams · accounts SetParamsInstructionAccounts.
| Field | Type |
|---|---|
initial_ | u64 |
initial_ | u64 |
initial_ | u64 |
token_ | u64 |
fee_ | u64 |
withdraw_ | Pubkey |
enable_ | bool |
pool_ | u64 |
creator_ | u64 |
set_ | Pubkey |
admin_ | Pubkey |
Required accounts: 4; extras go to remaining.
Fields of SetParamsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | global | Pubkey |
| 1 | authority | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
SetReservedFeeRecipients#
Discriminator 6faca2e87259d58e · data SetReservedFeeRecipients · accounts SetReservedFeeRecipientsInstructionAccounts.
| Field | Type |
|---|---|
whitelist_ | Pubkey |
Required accounts: 4; extras go to remaining.
Fields of SetReservedFeeRecipientsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | global | Pubkey |
| 1 | authority | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
SetVirtualQuoteReserves#
Discriminator 6587bf6809581460 · data SetVirtualQuoteReserves · accounts SetVirtualQuoteReservesInstructionAccounts.
| Field | Type |
|---|---|
initial_ | u64 |
Required accounts: 4; extras go to remaining.
Fields of SetVirtualQuoteReservesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | global | Pubkey |
| 1 | authority | Pubkey |
| 2 | event_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 2 | user_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
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_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
UpdateBuybackConfig#
Discriminator fbe0ab92a01a71e9 · data UpdateBuybackConfig · accounts UpdateBuybackConfigInstructionAccounts.
| Field | Type |
|---|---|
buyback_ | 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_ | Pubkey |
| 3 | program | Pubkey |
| 4… | remaining | Vec< |
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_ | Pubkey |
| 3 | event_ | Pubkey |
| 4 | program | Pubkey |
| 5… | remaining | Vec< |
CpiEvent#
Anchor self-CPI that carries one of the program's 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_ | Pubkey |
| 2… | remaining | Vec< |
Accounts#
Variants of PumpfunAccount. Each wraps a boxed struct from carbon_. decode_ only considers accounts owned by PROGRAM_ID and returns the first variant that matches.
BondingCurve#
Discriminator 17b7f83760d8ac60 · accounts::.
| Field | Type |
|---|---|
virtual_ | u64 |
virtual_ | u64 |
real_ | u64 |
real_ | u64 |
token_ | u64 |
complete | bool |
creator | Pubkey |
is_ | bool |
is_ | bool |
quote_mint | Pubkey |
FeeConfig#
Discriminator 8f3492bbdb7b4c9b · accounts::.
| Field | Type |
|---|---|
bump | u8 |
admin | Pubkey |
flat_fees | Fees |
fee_tiers | Vec< |
stable_ | Vec< |
Global#
Discriminator a7e8e8b1c86c727f · accounts::.
| Field | Type | Description |
|---|---|---|
initialized | bool | Unused |
authority | Pubkey | |
fee_ | Pubkey | |
initial_ | u64 | |
initial_ | u64 | |
initial_ | u64 | |
token_ | u64 | |
fee_ | u64 | |
withdraw_ | Pubkey | |
enable_ | bool | Unused |
pool_ | u64 | |
creator_ | u64 | |
fee_ | [Pubkey; 7] | |
set_ | Pubkey | |
admin_ | Pubkey | |
create_ | bool | |
whitelist_ | Pubkey | |
reserved_ | Pubkey | |
mayhem_ | bool | |
reserved_ | [Pubkey; 7] | |
is_ | bool | |
buyback_ | [Pubkey; 8] | |
buyback_ | u64 | |
initial_ | u64 | |
whitelisted_ | [Pubkey; 1] |
GlobalVolumeAccumulator#
Discriminator ca2af62b8ebe1eff · accounts::.
| Field | Type |
|---|---|
start_time | i64 |
end_time | i64 |
seconds_ | i64 |
mint | Pubkey |
total_ | [u64; 30] |
sol_volumes | [u64; 30] |
SharingConfig#
Discriminator d84a0900388c5d4b · accounts::.
| Field | Type |
|---|---|
bump | u8 |
version | u8 |
status | ConfigStatus |
mint | Pubkey |
admin | Pubkey |
admin_ | bool |
shareholders | Vec< |
UserVolumeAccumulator#
Discriminator 56ff700e66359afa · accounts::.
| Field | Type |
|---|---|
user | Pubkey |
needs_claim | bool |
total_ | u64 |
total_ | u64 |
current_ | u64 |
last_ | i64 |
has_ | bool |
cashback_ | u64 |
total_ | u64 |
Events#
Variants of instructions::, decoded from the CpiEvent instruction. Each wraps a struct from carbon_. The discriminator is the 8-byte event discriminator that follows the e445a52e51cb9a1d CPI-event tag.
AdminSetCreatorEvent#
Discriminator 4045c0681d1e196b · events::.
| Field | Type |
|---|---|
timestamp | i64 |
admin_ | Pubkey |
mint | Pubkey |
bonding_ | Pubkey |
old_creator | Pubkey |
new_creator | Pubkey |
AdminSetIdlAuthorityEvent#
Discriminator f53b46224bb96d5c · events::.
| Field | Type |
|---|---|
idl_ | Pubkey |
AdminUpdateTokenIncentivesEvent#
Discriminator 93fa6c78f71d43de · events::.
| Field | Type |
|---|---|
start_time | i64 |
end_time | i64 |
day_number | u64 |
token_ | u64 |
mint | Pubkey |
seconds_ | i64 |
timestamp | i64 |
ClaimCashbackEvent#
Discriminator e2d6f62107f293e5 · events::.
| Field | Type |
|---|---|
user | Pubkey |
amount | u64 |
timestamp | i64 |
total_ | u64 |
total_ | u64 |
ClaimTokenIncentivesEvent#
Discriminator 4facf631cd5bcee8 · events::.
| Field | Type |
|---|---|
user | Pubkey |
mint | Pubkey |
amount | u64 |
timestamp | i64 |
total_ | u64 |
current_ | u64 |
CloseUserVolumeAccumulatorEvent#
Discriminator 929fbdac925838f4 · events::.
| Field | Type |
|---|---|
user | Pubkey |
timestamp | i64 |
total_ | u64 |
total_ | u64 |
current_ | u64 |
last_ | i64 |
CollectCreatorFeeEvent#
Discriminator 7a027f010ebf0caf · events::.
| Field | Type |
|---|---|
timestamp | i64 |
creator | Pubkey |
creator_fee | u64 |
CompleteEvent#
Discriminator 5f72619cd42e9808 · events::.
| Field | Type |
|---|---|
user | Pubkey |
mint | Pubkey |
bonding_ | Pubkey |
timestamp | i64 |
quote_mint | Pubkey |
CompletePumpAmmMigrationEvent#
Discriminator bde95db95c94ea94 · events::.
| Field | Type |
|---|---|
user | Pubkey |
mint | Pubkey |
mint_amount | u64 |
sol_amount | u64 |
pool_ | u64 |
bonding_ | Pubkey |
timestamp | i64 |
pool | Pubkey |
CreateEvent#
Discriminator 1b72a94ddeeb6376 · events::.
| Field | Type |
|---|---|
name | String |
symbol | String |
uri | String |
mint | Pubkey |
bonding_ | Pubkey |
user | Pubkey |
creator | Pubkey |
timestamp | i64 |
virtual_ | u64 |
virtual_ | u64 |
real_ | u64 |
token_ | u64 |
token_ | Pubkey |
is_ | bool |
is_ | bool |
quote_mint | Pubkey |
virtual_ | u64 |
DistributeCreatorFeesEvent#
Discriminator a537817004b3ca28 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
bonding_ | Pubkey |
sharing_ | Pubkey |
admin | Pubkey |
shareholders | Vec< |
distributed | u64 |
ExtendAccountEvent#
Discriminator 6161d7905d92167c · events::.
| Field | Type |
|---|---|
account | Pubkey |
user | Pubkey |
current_ | u64 |
new_size | u64 |
timestamp | i64 |
InitUserVolumeAccumulatorEvent#
Discriminator 86240d48e86582d8 · events::.
| Field | Type |
|---|---|
payer | Pubkey |
user | Pubkey |
timestamp | i64 |
MigrateBondingCurveCreatorEvent#
Discriminator 9ba768dcd56cf303 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
bonding_ | Pubkey |
sharing_ | Pubkey |
old_creator | Pubkey |
new_creator | Pubkey |
MinimumDistributableFeeEvent#
Discriminator a8d884efebb63134 · events::.
| Field | Type |
|---|---|
minimum_ | u64 |
distributable_ | u64 |
can_ | bool |
ReservedFeeRecipientsEvent#
Discriminator 2bbcfa12dd4bbb5f · events::.
| Field | Type |
|---|---|
timestamp | i64 |
reserved_ | Pubkey |
reserved_ | [Pubkey; 7] |
SetCreatorEvent#
Discriminator ed347b25f5fb48d2 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
bonding_ | Pubkey |
creator | Pubkey |
SetMetaplexCreatorEvent#
Discriminator 8ecb06207f69bfa2 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
bonding_ | Pubkey |
metadata | Pubkey |
creator | Pubkey |
SetParamsEvent#
Discriminator dfc39ff63e308f83 · events::.
| Field | Type |
|---|---|
initial_ | u64 |
initial_ | u64 |
initial_ | u64 |
final_ | u64 |
token_ | u64 |
fee_ | u64 |
withdraw_ | Pubkey |
enable_ | bool |
pool_ | u64 |
creator_ | u64 |
fee_ | [Pubkey; 8] |
timestamp | i64 |
set_ | Pubkey |
admin_ | Pubkey |
SyncUserVolumeAccumulatorEvent#
Discriminator c57aa77c74515bff · events::.
| Field | Type |
|---|---|
user | Pubkey |
total_ | u64 |
total_ | u64 |
timestamp | i64 |
TradeEvent#
Discriminator bddb7fd34ee661ee · events::.
| Field | Type |
|---|---|
mint | Pubkey |
sol_amount | u64 |
token_ | u64 |
is_buy | bool |
user | Pubkey |
timestamp | i64 |
virtual_ | u64 |
virtual_ | u64 |
real_ | u64 |
real_ | u64 |
fee_ | Pubkey |
fee_ | u64 |
fee | u64 |
creator | Pubkey |
creator_ | u64 |
creator_fee | u64 |
track_ | bool |
total_ | u64 |
total_ | u64 |
current_ | u64 |
last_ | i64 |
ix_name | String |
mayhem_mode | bool |
cashback_ | u64 |
cashback | u64 |
buyback_ | u64 |
buyback_fee | u64 |
shareholders | Vec< |
quote_mint | Pubkey |
quote_ | u64 |
virtual_ | u64 |
real_ | u64 |
UpdateGlobalAuthorityEvent#
Discriminator b6c3892a23cecff7 · events::.
| Field | Type |
|---|---|
global | Pubkey |
authority | Pubkey |
new_ | Pubkey |
timestamp | i64 |
UpdateMayhemVirtualParamsEvent#
Discriminator 757be4b6a1a8dcd6 · events::.
| Field | Type |
|---|---|
timestamp | i64 |
mint | Pubkey |
virtual_ | u64 |
virtual_ | u64 |
new_ | u64 |
new_ | u64 |
real_ | u64 |
real_ | u64 |
Types#
Types used by the instructions, accounts and events above, exported from carbon_.
AdminSetCreatorEvent#
Struct types::. Same fields as the AdminSetCreatorEvent event.
AdminSetIdlAuthorityEvent#
Struct types::. Same fields as the AdminSetIdlAuthorityEvent event.
AdminUpdateTokenIncentivesEvent#
Struct types::. Same fields as the AdminUpdateTokenIncentivesEvent event.
ClaimCashbackEvent#
Struct types::. Same fields as the ClaimCashbackEvent event.
ClaimTokenIncentivesEvent#
Struct types::. Same fields as the ClaimTokenIncentivesEvent event.
CloseUserVolumeAccumulatorEvent#
Struct types::. Same fields as the CloseUserVolumeAccumulatorEvent event.
CollectCreatorFeeEvent#
Struct types::. Same fields as the CollectCreatorFeeEvent event.
CompleteEvent#
Struct types::. Same fields as the CompleteEvent event.
CompletePumpAmmMigrationEvent#
Struct types::. Same fields as the CompletePumpAmmMigrationEvent event.
ConfigStatus#
Enum types::.
| Variant |
|---|
Paused |
Active |
CreateEvent#
Struct types::. Same fields as the CreateEvent event.
DistributeCreatorFeesEvent#
Struct types::. Same fields as the DistributeCreatorFeesEvent event.
ExtendAccountEvent#
Struct types::. Same fields as the ExtendAccountEvent event.
Fees#
Struct types::Fees.
| Field | Type |
|---|---|
lp_fee_bps | u64 |
protocol_ | u64 |
creator_ | u64 |
FeeTier#
Struct types::.
| Field | Type |
|---|---|
market_ | u128 |
fees | Fees |
InitUserVolumeAccumulatorEvent#
Struct types::. Same fields as the InitUserVolumeAccumulatorEvent event.
MigrateBondingCurveCreatorEvent#
Struct types::. Same fields as the MigrateBondingCurveCreatorEvent event.
MinimumDistributableFeeEvent#
Struct types::. Same fields as the MinimumDistributableFeeEvent event.
OptionBool#
Tuple struct types:: (bool).
ReservedFeeRecipientsEvent#
Struct types::. Same fields as the ReservedFeeRecipientsEvent event.
SetCreatorEvent#
Struct types::. Same fields as the SetCreatorEvent event.
SetMetaplexCreatorEvent#
Struct types::. Same fields as the SetMetaplexCreatorEvent event.
SetParamsEvent#
Struct types::. Same fields as the SetParamsEvent event.
Shareholder#
Struct types::.
| Field | Type |
|---|---|
address | Pubkey |
share_bps | u16 |
SyncUserVolumeAccumulatorEvent#
Struct types::. Same fields as the SyncUserVolumeAccumulatorEvent event.
TradeEvent#
From the program's IDL:
ix_name: "buy" | "sell" | "buy_exact_sol_in"
Struct types::. Same fields as the TradeEvent event.
UpdateGlobalAuthorityEvent#
Struct types::. Same fields as the UpdateGlobalAuthorityEvent event.
UpdateMayhemVirtualParamsEvent#
Struct types::. Same fields as the UpdateMayhemVirtualParamsEvent event.