Solana instructions › Pump.fun Bonding Curve › buy_exact_sol_in
Pump.fun Bonding Curve instruction. Program ID 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P. Position in this snapshot: 4.
Discriminator or tag: 0x38fc74089edfcd5f — published in the IDL snapshot.
Given a budget of spendable SOL, buy at least min_tokens_out Account creation and fees will be deducted from the spendable SOL f(sol) = tokens, where tokens >= min_tokens_out and sol > rent + fees max_slippage = min_tokens_out = 1 Make sure the sol budget is enough to cover creation of the following accounts (unless already created): - creator_vault: rent.minimum_balance(SystemAccount::LEN) - user
| # | Account | Role |
|---|---|---|
| 0 | global | read-only |
| 1 | fee_recipient | writable |
| 2 | mint | read-only |
| 3 | bonding_curve | writable |
| 4 | associated_bonding_curve | writable |
| 5 | associated_user | writable |
| 6 | user | writable, signer |
| 7 | system_program | read-only |
| 8 | token_program | read-only |
| 9 | creator_vault | writable |
| 10 | event_authority | read-only |
| 11 | program | read-only |
| 12 | global_volume_accumulator | writable |
| 13 | user_volume_accumulator | writable |
| 14 | fee_config | read-only |
| 15 | fee_program | read-only |
| Argument | Type |
|---|---|
| spendable_sol_in | u64 |
| min_tokens_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.