the official pump.fun docs
pump.fun's public documentation lives on GitHub in pump-fun/pump-public-docs. the repository has a docs folder with guides per instruction, and an idl folder with the program interfaces: pump (the bonding curve), pump_amm (PumpSwap) and pump_fees, each as JSON and TypeScript.
the README lists protocol changes by date. read it before shipping: changes such as rotated program accounts break code that was written against an older version.
| docs | github.com/pump-fun/pump-public-docs | guides per instruction and dated protocol changes |
|---|---|---|
| idl | pump-public-docs/idl | pump.json, pump_amm.json, pump_fees.json and their TypeScript versions |
the official SDKs
npm view @pump-fun/pump-sdk version
npm view @pump-fun/pump-swap-sdk version
- check the latest version on npm before you install: both packages move often.
| @pump-fun/pump-sdk | npm | the bonding curve: create coins, buy and sell before migration |
|---|---|---|
| @pump-fun/pump-swap-sdk | npm | PumpSwap, the AMM where coins trade after migration |
| pump-rust-client | crates.io | a Rust client, listed in the official docs |
what the SDKs do not cover: trader data
the SDKs build transactions. to know which wallets make money on pump.fun and what they are buying, you need trader data. copy.top's api returns pumpfun traders ranked by realized pnl, with win rate, hold time, positions and recent trades, free and without a key.
curl -s https://copy.top/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_leaderboard","arguments":{"window":"30d","sort":"realized","platform":"pumpfun","limit":20}}}'
- a handle that starts with pf_ is a pumpfun account: pass it to get_trader for the full profile.
what top pumpfun traders are buying now
curl -s https://copy.top/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_hot_coins","arguments":{"window":"1h"}}}'
- coins several tracked traders bought in the last hour, with dollars in and out, how many still hold and the buyers.
how the copy.top API works
- one endpoint: POST https://copy.top/mcp, JSON-RPC 2.0. use copy.top without www.
- the answer is in result.content[0].text, as a JSON string. the body can arrive as an event stream: read the first line that starts with "data: ".
- no key is needed for the public tools. the limit is about 20 calls a minute per address.
- a free key raises the limits. create it at copy.top/account#api and send it as Authorization: Bearer <key>.
- the same tools work as an MCP server in Claude, ChatGPT, Cursor and other agents, and from the terminal with npm i -g copytop.
faq
where are the official pump.fun docs?
on GitHub, in the pump-fun/pump-public-docs repository: guides per instruction, dated protocol changes and the program IDLs.
is there an official pump.fun SDK?
yes: @pump-fun/pump-sdk for the bonding curve and @pump-fun/pump-swap-sdk for PumpSwap, both on npm, plus pump-rust-client on crates.io.
where is the pump.fun IDL?
in the idl folder of pump-fun/pump-public-docs: pump, pump_amm and pump_fees, as JSON and TypeScript.
is there a pumpfun api for top traders?
pump.fun's SDKs do not rank traders. copy.top's api does: pumpfun traders by realized pnl, with positions, recent trades and what they are buying now. it is free and open without a key.
is copy.top's api the official pump.fun API?
no. it is copy.top's api about pumpfun traders. copy.top is independent and not affiliated with pump.fun.
can I place trades with copy.top's api?
no. it is read-only: nothing here places an order. to build transactions, use the official SDKs.
copy.top