@tapline/client 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/cjs/client.d.ts +8 -0
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +12 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/birdeye/client.d.ts +39 -0
- package/dist/cjs/services/birdeye/client.d.ts.map +1 -0
- package/dist/cjs/services/birdeye/client.js +92 -0
- package/dist/cjs/services/birdeye/client.js.map +1 -0
- package/dist/cjs/services/birdeye/index.d.ts +3 -0
- package/dist/cjs/services/birdeye/index.d.ts.map +1 -0
- package/dist/cjs/services/birdeye/index.js +22 -0
- package/dist/cjs/services/birdeye/index.js.map +1 -0
- package/dist/cjs/services/birdeye/types.d.ts +1388 -0
- package/dist/cjs/services/birdeye/types.d.ts.map +1 -0
- package/dist/cjs/services/birdeye/types.js +4 -0
- package/dist/cjs/services/birdeye/types.js.map +1 -0
- package/dist/cjs/services/instagram/client.d.ts +31 -0
- package/dist/cjs/services/instagram/client.d.ts.map +1 -0
- package/dist/cjs/services/instagram/client.js +60 -0
- package/dist/cjs/services/instagram/client.js.map +1 -0
- package/dist/cjs/services/instagram/index.d.ts +3 -0
- package/dist/cjs/services/instagram/index.d.ts.map +1 -0
- package/dist/cjs/services/instagram/index.js +22 -0
- package/dist/cjs/services/instagram/index.js.map +1 -0
- package/dist/cjs/services/instagram/types.d.ts +2420 -0
- package/dist/cjs/services/instagram/types.d.ts.map +1 -0
- package/dist/cjs/services/instagram/types.js +4 -0
- package/dist/cjs/services/instagram/types.js.map +1 -0
- package/dist/cjs/services/pinterest/client.d.ts +2 -2
- package/dist/cjs/services/pinterest/client.d.ts.map +1 -1
- package/dist/cjs/services/pinterest/client.js +2 -2
- package/dist/cjs/services/pinterest/client.js.map +1 -1
- package/dist/cjs/services/pinterest/types.d.ts +0 -12
- package/dist/cjs/services/pinterest/types.d.ts.map +1 -1
- package/dist/cjs/services/pumpfun/client.d.ts +285 -0
- package/dist/cjs/services/pumpfun/client.d.ts.map +1 -0
- package/dist/cjs/services/pumpfun/client.js +649 -0
- package/dist/cjs/services/pumpfun/client.js.map +1 -0
- package/dist/cjs/services/pumpfun/index.d.ts +3 -0
- package/dist/cjs/services/pumpfun/index.d.ts.map +1 -0
- package/dist/cjs/services/pumpfun/index.js +22 -0
- package/dist/cjs/services/pumpfun/index.js.map +1 -0
- package/dist/cjs/services/pumpfun/types.d.ts +4853 -0
- package/dist/cjs/services/pumpfun/types.d.ts.map +1 -0
- package/dist/cjs/services/pumpfun/types.js +4 -0
- package/dist/cjs/services/pumpfun/types.js.map +1 -0
- package/dist/cjs/services/tiktok/client.d.ts +35 -0
- package/dist/cjs/services/tiktok/client.d.ts.map +1 -0
- package/dist/cjs/services/tiktok/client.js +68 -0
- package/dist/cjs/services/tiktok/client.js.map +1 -0
- package/dist/cjs/services/tiktok/index.d.ts +3 -0
- package/dist/cjs/services/tiktok/index.d.ts.map +1 -0
- package/dist/cjs/services/tiktok/index.js +22 -0
- package/dist/cjs/services/tiktok/index.js.map +1 -0
- package/dist/cjs/services/tiktok/types.d.ts +2427 -0
- package/dist/cjs/services/tiktok/types.d.ts.map +1 -0
- package/dist/cjs/services/tiktok/types.js +4 -0
- package/dist/cjs/services/tiktok/types.js.map +1 -0
- package/dist/cjs/services/twitter/client.d.ts +5 -5
- package/dist/cjs/services/twitter/client.d.ts.map +1 -1
- package/dist/cjs/services/twitter/client.js +5 -5
- package/dist/cjs/services/twitter/client.js.map +1 -1
- package/dist/cjs/services/twitter/types.d.ts +0 -15
- package/dist/cjs/services/twitter/types.d.ts.map +1 -1
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/services/birdeye/client.d.ts +39 -0
- package/dist/services/birdeye/client.d.ts.map +1 -0
- package/dist/services/birdeye/client.js +88 -0
- package/dist/services/birdeye/client.js.map +1 -0
- package/dist/services/birdeye/index.d.ts +3 -0
- package/dist/services/birdeye/index.d.ts.map +1 -0
- package/dist/services/birdeye/index.js +4 -0
- package/dist/services/birdeye/index.js.map +1 -0
- package/dist/services/birdeye/types.d.ts +1388 -0
- package/dist/services/birdeye/types.d.ts.map +1 -0
- package/dist/services/birdeye/types.js +3 -0
- package/dist/services/birdeye/types.js.map +1 -0
- package/dist/services/instagram/client.d.ts +31 -0
- package/dist/services/instagram/client.d.ts.map +1 -0
- package/dist/services/instagram/client.js +56 -0
- package/dist/services/instagram/client.js.map +1 -0
- package/dist/services/instagram/index.d.ts +3 -0
- package/dist/services/instagram/index.d.ts.map +1 -0
- package/dist/services/instagram/index.js +4 -0
- package/dist/services/instagram/index.js.map +1 -0
- package/dist/services/instagram/types.d.ts +2420 -0
- package/dist/services/instagram/types.d.ts.map +1 -0
- package/dist/services/instagram/types.js +3 -0
- package/dist/services/instagram/types.js.map +1 -0
- package/dist/services/pinterest/client.d.ts +2 -2
- package/dist/services/pinterest/client.d.ts.map +1 -1
- package/dist/services/pinterest/client.js +2 -2
- package/dist/services/pinterest/client.js.map +1 -1
- package/dist/services/pinterest/types.d.ts +0 -12
- package/dist/services/pinterest/types.d.ts.map +1 -1
- package/dist/services/pumpfun/client.d.ts +285 -0
- package/dist/services/pumpfun/client.d.ts.map +1 -0
- package/dist/services/pumpfun/client.js +645 -0
- package/dist/services/pumpfun/client.js.map +1 -0
- package/dist/services/pumpfun/index.d.ts +3 -0
- package/dist/services/pumpfun/index.d.ts.map +1 -0
- package/dist/services/pumpfun/index.js +4 -0
- package/dist/services/pumpfun/index.js.map +1 -0
- package/dist/services/pumpfun/types.d.ts +4853 -0
- package/dist/services/pumpfun/types.d.ts.map +1 -0
- package/dist/services/pumpfun/types.js +3 -0
- package/dist/services/pumpfun/types.js.map +1 -0
- package/dist/services/tiktok/client.d.ts +35 -0
- package/dist/services/tiktok/client.d.ts.map +1 -0
- package/dist/services/tiktok/client.js +64 -0
- package/dist/services/tiktok/client.js.map +1 -0
- package/dist/services/tiktok/index.d.ts +3 -0
- package/dist/services/tiktok/index.d.ts.map +1 -0
- package/dist/services/tiktok/index.js +4 -0
- package/dist/services/tiktok/index.js.map +1 -0
- package/dist/services/tiktok/types.d.ts +2427 -0
- package/dist/services/tiktok/types.d.ts.map +1 -0
- package/dist/services/tiktok/types.js +3 -0
- package/dist/services/tiktok/types.js.map +1 -0
- package/dist/services/twitter/client.d.ts +5 -5
- package/dist/services/twitter/client.d.ts.map +1 -1
- package/dist/services/twitter/client.js +5 -5
- package/dist/services/twitter/client.js.map +1 -1
- package/dist/services/twitter/types.d.ts +0 -15
- package/dist/services/twitter/types.d.ts.map +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
// Generated by generate-client from spec/openapi.json. Do not edit.
|
|
2
|
+
export class PumpfunClient {
|
|
3
|
+
base;
|
|
4
|
+
constructor(base) {
|
|
5
|
+
this.base = base;
|
|
6
|
+
}
|
|
7
|
+
/** Individual fee-sharing shares held by an account. Costs 1 credit. */
|
|
8
|
+
async feeSharingShares(params) {
|
|
9
|
+
const { address, ...query } = params;
|
|
10
|
+
return this.base.get(`/v1/pumpfun/accounts/${encodeURIComponent(address)}/fee-sharing/shares`, query);
|
|
11
|
+
}
|
|
12
|
+
/** Deprecated: pump.fun retired this read. This route now answers what `/shareholders/{address}/fees` answers: per-coin fee-sharing earnings with wallet totals. Costs 1 credit. */
|
|
13
|
+
async feeSharingTotals(params) {
|
|
14
|
+
const { address, ...query } = params;
|
|
15
|
+
return this.base.get(`/v1/pumpfun/accounts/${encodeURIComponent(address)}/fee-sharing/totals`, query);
|
|
16
|
+
}
|
|
17
|
+
/** Every achievement pump.fun awards: family, tier, name, threshold and display data. Costs 1 credit. */
|
|
18
|
+
async achievementCatalog() {
|
|
19
|
+
return this.base.get('/v1/pumpfun/achievements');
|
|
20
|
+
}
|
|
21
|
+
/** The live movers board from pump.fun's advanced indexer, the most current trending signal. Costs 1 credit. */
|
|
22
|
+
async moversBoard(params) {
|
|
23
|
+
return this.base.get('/v1/pumpfun/boards/movers', { ...params });
|
|
24
|
+
}
|
|
25
|
+
/** The trending board from pump.fun's advanced indexer, in the movers board's compact entry format. pump.fun labels this body `board: movers` too. Costs 1 credit. */
|
|
26
|
+
async trendingBoard(params) {
|
|
27
|
+
return this.base.get('/v1/pumpfun/boards/trending', { ...params });
|
|
28
|
+
}
|
|
29
|
+
/** The most recent submissions in the pump.fun go feed. Pass `cursor` from the previous page for more. Costs 1 credit. */
|
|
30
|
+
async bountyFeedRecent(params) {
|
|
31
|
+
return this.base.get('/v1/pumpfun/bounties/feed/recent', { ...params });
|
|
32
|
+
}
|
|
33
|
+
/** The trending tab of the pump.fun go feed. Costs 1 credit. */
|
|
34
|
+
async bountyFeedTrending(params) {
|
|
35
|
+
return this.base.get('/v1/pumpfun/bounties/feed/trending', { ...params });
|
|
36
|
+
}
|
|
37
|
+
/** Most recent bounty payouts. Costs 1 credit. */
|
|
38
|
+
async bountyRecentPayouts(params) {
|
|
39
|
+
return this.base.get('/v1/pumpfun/bounties/recent-payouts', { ...params });
|
|
40
|
+
}
|
|
41
|
+
/** Live bounty counts and unclaimed reward totals. Costs 1 credit. */
|
|
42
|
+
async bountyStats() {
|
|
43
|
+
return this.base.get('/v1/pumpfun/bounties/stats');
|
|
44
|
+
}
|
|
45
|
+
/** Submissions a wallet has made to bounties, with each bounty. Pass `cursor` from `nextCursor` for more; the last page has no `nextCursor`. Costs 1 credit. */
|
|
46
|
+
async bountySubmissions(params) {
|
|
47
|
+
return this.base.get('/v1/pumpfun/bounties/submissions', { ...params });
|
|
48
|
+
}
|
|
49
|
+
/** Total bounty submissions pump.fun has received. Costs 1 credit. */
|
|
50
|
+
async bountySubmissionCount() {
|
|
51
|
+
return this.base.get('/v1/pumpfun/bounties/submissions/count');
|
|
52
|
+
}
|
|
53
|
+
/** Bounty tasks posted on pump.fun go, with filters for phase, reward, expiry, engagement and distance. Sorting by `distance` needs `lat` and `lng`, which go together. Pass `cursor` from the previous page for more. Costs 1 credit. */
|
|
54
|
+
async bountyTasks(params) {
|
|
55
|
+
return this.base.get('/v1/pumpfun/bounties/tasks', { ...params });
|
|
56
|
+
}
|
|
57
|
+
/** Coins with the largest bounty rewards attached. Costs 1 credit. */
|
|
58
|
+
async bountyTopCoins(params) {
|
|
59
|
+
return this.base.get('/v1/pumpfun/bounties/top-coins', { ...params });
|
|
60
|
+
}
|
|
61
|
+
/** Wallets that have earned the most from bounties. Costs 1 credit. */
|
|
62
|
+
async bountyTopEarners(params) {
|
|
63
|
+
return this.base.get('/v1/pumpfun/bounties/top-earners', { ...params });
|
|
64
|
+
}
|
|
65
|
+
/** Wallets that have funded the most bounties. Costs 1 credit. */
|
|
66
|
+
async bountyTopSpenders(params) {
|
|
67
|
+
return this.base.get('/v1/pumpfun/bounties/top-spenders', { ...params });
|
|
68
|
+
}
|
|
69
|
+
/** Profiles that liked a callout reply, newest first. Costs 1 credit. */
|
|
70
|
+
async replyLikers(params) {
|
|
71
|
+
const { reply_id, ...query } = params;
|
|
72
|
+
return this.base.get(`/v1/pumpfun/callout-replies/${encodeURIComponent(reply_id)}/likers`, query);
|
|
73
|
+
}
|
|
74
|
+
/** Profiles that reposted a callout reply, newest first. Costs 1 credit. */
|
|
75
|
+
async replyReposters(params) {
|
|
76
|
+
const { reply_id, ...query } = params;
|
|
77
|
+
return this.base.get(`/v1/pumpfun/callout-replies/${encodeURIComponent(reply_id)}/reposters`, query);
|
|
78
|
+
}
|
|
79
|
+
/** A reply with its ancestor replies up to the callout it belongs to. Costs 1 credit. */
|
|
80
|
+
async replyThread(params) {
|
|
81
|
+
const { reply_id } = params;
|
|
82
|
+
return this.base.get(`/v1/pumpfun/callout-replies/${encodeURIComponent(reply_id)}/thread`);
|
|
83
|
+
}
|
|
84
|
+
/** A single callout with its author, thesis, performance and author updates. Costs 1 credit. */
|
|
85
|
+
async callout(params) {
|
|
86
|
+
const { callout_id } = params;
|
|
87
|
+
return this.base.get(`/v1/pumpfun/callouts/${encodeURIComponent(callout_id)}`);
|
|
88
|
+
}
|
|
89
|
+
/** Profiles that liked a callout, newest first. Costs 1 credit. */
|
|
90
|
+
async calloutLikers(params) {
|
|
91
|
+
const { callout_id, ...query } = params;
|
|
92
|
+
return this.base.get(`/v1/pumpfun/callouts/${encodeURIComponent(callout_id)}/likers`, query);
|
|
93
|
+
}
|
|
94
|
+
/** Quote posts of a callout: callouts and replies that quote it, newest first. Costs 1 credit. */
|
|
95
|
+
async calloutQuotes(params) {
|
|
96
|
+
const { callout_id, ...query } = params;
|
|
97
|
+
return this.base.get(`/v1/pumpfun/callouts/${encodeURIComponent(callout_id)}/quotes`, query);
|
|
98
|
+
}
|
|
99
|
+
/** Replies to a callout. Page newest-first with `before_id` (the last reply's id), or by `page` when sorting by `POSITION`. `parent_reply_id` lists one reply's children. Costs 1 credit. */
|
|
100
|
+
async calloutReplies(params) {
|
|
101
|
+
const { callout_id, ...query } = params;
|
|
102
|
+
return this.base.get(`/v1/pumpfun/callouts/${encodeURIComponent(callout_id)}/replies`, query);
|
|
103
|
+
}
|
|
104
|
+
/** Profiles that reposted a callout, newest first. Costs 1 credit. */
|
|
105
|
+
async calloutReposters(params) {
|
|
106
|
+
const { callout_id, ...query } = params;
|
|
107
|
+
return this.base.get(`/v1/pumpfun/callouts/${encodeURIComponent(callout_id)}/reposters`, query);
|
|
108
|
+
}
|
|
109
|
+
/** OHLCV bars for a coin on any chain pump.fun trades, oldest first: Solana, the EVM chains, and HyperCore perps (`hypercore`, address = coin name such as `BTC`; perps serve `price_usd` and `price_quote` only). Prices are decimal strings. Costs 1 credit. */
|
|
110
|
+
async chainCandles(params) {
|
|
111
|
+
const { chain, address, ...query } = params;
|
|
112
|
+
return this.base.get(`/v1/pumpfun/chains/${encodeURIComponent(chain)}/coins/${encodeURIComponent(address)}/candles`, query);
|
|
113
|
+
}
|
|
114
|
+
/** A coin's creator-fee sharing setup and its fee events, newest first: creation, shareholder changes, claims. `sharing` appears only when the coin has a fee-sharing configuration. EVM coins answer with no events. Costs 1 credit. */
|
|
115
|
+
async coinFeeEvents(params) {
|
|
116
|
+
const { chain, address, ...query } = params;
|
|
117
|
+
return this.base.get(`/v1/pumpfun/chains/${encodeURIComponent(chain)}/coins/${encodeURIComponent(address)}/fee-events`, query);
|
|
118
|
+
}
|
|
119
|
+
/** A coin's closing-price line on any chain, thinned to `max_points` with LTTB downsampling. Lighter than candles for sparklines. Costs 1 credit. */
|
|
120
|
+
async chainPriceLine(params) {
|
|
121
|
+
const { chain, address, ...query } = params;
|
|
122
|
+
return this.base.get(`/v1/pumpfun/chains/${encodeURIComponent(chain)}/coins/${encodeURIComponent(address)}/price-line`, query);
|
|
123
|
+
}
|
|
124
|
+
/** A coin's top holders on any token chain, each flagged as developer, sniper or bundler, with the coin's total holder count. Costs 1 credit. */
|
|
125
|
+
async chainTopHolders(params) {
|
|
126
|
+
const { chain, address } = params;
|
|
127
|
+
return this.base.get(`/v1/pumpfun/chains/${encodeURIComponent(chain)}/coins/${encodeURIComponent(address)}/top-holders`);
|
|
128
|
+
}
|
|
129
|
+
/** A coin's trade tape on any chain, newest first, with running buy and sell aggregates. Pass `cursor` from `nextCursor` for older trades, or page around one trade with `before`/`after` and its `ordinalKey`. A token queried on a chain it does not trade on answers 503 (not charged): pump.fun sends the same answer as a lane outage, so check the coin's `chain_id` on `/coins/{mint}` before retrying. Costs 1 credit. */
|
|
130
|
+
async chainTrades(params) {
|
|
131
|
+
const { chain, address, ...query } = params;
|
|
132
|
+
return this.base.get(`/v1/pumpfun/chains/${encodeURIComponent(chain)}/coins/${encodeURIComponent(address)}/trades`, query);
|
|
133
|
+
}
|
|
134
|
+
/** Resolve clips by their room and clip id pairs. Costs 1 credit. */
|
|
135
|
+
async clipsBatch(body) {
|
|
136
|
+
return this.base.post('/v1/pumpfun/clips/batch', body);
|
|
137
|
+
}
|
|
138
|
+
/** pump.fun's curated video feed of livestream clips, with each clip's coin. Costs 1 credit. */
|
|
139
|
+
async videoFeed() {
|
|
140
|
+
return this.base.get('/v1/pumpfun/clips/feed');
|
|
141
|
+
}
|
|
142
|
+
/** Most watched clips across pump.fun in a window. Costs 1 credit. */
|
|
143
|
+
async topClips(params) {
|
|
144
|
+
return this.base.get('/v1/pumpfun/clips/top', { ...params });
|
|
145
|
+
}
|
|
146
|
+
/** The paginated coin list behind pump.fun's board views. Costs 1 credit. */
|
|
147
|
+
async coins(params) {
|
|
148
|
+
return this.base.get('/v1/pumpfun/coins', { ...params });
|
|
149
|
+
}
|
|
150
|
+
/** All-time-high market caps for many coins at once. Costs 1 credit. */
|
|
151
|
+
async athBatch(body) {
|
|
152
|
+
return this.base.post('/v1/pumpfun/coins/ath/batch', body);
|
|
153
|
+
}
|
|
154
|
+
/** Resolve many mints to full coin records in one call. pump.fun leaves out addresses it cannot resolve. Today it answers the same records as `/coins/raw-batch`. Costs 1 credit. */
|
|
155
|
+
async coinsBatch(body) {
|
|
156
|
+
return this.base.post('/v1/pumpfun/coins/batch', body);
|
|
157
|
+
}
|
|
158
|
+
/** One of pump.fun's ranked coin boards (new, graduating, graduated, movers, charity), across every chain unless `chains` narrows it. Costs 1 credit. */
|
|
159
|
+
async coinBoard(params) {
|
|
160
|
+
const { board, ...query } = params;
|
|
161
|
+
return this.base.get(`/v1/pumpfun/coins/boards/${encodeURIComponent(board)}`, query);
|
|
162
|
+
}
|
|
163
|
+
/** The coin pump.fun is surfacing as hot right now; `hotCoin` is `null` most of the time. Costs 1 credit. */
|
|
164
|
+
async hotCoin() {
|
|
165
|
+
return this.base.get('/v1/pumpfun/coins/hot');
|
|
166
|
+
}
|
|
167
|
+
/** Coins whose creator is livestreaming right now. Costs 1 credit. */
|
|
168
|
+
async liveCoins(params) {
|
|
169
|
+
return this.base.get('/v1/pumpfun/coins/live', { ...params });
|
|
170
|
+
}
|
|
171
|
+
/** Rolling market activity for many coins at once. Costs 1 credit. */
|
|
172
|
+
async marketActivityBatch(body) {
|
|
173
|
+
return this.base.post('/v1/pumpfun/coins/market-activity/batch', body);
|
|
174
|
+
}
|
|
175
|
+
/** pump.fun's written narratives for trending, moving and new coins. Pass the answer's `cursor` back while `hasMore` is true. pump.fun answered an empty list for every source and locale in every capture since 2026-10-08. Costs 1 credit. */
|
|
176
|
+
async coinNarratives(params) {
|
|
177
|
+
return this.base.get('/v1/pumpfun/coins/narratives', { ...params });
|
|
178
|
+
}
|
|
179
|
+
/** The HyperCore perpetuals screener: mark price, funding, open interest and 24h change per perp. Pass a perp's `mint` (such as `BTC`) with chain `hypercore` to the `/chains/{chain}/coins/{address}` routes for its candles and trades. Costs 1 credit. */
|
|
180
|
+
async perps(params) {
|
|
181
|
+
return this.base.get('/v1/pumpfun/coins/perps', { ...params });
|
|
182
|
+
}
|
|
183
|
+
/** Resolve many mints to their raw indexer records. Today pump.fun answers the same records as `/coins/batch`; this route needs at least one mint. Costs 1 credit. */
|
|
184
|
+
async coinsRawBatch(body) {
|
|
185
|
+
return this.base.post('/v1/pumpfun/coins/raw-batch', body);
|
|
186
|
+
}
|
|
187
|
+
/** Coins pump.fun considers similar to the given mint. Costs 1 credit. */
|
|
188
|
+
async similarCoins(params) {
|
|
189
|
+
return this.base.get('/v1/pumpfun/coins/similar', { ...params });
|
|
190
|
+
}
|
|
191
|
+
/** Addresses of the coins pump.fun treats as top tokens, Solana mints and EVM tokens alike. `/coins/top-mints/chains` adds the chains each one was vetted on. Costs 1 credit. */
|
|
192
|
+
async topTokenMints(params) {
|
|
193
|
+
return this.base.get('/v1/pumpfun/coins/top-mints', { ...params });
|
|
194
|
+
}
|
|
195
|
+
/** The top-token list plus, for each address, the CAIP-2 chains it was vetted on (`eip155:8453`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). Costs 1 credit. */
|
|
196
|
+
async topTokenMintChains(params) {
|
|
197
|
+
return this.base.get('/v1/pumpfun/coins/top-mints/chains', { ...params });
|
|
198
|
+
}
|
|
199
|
+
/** Trending coins, the `great-coins` ranking that powers the pump.fun trending rail. Costs 1 credit. */
|
|
200
|
+
async trendingCoins(params) {
|
|
201
|
+
return this.base.get('/v1/pumpfun/coins/trending', { ...params });
|
|
202
|
+
}
|
|
203
|
+
/** Full record for a single coin on any chain pump.fun supports: a Solana mint or an EVM token address. `chain_id` in the answer is the coin's CAIP-2 chain. An address pump.fun cannot resolve answers 404. Costs 1 credit. */
|
|
204
|
+
async coin(params) {
|
|
205
|
+
const { mint, ...query } = params;
|
|
206
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}`, query);
|
|
207
|
+
}
|
|
208
|
+
/** Whether the coin's creator is approved to livestream on pump.fun. Costs 1 credit. */
|
|
209
|
+
async approvedCreator(params) {
|
|
210
|
+
const { mint } = params;
|
|
211
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/approved-creator`);
|
|
212
|
+
}
|
|
213
|
+
/** All-time-high market cap for a coin. Costs 1 credit. */
|
|
214
|
+
async ath(params) {
|
|
215
|
+
const { mint, ...query } = params;
|
|
216
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/ath`, query);
|
|
217
|
+
}
|
|
218
|
+
/** Top callouts on a coin, Solana mint or EVM token. Costs 1 credit. */
|
|
219
|
+
async coinTopCallouts(params) {
|
|
220
|
+
const { mint, ...query } = params;
|
|
221
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/callouts/top`, query);
|
|
222
|
+
}
|
|
223
|
+
/** OHLC candles for a coin from pump.fun's swap API, the newest `limit` bars ending now. For bars further back, or every chain and resolution in one shape, see `/chains/{chain}/coins/{address}/candles`, which pages back with `to`. Costs 1 credit. */
|
|
224
|
+
async candles(params) {
|
|
225
|
+
const { mint, ...query } = params;
|
|
226
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/candles`, query);
|
|
227
|
+
}
|
|
228
|
+
/** How many clips a coin's livestreams produced: total, visible, hidden and deleted. Costs 1 credit. */
|
|
229
|
+
async clipCounts(params) {
|
|
230
|
+
const { mint } = params;
|
|
231
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/clip-counts`);
|
|
232
|
+
}
|
|
233
|
+
/** Clips cut from a coin's livestreams. Pass `lastEvaluatedKey` back as `cursor` while `hasMore` is true. Costs 1 credit. */
|
|
234
|
+
async coinClips(params) {
|
|
235
|
+
const { mint, ...query } = params;
|
|
236
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/clips`, query);
|
|
237
|
+
}
|
|
238
|
+
/** The first trade ever recorded against a coin. Costs 1 credit. */
|
|
239
|
+
async firstTrade(params) {
|
|
240
|
+
const { mint } = params;
|
|
241
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/first-trade`);
|
|
242
|
+
}
|
|
243
|
+
/** Number of wallets currently holding the coin. pump.fun counts this in a different service from `/coins/{mint}/holder-stats` and the top-holder routes, so the figures can differ by a few percent at the same moment. Costs 1 credit. */
|
|
244
|
+
async tokenHolderCount(params) {
|
|
245
|
+
const { mint } = params;
|
|
246
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/holder-count`);
|
|
247
|
+
}
|
|
248
|
+
/** Holder distribution of a Solana coin: holder count, the share of supply held by the top 10, the developer, snipers and bundlers, and lifetime fees in SOL. Costs 1 credit. */
|
|
249
|
+
async holderStats(params) {
|
|
250
|
+
const { mint } = params;
|
|
251
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/holder-stats`);
|
|
252
|
+
}
|
|
253
|
+
/** Realized and unrealized PnL on one coin for a set of holders. Costs 1 credit. */
|
|
254
|
+
async coinHolderPnl(params, body) {
|
|
255
|
+
const { mint } = params;
|
|
256
|
+
return this.base.post(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/holders/pnl`, body);
|
|
257
|
+
}
|
|
258
|
+
/** The indexer's in-memory snapshot of a coin, refreshed faster than the coin record. Keys starting with `_` are the indexer's cache bookkeeping and appear on some answers only. Costs 1 credit. */
|
|
259
|
+
async inMemoryCoin(params) {
|
|
260
|
+
const { mint } = params;
|
|
261
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/in-memory`);
|
|
262
|
+
}
|
|
263
|
+
/** Downsampled price series used for the sparkline on coin cards. Takes Solana mints and EVM token addresses. Costs 1 credit. */
|
|
264
|
+
async lineChart(params) {
|
|
265
|
+
const { mint, ...query } = params;
|
|
266
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/line-chart`, query);
|
|
267
|
+
}
|
|
268
|
+
/** Rolling volume, transaction and trader counts for a coin over 5m, 1h, 6h and 24h. A window with no trades is `null`. Costs 1 credit. */
|
|
269
|
+
async marketActivity(params) {
|
|
270
|
+
const { mint, ...query } = params;
|
|
271
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/market-activity`, query);
|
|
272
|
+
}
|
|
273
|
+
/** Mayhem-mode agent state for a coin. Answers `null` when the coin never ran an agent. Costs 1 credit. */
|
|
274
|
+
async coinMayhemState(params) {
|
|
275
|
+
const { mint } = params;
|
|
276
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/mayhem-state`);
|
|
277
|
+
}
|
|
278
|
+
/** Buy/sell totals a mayhem-mode agent has accumulated on a coin. Costs 1 credit. */
|
|
279
|
+
async mayhemStats(params) {
|
|
280
|
+
const { mint } = params;
|
|
281
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/mayhem-stats`);
|
|
282
|
+
}
|
|
283
|
+
/** Positions traders hold in a coin, with their callouts. `CLOSED_PNL` lists fully exited positions by realized PnL instead. Costs 1 credit. */
|
|
284
|
+
async mintPositions(params) {
|
|
285
|
+
const { mint, ...query } = params;
|
|
286
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/positions`, query);
|
|
287
|
+
}
|
|
288
|
+
/** Creator-fee timeline: creation, distributions and shareholder changes. Pass `cursor` from `pagination.nextCursor` while `pagination.hasMore` is true. Costs 1 credit. */
|
|
289
|
+
async coinTimeline(params) {
|
|
290
|
+
const { mint, ...query } = params;
|
|
291
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/timeline`, query);
|
|
292
|
+
}
|
|
293
|
+
/** Largest holders of a Solana coin with their balances and funding sources. For EVM coins use `/chains/{chain}/coins/{address}/top-holders`. Costs 1 credit. */
|
|
294
|
+
async topHolders(params) {
|
|
295
|
+
const { mint } = params;
|
|
296
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/top-holders`);
|
|
297
|
+
}
|
|
298
|
+
/** A coin's trades by accounts ranked in the top 50 of any pump.fun PnL leaderboard, across all their wallets: the marks pump.fun draws on its chart. Pass `cursor` from `page.nextCursor` for older trades. Costs 1 credit. */
|
|
299
|
+
async topTraderTrades(params) {
|
|
300
|
+
const { mint, ...query } = params;
|
|
301
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/top-trader-trades`, query);
|
|
302
|
+
}
|
|
303
|
+
/** Recent trades for a Solana pump.fun coin, newest first. `baseAmount` and `quoteAmount` are decimal strings in whole units of the coin and its quote token. For any chain, see `/chains/{chain}/coins/{address}/trades`. Costs 1 credit. */
|
|
304
|
+
async trades(params) {
|
|
305
|
+
const { mint, ...query } = params;
|
|
306
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/trades`, query);
|
|
307
|
+
}
|
|
308
|
+
/** Trades on one coin for several wallets at once. Amounts are raw integer strings, unlike `/coins/{mint}/trades`: `baseAmount` is in the coin's smallest unit (6 decimals on pump.fun coins) and `quoteAmount` in the quote token's smallest unit (lamports for SOL). Costs 1 credit. */
|
|
309
|
+
async tradesBatch(params, body) {
|
|
310
|
+
const { mint } = params;
|
|
311
|
+
return this.base.post(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/trades/batch`, body);
|
|
312
|
+
}
|
|
313
|
+
/** Whether the mint's key came from pump.fun's vanity key pool (`true` or `false`). Costs 1 credit. */
|
|
314
|
+
async vanityCheck(params) {
|
|
315
|
+
const { mint } = params;
|
|
316
|
+
return this.base.get(`/v1/pumpfun/coins/${encodeURIComponent(mint)}/vanity-check`);
|
|
317
|
+
}
|
|
318
|
+
/** pump.fun's trading competitions in three buckets: upcoming, live (registration open or running, with the current top entries) and past (the 50 latest, with winners). Costs 1 credit. */
|
|
319
|
+
async competitions() {
|
|
320
|
+
return this.base.get('/v1/pumpfun/competitions');
|
|
321
|
+
}
|
|
322
|
+
/** One competition entry: its roster as frozen at the start, and each member's counted trades, PnL first. Entry ids come from the competition leaderboard. Costs 1 credit. */
|
|
323
|
+
async competitionEntry(params) {
|
|
324
|
+
const { competition_id, entry_id } = params;
|
|
325
|
+
return this.base.get(`/v1/pumpfun/competitions/${encodeURIComponent(competition_id)}/entries/${encodeURIComponent(entry_id)}`);
|
|
326
|
+
}
|
|
327
|
+
/** One entry's best tokens by PnL during the competition, with coin details. Costs 1 credit. */
|
|
328
|
+
async competitionEntryHighlights(params) {
|
|
329
|
+
const { competition_id, entry_id, ...query } = params;
|
|
330
|
+
return this.base.get(`/v1/pumpfun/competitions/${encodeURIComponent(competition_id)}/entries/${encodeURIComponent(entry_id)}/highlights`, query);
|
|
331
|
+
}
|
|
332
|
+
/** The competition's biggest winning trades across every ranked entry, with coin and trader details. Each trader is capped at `per_member_limit` rows. Costs 1 credit. */
|
|
333
|
+
async competitionHighlights(params) {
|
|
334
|
+
const { competition_id, ...query } = params;
|
|
335
|
+
return this.base.get(`/v1/pumpfun/competitions/${encodeURIComponent(competition_id)}/highlights`, query);
|
|
336
|
+
}
|
|
337
|
+
/** One competition and its ranked leaderboard. An unknown id or slug answers 404. Costs 1 credit. */
|
|
338
|
+
async competition(params) {
|
|
339
|
+
const { competition, ...query } = params;
|
|
340
|
+
return this.base.get(`/v1/pumpfun/competitions/${encodeURIComponent(competition)}`, query);
|
|
341
|
+
}
|
|
342
|
+
/** A creator's fee earnings per quote token, whether any are claimable, and the earnings series over `period` in `interval` buckets. `5m` buckets allow period `1d`; `30m` buckets allow `1d` or `7d`; any other pairing answers 400, not charged. EVM wallets answer with no earnings. Costs 1 credit. */
|
|
343
|
+
async creatorFees(params) {
|
|
344
|
+
const { address, ...query } = params;
|
|
345
|
+
return this.base.get(`/v1/pumpfun/creators/${encodeURIComponent(address)}/fees`, query);
|
|
346
|
+
}
|
|
347
|
+
/** Deprecated: pump.fun retired its lifetime-total read. This route now answers what `/creators/{address}/fees` answers for 30 days; `earned` holds the totals per quote token. Costs 1 credit. */
|
|
348
|
+
async creatorFeesTotal(params) {
|
|
349
|
+
const { address } = params;
|
|
350
|
+
return this.base.get(`/v1/pumpfun/creators/${encodeURIComponent(address)}/fees/total`);
|
|
351
|
+
}
|
|
352
|
+
/** pump.fun's holder-rewards book: per coin, the fees accrued to its holder vault, the payouts made and the book totals. Page with `page`: pump.fun answered `next: null` in every probe since 2026-10-08, even with 141,934 matching coins. A `cursor` from `next` would continue a listing and replace every other parameter. Costs 1 credit. */
|
|
353
|
+
async holderRewards(params) {
|
|
354
|
+
return this.base.get('/v1/pumpfun/fees/holder-rewards', { ...params });
|
|
355
|
+
}
|
|
356
|
+
/** Bonding-curve constants of the pump.fun program at a point in time. Costs 1 credit. */
|
|
357
|
+
async globalParams(params) {
|
|
358
|
+
return this.base.get('/v1/pumpfun/global-params', { ...params });
|
|
359
|
+
}
|
|
360
|
+
/** A squad's active members, owner first, with each member's profile and role. Squad ids come from `/leaderboards/pnl/groups`. Costs 1 credit. */
|
|
361
|
+
async groupMembers(params) {
|
|
362
|
+
const { group_id, ...query } = params;
|
|
363
|
+
return this.base.get(`/v1/pumpfun/groups/${encodeURIComponent(group_id)}/members`, query);
|
|
364
|
+
}
|
|
365
|
+
/** A squad's active members ranked by PnL over the window. `rows` is empty until pump.fun publishes the window's ranking. Costs 1 credit. */
|
|
366
|
+
async groupMembersPnl(params) {
|
|
367
|
+
const { group_id, ...query } = params;
|
|
368
|
+
return this.base.get(`/v1/pumpfun/groups/${encodeURIComponent(group_id)}/members/pnl`, query);
|
|
369
|
+
}
|
|
370
|
+
/** The ranked feed on the pump.fun home page: trending coins with the callout position that put each one there, across Solana and the EVM chains. Page with `page`, from 0. Costs 1 credit. */
|
|
371
|
+
async homeFeed(params) {
|
|
372
|
+
return this.base.get('/v1/pumpfun/home-feed', { ...params });
|
|
373
|
+
}
|
|
374
|
+
/** Every new callout backed by a live position, newest first, unranked, over the last 24 hours. Page with `page_token` from `nextPageToken`; a short page does not mean the end. `headToken` is the value to pass to `/home-feed/new/count`. Costs 1 credit. */
|
|
375
|
+
async newCalloutsFeed(params) {
|
|
376
|
+
return this.base.get('/v1/pumpfun/home-feed/new', { ...params });
|
|
377
|
+
}
|
|
378
|
+
/** How many new callouts arrived after `since` under the same filters. `capped` is true once the count reaches pump.fun's ceiling. Costs 1 credit. */
|
|
379
|
+
async newCalloutsCount(params) {
|
|
380
|
+
return this.base.get('/v1/pumpfun/home-feed/new/count', { ...params });
|
|
381
|
+
}
|
|
382
|
+
/** Top earners by creator payout. Costs 1 credit. */
|
|
383
|
+
async payoutsLeaderboard(params) {
|
|
384
|
+
return this.base.get('/v1/pumpfun/leaderboards/payouts', { ...params });
|
|
385
|
+
}
|
|
386
|
+
/** Trader PnL leaderboard: the top 100 traders. pump.fun has no paging past them. Costs 1 credit. */
|
|
387
|
+
async pnlLeaderboard(params) {
|
|
388
|
+
return this.base.get('/v1/pumpfun/leaderboards/pnl', { ...params });
|
|
389
|
+
}
|
|
390
|
+
/** A random sample of traders from the PnL leaderboard, as pump.fun suggests them to follow. Costs 1 credit. */
|
|
391
|
+
async followSuggestions(params) {
|
|
392
|
+
return this.base.get('/v1/pumpfun/leaderboards/pnl/follow-suggestions', { ...params });
|
|
393
|
+
}
|
|
394
|
+
/** Squad (group) PnL leaderboard: each squad's combined PnL over its counted members, with its top positions. Costs 1 credit. */
|
|
395
|
+
async groupPnlLeaderboard(params) {
|
|
396
|
+
return this.base.get('/v1/pumpfun/leaderboards/pnl/groups', { ...params });
|
|
397
|
+
}
|
|
398
|
+
/** The scored traders pump.fun's mobile app suggests at onboarding. Costs 1 credit. */
|
|
399
|
+
async onboardingSuggestions(params) {
|
|
400
|
+
return this.base.get('/v1/pumpfun/leaderboards/pnl/onboarding-suggestions', { ...params });
|
|
401
|
+
}
|
|
402
|
+
/** The positions behind each PnL leaderboard entry: the top 25 at most. pump.fun has no paging past them. Costs 1 credit. */
|
|
403
|
+
async pnlLeaderboardPositions(params) {
|
|
404
|
+
return this.base.get('/v1/pumpfun/leaderboards/pnl/positions', { ...params });
|
|
405
|
+
}
|
|
406
|
+
/** The active livestream for a coin. Answers `null` when nothing is streaming. Costs 1 credit. */
|
|
407
|
+
async livestream(params) {
|
|
408
|
+
return this.base.get('/v1/pumpfun/livestreams', { ...params });
|
|
409
|
+
}
|
|
410
|
+
/** Past livestreams for a coin. Costs 1 credit. */
|
|
411
|
+
async livestreamHistory(params) {
|
|
412
|
+
return this.base.get('/v1/pumpfun/livestreams/history', { ...params });
|
|
413
|
+
}
|
|
414
|
+
/** HLS playlist URLs for the given mints, keyed by mint. Costs 1 credit. */
|
|
415
|
+
async playlistMap(body) {
|
|
416
|
+
return this.base.post('/v1/pumpfun/livestreams/playlist-map', body);
|
|
417
|
+
}
|
|
418
|
+
/** Coins currently running a mayhem-mode agent. Costs 1 credit. */
|
|
419
|
+
async mayhemCoins(params) {
|
|
420
|
+
return this.base.get('/v1/pumpfun/mayhem/coins', { ...params });
|
|
421
|
+
}
|
|
422
|
+
/** The trader leaderboard for one mayhem-mode coin. A coin that never ran an agent answers 404. Costs 1 credit. */
|
|
423
|
+
async mayhemCoinTopTraders(params) {
|
|
424
|
+
const { mint } = params;
|
|
425
|
+
return this.base.get(`/v1/pumpfun/mayhem/coins/${encodeURIComponent(mint)}/top-traders`);
|
|
426
|
+
}
|
|
427
|
+
/** Aggregate mayhem-mode activity: active coins, agent volume and distribution. Costs 1 credit. */
|
|
428
|
+
async mayhemOverview() {
|
|
429
|
+
return this.base.get('/v1/pumpfun/mayhem/overview');
|
|
430
|
+
}
|
|
431
|
+
/** Best performing mayhem-mode coins in a window. Costs 1 credit. */
|
|
432
|
+
async mayhemTopCoins(params) {
|
|
433
|
+
return this.base.get('/v1/pumpfun/mayhem/top-coins', { ...params });
|
|
434
|
+
}
|
|
435
|
+
/** Best performing mayhem-mode traders in a window. Costs 1 credit. */
|
|
436
|
+
async mayhemTopTraders(params) {
|
|
437
|
+
return this.base.get('/v1/pumpfun/mayhem/top-traders', { ...params });
|
|
438
|
+
}
|
|
439
|
+
/** The ten top daily PnL profiles pump.fun shows on its follow screen. Costs 1 credit. */
|
|
440
|
+
async topProfiles() {
|
|
441
|
+
return this.base.get('/v1/pumpfun/profiles/top');
|
|
442
|
+
}
|
|
443
|
+
/** Whether pump.fun shows its KOL badge for each wallet or user id. This is the badge other routes report as `verifiedBadgeVisible`, not `isVerified`. Costs 1 credit. */
|
|
444
|
+
async verifiedProfiles(body) {
|
|
445
|
+
return this.base.post('/v1/pumpfun/profiles/verified', body);
|
|
446
|
+
}
|
|
447
|
+
/** Search coins on every chain by name, symbol or address. For coins created in the last 7 days, set `max_age_seconds=604800`. Costs 1 credit. */
|
|
448
|
+
async searchCoins(params) {
|
|
449
|
+
return this.base.get('/v1/pumpfun/search/coins', { ...params });
|
|
450
|
+
}
|
|
451
|
+
/** How many coins matching a search trade against each quote token (SOL, USDC, ...). Costs 1 credit. */
|
|
452
|
+
async searchQuoteFacets(params) {
|
|
453
|
+
return this.base.get('/v1/pumpfun/search/coins/quote-facets', { ...params });
|
|
454
|
+
}
|
|
455
|
+
/** Classify up to five identifiers in one call: whether each is a coin (by mint, bonding curve or pool), a Solana wallet, an EVM address or a pump.fun user id, which chain it is on, and its coin or account record. Costs 1 credit. */
|
|
456
|
+
async resolveIdentifiers(params) {
|
|
457
|
+
return this.base.get('/v1/pumpfun/search/resolve', { ...params });
|
|
458
|
+
}
|
|
459
|
+
/** Search profiles by username or address. Costs 1 credit. */
|
|
460
|
+
async searchUsers(params) {
|
|
461
|
+
return this.base.get('/v1/pumpfun/search/users', { ...params });
|
|
462
|
+
}
|
|
463
|
+
/** A wallet's creator-fee sharing earnings per coin (earned, claimed, unclaimed per quote token) and its wallet totals. Pass `cursor` from `nextCursor` for more coins. EVM wallets answer with no earnings. Costs 1 credit. */
|
|
464
|
+
async shareholderFees(params) {
|
|
465
|
+
const { address, ...query } = params;
|
|
466
|
+
return this.base.get(`/v1/pumpfun/shareholders/${encodeURIComponent(address)}/fees`, query);
|
|
467
|
+
}
|
|
468
|
+
/** Current SOL price in USD as pump.fun quotes it. Costs 1 credit. */
|
|
469
|
+
async solPrice() {
|
|
470
|
+
return this.base.get('/v1/pumpfun/sol-price');
|
|
471
|
+
}
|
|
472
|
+
/** Whether a pump.fun username is taken. Costs 1 credit. */
|
|
473
|
+
async usernameExists(params) {
|
|
474
|
+
const { username } = params;
|
|
475
|
+
return this.base.get(`/v1/pumpfun/usernames/${encodeURIComponent(username)}/exists`);
|
|
476
|
+
}
|
|
477
|
+
/** pump.fun's profile directory, one page at a time. Costs 1 credit. */
|
|
478
|
+
async users(params) {
|
|
479
|
+
return this.base.get('/v1/pumpfun/users', { ...params });
|
|
480
|
+
}
|
|
481
|
+
/** Resolve many wallet addresses to profiles in one call. Costs 1 credit. */
|
|
482
|
+
async usersBatch(body) {
|
|
483
|
+
return this.base.post('/v1/pumpfun/users/batch', body);
|
|
484
|
+
}
|
|
485
|
+
/** Profile for a single wallet (Solana or EVM), pump.fun user id or username. Costs 1 credit. */
|
|
486
|
+
async user(params) {
|
|
487
|
+
const { address } = params;
|
|
488
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}`);
|
|
489
|
+
}
|
|
490
|
+
/** A profile's unlocked achievements and live progress on the tracks still open. Definitions are in `/achievements`. Costs 1 credit. */
|
|
491
|
+
async userAchievements(params) {
|
|
492
|
+
const { address } = params;
|
|
493
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/achievements`);
|
|
494
|
+
}
|
|
495
|
+
/** Moderation ban record for a wallet. Answers `null` when the wallet has no ban. Costs 1 credit. */
|
|
496
|
+
async banStatus(params) {
|
|
497
|
+
const { address } = params;
|
|
498
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/ban-status`);
|
|
499
|
+
}
|
|
500
|
+
/** A wallet's standing on the callout leaderboard: weekly and all-time appearances, streaks and podium finishes. Costs 1 credit. */
|
|
501
|
+
async calloutLeaderboardStats(params) {
|
|
502
|
+
const { address } = params;
|
|
503
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/callout-leaderboard-stats`);
|
|
504
|
+
}
|
|
505
|
+
/** A wallet's callout performance per rolling window: callout count, hit rates at 1.2x to 10x peak multiples, average and median peak, time to peak and the multiple distribution. Costs 1 credit. */
|
|
506
|
+
async calloutStats(params) {
|
|
507
|
+
const { address } = params;
|
|
508
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/callout-stats`);
|
|
509
|
+
}
|
|
510
|
+
/** Callouts a wallet has posted. Pass `page_token` from `nextPageToken` for the next page, with the same `window`. Costs 1 credit. */
|
|
511
|
+
async userCallouts(params) {
|
|
512
|
+
const { address, ...query } = params;
|
|
513
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/callouts`, query);
|
|
514
|
+
}
|
|
515
|
+
/** A wallet's callout on one coin; `callout` is `null` when there is none. Costs 1 credit. */
|
|
516
|
+
async userCoinCallout(params) {
|
|
517
|
+
const { address, mint, ...query } = params;
|
|
518
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/callouts/coin/${encodeURIComponent(mint)}`, query);
|
|
519
|
+
}
|
|
520
|
+
/** Replies and quote posts a wallet has written, with the thread they belong to. Page with `before_id`, the last reply's id. Costs 1 credit. */
|
|
521
|
+
async userCalloutReplies(params) {
|
|
522
|
+
const { address, ...query } = params;
|
|
523
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/callouts/replies`, query);
|
|
524
|
+
}
|
|
525
|
+
/** Coins a wallet has launched. pump.fun serves the first 250 at most. Costs 1 credit. */
|
|
526
|
+
async userCreatedCoins(params) {
|
|
527
|
+
const { address, ...query } = params;
|
|
528
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/created-coins`, query);
|
|
529
|
+
}
|
|
530
|
+
/** Profiles following a wallet. Without `limit`, `offset` or `sort` this is pump.fun's legacy list, which stops at 50 profiles; set any of them to page through every profile (the same row shape). Costs 1 credit. */
|
|
531
|
+
async followers(params) {
|
|
532
|
+
const { address, ...query } = params;
|
|
533
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/followers`, query);
|
|
534
|
+
}
|
|
535
|
+
/** How many profiles follow a wallet. Costs 1 credit. */
|
|
536
|
+
async followersCount(params) {
|
|
537
|
+
const { address } = params;
|
|
538
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/followers/count`);
|
|
539
|
+
}
|
|
540
|
+
/** Search a profile's followers by name, most relevant first. Costs 1 credit. */
|
|
541
|
+
async searchFollowers(params) {
|
|
542
|
+
const { address, ...query } = params;
|
|
543
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/followers/search`, query);
|
|
544
|
+
}
|
|
545
|
+
/** Profiles a wallet follows. Without `limit`, `offset` or `sort` this is pump.fun's legacy list, which stops at 50 profiles; set any of them to page through every profile (the same row shape). Costs 1 credit. */
|
|
546
|
+
async following(params) {
|
|
547
|
+
const { address, ...query } = params;
|
|
548
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/following`, query);
|
|
549
|
+
}
|
|
550
|
+
/** How many profiles a wallet follows. Costs 1 credit. */
|
|
551
|
+
async followingCount(params) {
|
|
552
|
+
const { address } = params;
|
|
553
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/following/count`);
|
|
554
|
+
}
|
|
555
|
+
/** Search the profiles a wallet follows by name, most relevant first. Costs 1 credit. */
|
|
556
|
+
async searchFollowing(params) {
|
|
557
|
+
const { address, ...query } = params;
|
|
558
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/following/search`, query);
|
|
559
|
+
}
|
|
560
|
+
/** A profile header in one read: profile, follower and following counts, verified and achievement badges, ban state and created-coin count. Takes a Solana wallet or a pump.fun user id; a wallet with no account is served as an external wallet. Costs 1 credit. */
|
|
561
|
+
async userOverview(params) {
|
|
562
|
+
const { address } = params;
|
|
563
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/overview`);
|
|
564
|
+
}
|
|
565
|
+
/** A wallet's resting HyperCore orders: take-profit, stop-loss and limit. Costs 1 credit. */
|
|
566
|
+
async perpOrders(params) {
|
|
567
|
+
const { address, ...query } = params;
|
|
568
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/perp-orders`, query);
|
|
569
|
+
}
|
|
570
|
+
/** A wallet's HyperCore perpetuals history, newest first: fills, funding and transfers. A Solana wallet or user id resolves to its linked EVM wallet; none answers an empty list. Costs 1 credit. */
|
|
571
|
+
async perpTrades(params) {
|
|
572
|
+
const { address, ...query } = params;
|
|
573
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/perp-trades`, query);
|
|
574
|
+
}
|
|
575
|
+
/** A wallet's open or closed positions with net PnL, across Solana and its linked EVM wallets. Takes a wallet, a pump.fun user id or a squad id. Costs 1 credit. */
|
|
576
|
+
async userPortfolio(params) {
|
|
577
|
+
const { address, ...query } = params;
|
|
578
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/portfolio`, query);
|
|
579
|
+
}
|
|
580
|
+
/** A wallet's portfolio value over time (tokens at trusted prices plus cash, linked EVM wallets folded in). Takes a wallet, a username or a squad id. Costs 1 credit. */
|
|
581
|
+
async portfolioValueChart(params) {
|
|
582
|
+
const { address, ...query } = params;
|
|
583
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/portfolio/chart`, query);
|
|
584
|
+
}
|
|
585
|
+
/** A wallet's PnL curve and totals over a window. Costs 1 credit. */
|
|
586
|
+
async portfolioSummary(params) {
|
|
587
|
+
const { address, ...query } = params;
|
|
588
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/portfolio/summary`, query);
|
|
589
|
+
}
|
|
590
|
+
/** A wallet's positions in specific coins. Costs 1 credit. */
|
|
591
|
+
async userPositions(params) {
|
|
592
|
+
const { address, ...query } = params;
|
|
593
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/positions`, query);
|
|
594
|
+
}
|
|
595
|
+
/** Callouts and replies a wallet has reposted, newest first. Pass `cursor` from `nextCursor` for more. Costs 1 credit. */
|
|
596
|
+
async userReposts(params) {
|
|
597
|
+
const { address, ...query } = params;
|
|
598
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/reposts`, query);
|
|
599
|
+
}
|
|
600
|
+
/** An account's token trades, newest first. Takes a wallet or a pump.fun user id. pump.fun documents squad ids as the union of their members' trades, but a squad id answered no trades in our tests. Pass `cursor` from `nextCursor` for older trades. Costs 1 credit. */
|
|
601
|
+
async userTrades(params) {
|
|
602
|
+
const { address, ...query } = params;
|
|
603
|
+
return this.base.get(`/v1/pumpfun/users/${encodeURIComponent(address)}/trades`, query);
|
|
604
|
+
}
|
|
605
|
+
/** Total value and holdings summary for several Solana wallets. Costs 1 credit. */
|
|
606
|
+
async walletOverview(body) {
|
|
607
|
+
return this.base.post('/v1/pumpfun/wallets/overview', body);
|
|
608
|
+
}
|
|
609
|
+
/** Token balances held by a Solana wallet. Costs 1 credit. */
|
|
610
|
+
async walletBalances(params) {
|
|
611
|
+
const { address, ...query } = params;
|
|
612
|
+
return this.base.get(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/balances`, query);
|
|
613
|
+
}
|
|
614
|
+
/** Total portfolio value and native balance for a Solana wallet. Costs 1 credit. */
|
|
615
|
+
async walletBalanceSummary(params) {
|
|
616
|
+
const { address, ...query } = params;
|
|
617
|
+
return this.base.get(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/balances/summary`, query);
|
|
618
|
+
}
|
|
619
|
+
/** A Solana wallet's PnL across many Solana coins at once. Costs 1 credit. */
|
|
620
|
+
async walletPnlBatch(params, body) {
|
|
621
|
+
const { address } = params;
|
|
622
|
+
return this.base.post(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/pnl/batch`, body);
|
|
623
|
+
}
|
|
624
|
+
/** A Solana wallet's PnL on a single Solana coin. Costs 1 credit. */
|
|
625
|
+
async walletTokenPnl(params) {
|
|
626
|
+
const { address, mint } = params;
|
|
627
|
+
return this.base.get(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/pnl/${encodeURIComponent(mint)}`);
|
|
628
|
+
}
|
|
629
|
+
/** pump.fun's blocklist screen for a Solana or EVM wallet. The verdict is in the body: `statusCode` 200 (`OK`) means the wallet passes, 405 (`Wallet not allowed`) means pump.fun blocks it. Costs 1 credit. */
|
|
630
|
+
async walletScreening(params) {
|
|
631
|
+
const { address } = params;
|
|
632
|
+
return this.base.get(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/screening`);
|
|
633
|
+
}
|
|
634
|
+
/** A wallet's trades in one coin from pump.fun's PnL service, each with its PnL effect. Pass `cursor` from `pagination.nextCursor` while `pagination.hasMore` is true. `chain` and `nativeUnit` appear for EVM wallets only. Costs 1 credit. */
|
|
635
|
+
async walletTrades(params) {
|
|
636
|
+
const { address, ...query } = params;
|
|
637
|
+
return this.base.get(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/trades`, query);
|
|
638
|
+
}
|
|
639
|
+
/** A Solana wallet's transaction history. Costs 1 credit. */
|
|
640
|
+
async walletTransactions(params) {
|
|
641
|
+
const { address, ...query } = params;
|
|
642
|
+
return this.base.get(`/v1/pumpfun/wallets/${encodeURIComponent(address)}/transactions`, query);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
//# sourceMappingURL=client.js.map
|