Skip to content

Commit fd43ce8

Browse files
Merge pull request #155 from Divyn/main
Pumpfun query updates
2 parents dd2342a + a566b4f commit fd43ce8

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

docs/blockchain/Solana/Pumpfun/Pump-Fun-API.mdx

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ Lists all markets where the token is traded, including pair addresses
12131213
### Get Liquidity of Pump.fun Tokens
12141214

12151215
Gets pool token balances for liquidity estimation across multiple known pool accounts
1216-
[Pump.fun pools and token balances — Query ➤](https://ide.bitquery.io/Pumpfun-pools--token-balances)
1216+
[Pump.fun pools and token balances — Query ➤](https://ide.bitquery.io/Get-Liquidity-of-Pumpfun-Pools)
12171217

12181218
<details>
12191219
<summary>Click to expand GraphQL query</summary>
@@ -1222,50 +1222,36 @@ Gets pool token balances for liquidity estimation across multiple known pool acc
12221222
{
12231223
Solana {
12241224
BalanceUpdates(
1225-
where: {
1226-
Block: { Time: { since: "2024-06-25T07:00:00Z" } }
1227-
BalanceUpdate: {
1228-
Account: {
1229-
Token: {
1230-
Owner: {
1231-
in: [
1232-
"BesTLFfCP9tAuUDWnqPdtDXZRu5xK6XD8TrABXGBECuf"
1233-
"62dvmMKAfnt8jSdT3ToZtxAasx7Ud1tJ6xWsjwwhfaEQ"
1234-
"73ZzSgNi27V9MdNQYyE39Vs9m1P9ZKgGPCHAJHin5gLd"
1235-
"DwPwU1PAjTXtYNYkeR6awYMDBdSEk12npKzJWKbDHMta"
1236-
"FJ4P2a2FqaWmqYpBw9eEfWD6cXV3F2qLPHvAA5jozscS"
1237-
"6crUHiCoxZsQuxdMAB18VATKrg7ToyTVxt7MbLYmtugu"
1238-
]
1239-
}
1240-
}
1241-
}
1242-
Currency: { Native: false }
1243-
}
1244-
}
1225+
where: {BalanceUpdate: {Currency: {Native: false}, PostBalance: {gt: "0"},
1226+
Account: {Owner: {in: ["7jVYY8nUjbt5gzLt3tZJaHD9NSMyaTuvPhJLfazmjjyy", "7iDwUGUDLccKdWN5hUppoqxLeUMjw7BieQAFdTwj3F5V"]}}}} # add pool address here
1227+
limit: {count: 10}
1228+
orderBy: {descending: Block_Time}
12451229
) {
12461230
BalanceUpdate {
12471231
Account {
12481232
Token {
12491233
Owner
12501234
}
1235+
Owner
12511236
Address
12521237
}
12531238
Currency {
12541239
MintAddress
12551240
Native
12561241
}
1257-
PostBalance(maximum: Block_Slot)
1242+
Liquidity: PostBalance(maximum: Block_Slot)
12581243
}
12591244
}
12601245
}
12611246
}
1247+
12621248
```
12631249

12641250
</details>
12651251

12661252
### Get Market Cap, Price, Liquidity, Bonding Curve, and Volume
12671253

1268-
Returns detailed token metrics including bonding curve status
1254+
Returns detailed token metrics including bonding curve status. **Please change the timestamp in the query to recent ones, the saved query might have outdated numbers**
12691255
[Market cap, liquidity, bonding curve, volume — Pump.fun Query ➤](https://ide.bitquery.io/mcap-liquidity-bonding-curve-volume-supply-of-a-token-in-time-frame_1)
12701256

12711257
<details>

0 commit comments

Comments
 (0)