PUMPTRACE Follow
$PTRACE · tracing onchain

PUMPTRACE

~$
PUMPTRACE mascot in a black cap and mint sunglasses
tracing tx…
01 · trading mechanics

The bonding curve, live

Every PumpFun token starts on a constant-product curve with virtual reserves. Buy or sell and watch the price move along it

Tokens out / in—
Price before → after—
Price impact—
Real SOL in curve0.00

Curve progress 0%

x · y = k
x = virtual SOL · y = virtual tokens
price = x / y
02 · onchain instructions

What the program actually does

A simplified tour of the main instructions. Exact account lists and arguments live in the public IDLs

03 · accounts

Who holds what

🌐

Global

seeds: ["global"]

Program-wide settings: fee config, initial curve parameters, authority

📈

BondingCurve

seeds: ["bonding-curve", mint]

Per-token state: virtual and real reserves, supply, and a complete flag

🏦

Curve token account

ATA(bonding_curve, mint)

Holds the tokens the curve sells to buyers

📣

Event authority

seeds: ["__event_authority"]

Signs the self-CPI that emits trade and create events indexers read

04 · token lifecycle

From create to migrate

01

create

Mint, metadata and a fresh bonding curve account are set up

02

buy / sell

Trades move along the curve. Fees go to the configured recipients

03

complete

When the curve sells its real token reserve, it is marked complete

04

migrate

Liquidity moves to the AMM pool and trading continues there

05 · public docs, IDLs & code

We rebuilt the program from the binary

We wanted to see whether PumpFun's onchain program could be recovered without its original source code. So we pulled the deployed binary and reverse-engineered it into a readable implementation. Our reconstruction and analysis are on GitHub. A closer look under the hood of the pump 🟢

// how the reconstruction was made
1. pull the deployed program binary (.so)
2. disassemble the sBPF bytecode
3. map instructions, accounts & checks
4. rewrite it as readable code
5. compare behaviour with public IDLs

pumpfun-research/
└── pumpfun-research 2/ // reconstruction + analysis

$ git clone …
PUMPTRACE@pumptrace_

Under the hood of PumpFun: onchain instructions, accounts & trading mechanics. Public docs, IDLs and code on GitHub ↓

Read the thread on X →
PUMPTRACE banner with a capsule and the mascot