Skip to main content
The Launchpad SDK gives you read-only access to the OneSwap Launchpad: coins, prices, trades, holder counts, and indicative quotes. Use it for dashboards, market monitors, analytics, and listings. It cannot trade. To trade launchpad coins on your own wallet, use the Trader SDK. To call the API over HTTP from another language, see the Launchpad API.

Install

Get a Launchpad API key

Sign in to OneSwap and open Developer. Under Launchpad API keys, enter an optional label and click Generate key. A key looks like lpk_live_ followed by 48 hex characters.
  • The key is read-only. It is not linked to a wallet and cannot move funds.
  • You can hold up to five active keys. Revoke a key from the same page.
  • Each key has its own per-minute request limit. Contact OneSwap if you need a higher one.
The key is shown once, at creation. OneSwap stores only a hash of it. If you lose a key, generate a new one and revoke the old one. Keep keys on a server, not in browser code.

Create the client

List coins

  • sort is recent (default), volume, or mcap.
  • lane is new, stretch, or graduated.
  • Prices, market caps, and volumes are in CC.
  • Pass nextCursor back as cursor to page manually, or use allCoins to page for you.

Read one coin

A coin includes its bonding-curve state, recent trades, and its holder count. After graduation, liquidityMigrated turns true once the coin trades on its pool. imageUrl, websiteUrl, xUrl, and telegramUrl show the coin’s current image and links. The creator can change them at any time after launch, from My launches → Edit links & image. A link the creator removes comes back as an empty string.
Don’t cache a coin’s image or links forever. Read them again from coin or coins to pick up the creator’s latest edit.

Trades and holder count

You get how many wallets hold a coin, not who holds it: no addresses, usernames, or balances. After graduation, holder data can be unavailable because pool holdings are not indexed.

Quotes

Quotes are indicative. They are not tied to a wallet and do not include the network fee. A graduated coin whose liquidity is still moving to its pool returns ConflictError until the move completes.

Errors and rate limits

Every failure is a subclass of LaunchpadError with status, code, and data: When a key goes over its limit, the SDK waits for the server’s retry delay and tries again, twice by default. Set maxRateLimitRetries: 0 to handle RateLimitError and its retryAfterSeconds yourself.