Integration recipes
1. Watch for new launches (live)
import { createClient } from 'graphql-ws'
import { WebSocket } from 'ws'
const client = createClient({
url: 'wss://ql.kumbaya.xyz/v1/graphql',
webSocketImpl: WebSocket,
})
const unsubscribe = client.subscribe(
{
query: `
subscription NewLaunches($chainId: Int!) {
FireToken(
where: { chainId: { _eq: $chainId } }
order_by: { createdAt: desc }
limit: 10
) {
address creator createdAt
pool { id }
marketCapUSD graduationProgress
}
}
`,
variables: { chainId: 4326 },
},
{
next: ({ data }) => {
const latest = data?.FireToken?.[0]
if (latest && Date.now() / 1000 - Number(latest.createdAt) < 60) {
console.log('New launch:', latest.address)
// your hook: e.g. evaluate, snipe, post a tweet
}
},
error: console.error,
complete: () => console.log('subscription ended'),
},
)2. "Heating up" - find tokens with rising volume
3. Buy a launchpad token - quote then swap
4. Sweep your creator earnings
5. Find every token I created (and what they've earned)
6. Trigger graduation on tokens that are ready
7. Search-as-you-type token picker
8. Newest swaps for a pool (REST, no GraphQL)
9. Read protocol-level config live
10. Build a creator-fee dashboard
More
Last updated