Skip to content

Commit febca4f

Browse files
Merge pull request #33 from Divyn/main
Pumpfun query updates
2 parents f309887 + 6778d13 commit febca4f

File tree

1 file changed

+68
-4
lines changed

1 file changed

+68
-4
lines changed

docs/Examples/Solana/transfers.md

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ This query calculates the SOL balance of a wallet at a specific block height by
133133
This query calculates how long a wallet has been holding a specific token by looking at the first and last transfer block heights for that token into the wallet. It is useful for analyzing token holding behavior, vesting, or eligibility for airdrops and loyalty programs.
134134

135135
The query returns:
136-
- **first**: minimum block height at which the wallet first received the token
137-
- **last**: maximum block height at which the wallet most recently received the token
138-
- **period**: the difference between `last` and `first` block heights, representing the *holding period in blocks* (you can convert this to time using block timestamps if needed)
136+
137+
- **first**: minimum block height at which the wallet first received the token
138+
- **last**: maximum block height at which the wallet most recently received the token
139+
- **period**: the difference between `last` and `first` block heights, representing the _holding period in blocks_ (you can convert this to time using block timestamps if needed)
139140

140141
Update `receiverAddress` with the target wallet and `currency` with the token mint address you want to analyze.
141142

@@ -156,9 +157,72 @@ query MyQuery {
156157
}
157158
```
158159

160+
## Get Pumpfun Token Created by a Wallet From Historical Data
161+
162+
[Run query](https://ide.bitquery.io/get-historical-created-token-and-creator)
163+
164+
```graphql
165+
{
166+
solana {
167+
transfers(
168+
options: { limit: 100, desc: "block.height" }
169+
date: { is: "2025-12-08" }
170+
externalProgramId: { is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" }
171+
currency: { is: "9TXP4iVTcP7cChVhbUCQfvkSPKJrmHh1jxMkJgGqLzDP" }
172+
transferType: { is: mint }
173+
) {
174+
block {
175+
height
176+
timestamp {
177+
iso8601
178+
}
179+
}
180+
instruction {
181+
action {
182+
name
183+
}
184+
callPath
185+
external
186+
externalAction {
187+
name
188+
type
189+
}
190+
program {
191+
name
192+
id
193+
}
194+
externalProgram {
195+
id
196+
name
197+
}
198+
}
199+
currency {
200+
name
201+
symbol
202+
address
203+
}
204+
date {
205+
date
206+
}
207+
amount
208+
receiver {
209+
address
210+
mintAccount
211+
type
212+
}
213+
transaction {
214+
signature
215+
signer
216+
}
217+
transferType
218+
}
219+
}
220+
}
221+
```
222+
159223
## Pumpfun Token Migrations on a specific date
160224

161-
Below API retrieves pump fun token migraions on a specific date.
225+
Below API retrieves pump fun token migrations on a specific date.
162226

163227
Try the query [here](https://ide.bitquery.io/pumpfun-transfers-type-v1-to-pumpfun-migrations_1).
164228

0 commit comments

Comments
 (0)