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.
Create the client
List coins
sortisrecent(default),volume, ormcap.laneisnew,stretch, orgraduated.- Prices, market caps, and volumes are in CC.
- Pass
nextCursorback ascursorto page manually, or useallCoinsto page for you.
Read one coin
liquidityMigrated turns true once the coin trades on its pool.
Links and image
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.
Trades and holder count
unavailable because pool holdings are not indexed.
Quotes
ConflictError until the
move completes.
Errors and rate limits
Every failure is a subclass ofLaunchpadError 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.