dex-skills v0.1.0

Let's Bonk

Let's Bonk is a Solana memecoin launchpad that operates similarly to Pump.fun but uses a different bonding curve configuration. It leverages the PumpPortal API with the "bonk" pool identifier. Token data queries are handled via the Bitquery GraphQL API.

Chain

Solana Mainnet

Key Details

Property Value
API PumpPortal API
Pool Identifier "bonk"
Token Standard SPL Token
Query Provider Bitquery GraphQL API
Private Key Format Base58
Required API Keys BITQUERY_API_KEY

Setup

Initialize dex-skills for Let's Bonk
import { createSkills, getSkill } from "dex-skills";

const skills = createSkills({
  wallets: {
    solana: {
      privateKey: "your-base58-private-key",
      rpcUrl: "https://api.mainnet-beta.solana.com",
    },
  },
  bitqueryApiKey: process.env.BITQUERY_API_KEY,
});

const letsbonk = getSkill(skills, "letsbonk");
Bitquery API Key Required
Token queries on Let's Bonk use the Bitquery GraphQL API. You must provide a valid BITQUERY_API_KEY in your configuration. Obtain one at https://bitquery.io.

Launch a Token

Token launches on Let's Bonk follow the same PumpPortal flow as Pump.fun, but use the "bonk" pool, which applies a different bonding curve configuration.

Launch Example
const result = await letsbonk.launch({
  name: "Bonk Token",
  symbol: "BNKT",
  description: "A token launched on Let's Bonk.",
  imageUrl: "https://example.com/token-logo.png",
  initialBuyAmount: "0.1",
  links: {
    twitter: "https://x.com/bonktoken",
    telegram: "https://t.me/bonktoken",
    website: "https://bonktoken.xyz",
  },
});

console.log("Token address:", result.tokenAddress);
console.log("Transaction:", result.txHash);

Launch Parameters

Parameter Type Description
name * string Display name of the token.
symbol * string Token ticker symbol.
description string Description of the token.
imageUrl string URL to the token image. Must be publicly accessible.
initialBuyAmount string Amount of SOL to spend on an initial buy immediately after launch.
links object Social links object with optional keys: twitter, telegram, website.

Query Token Info

Token queries are routed through the Bitquery GraphQL API, which indexes on-chain Solana data.

Get Token Info
const token = await letsbonk.getTokenInfo("TokenMintAddress...");

console.log("Name:", token.name);
console.log("Symbol:", token.symbol);
console.log("Price:", token.price);
console.log("Volume:", token.volume24h);

List Tokens

List Tokens
const tokens = await letsbonk.listTokens({
  limit: 20,
  sortBy: "createdAt",
  sortOrder: "desc",
});

for (const token of tokens) {
  console.log(token.symbol, token.tokenAddress);
}

Buy Tokens

Purchase tokens on Let's Bonk by specifying the token address, SOL amount, and optional slippage.

Buy Example
const result = await letsbonk.buy({
  tokenAddress: "TokenMintAddress...",
  amount: "0.1",
  slippage: 10,
});

console.log("Tx Hash:", result.txHash);
console.log("Tokens received:", result.tokenAmount);

Sell Tokens

Sell tokens on Let's Bonk by specifying the token address and amount of tokens to sell.

Sell Example
const result = await letsbonk.sell({
  tokenAddress: "TokenMintAddress...",
  amount: "1000000",
  slippage: 10,
});

console.log("Tx Hash:", result.txHash);
console.log("SOL received:", result.nativeAmount);

Supported Methods

Method Supported
launch() Yes
getTokenInfo() Yes
listTokens() Yes
buy() Yes
sell() Yes
getTrending() No
getTradeHistory() No
getHolders() No
estimatePrice() No

Platform Notes

Bonding Curve Differences
While Let's Bonk shares the PumpPortal infrastructure with Pump.fun, it uses a distinct bonding curve configuration. The curve parameters, graduation threshold, and fee structure may differ. Tokens launched on Let's Bonk trade on the Bonk ecosystem rather than graduating to Raydium.
Bitquery GraphQL Queries
Unlike Pump.fun which has its own query endpoints, Let's Bonk token data is indexed by Bitquery. GraphQL queries are constructed automatically by dex-skills, but rate limits and data freshness depend on your Bitquery plan tier.

Supported Social Links

Field Description
twitter Twitter/X profile URL
telegram Telegram group or channel URL
website Project website URL