Solana instructions › PumpSwap AMM › buy_exact_quote_in
PumpSwap AMM instruction. Program ID pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA. Position in this snapshot: 3.
Discriminator or tag: 0xc62e1552b4d9e870 — published in the IDL snapshot.
Given a budget of spendable_quote_in, buy at least min_base_amount_out Fees will be deducted from spendable_quote_in f(quote) = tokens, where tokens >= min_base_amount_out Make sure the payer has enough SOL to cover creation of the following accounts (unless already created): - protocol_fee_recipient_token_account: rent.minimum_balance(TokenAccount::LEN) - coin_creator_vault_ata: rent.minimum_bala
| # | Account | Role |
|---|---|---|
| 0 | pool | read-only |
| 1 | user | writable, signer |
| 2 | global_config | read-only |
| 3 | base_mint | read-only |
| 4 | quote_mint | read-only |
| 5 | user_base_token_account | writable |
| 6 | user_quote_token_account | writable |
| 7 | pool_base_token_account | writable |
| 8 | pool_quote_token_account | writable |
| 9 | protocol_fee_recipient | read-only |
| 10 | protocol_fee_recipient_token_account | writable |
| 11 | base_token_program | read-only |
| 12 | quote_token_program | read-only |
| 13 | system_program | read-only |
| 14 | associated_token_program | read-only |
| 15 | event_authority | read-only |
| 16 | program | read-only |
| 17 | coin_creator_vault_ata | writable |
| 18 | coin_creator_vault_authority | read-only |
| 19 | global_volume_accumulator | writable |
| 20 | user_volume_accumulator | writable |
| 21 | fee_config | read-only |
| 22 | fee_program | read-only |
| Argument | Type |
|---|---|
| spendable_quote_in | u64 |
| min_base_amount_out | u64 |
To see which instructions a confirmed transaction actually ran, paste its signature into the Rugsight transaction explainer.
Instruction lists and published discriminators come from solana-idls@1.2.1 (MIT) and, for the System Program, Compute Budget and Associated Token Account programs, from their public instruction enums (Apache-2.0). Snapshot date 2026-11-17. Programs can upgrade, so a live program may differ from this snapshot. Computed Anchor discriminators are the first 8 bytes of sha256("global:<snake_case_name>") and are labelled as computed.