Flare
App

Guides

Trade a flare

Buy and sell on the curve or the graduated pool.

For anyone buying or selling a flare. The Flare site shows every flare and its score but doesn't trade: a flare trades on its Raydium pools, and every trade there counts toward its score, whichever app sent it.

Where a flare trades

  • On its Raydium LaunchLab curve while the flare is live. Each trade pays Raydium's fee and Flare's 2.75% platform fee, half of which goes to the project's marketing treasury.
  • On its Raydium CPMM pool once it has graduated, at the pool's 0.2% trade fee and 1.9% creator fee.
  • Nowhere for the moment between the curve selling out and the pool opening, while it is migrating.

Any app that trades Raydium LaunchLab curves and CPMM pools can trade a flare by its mint, Raydium's own included. GET /v1/coins/:mint gives its phase and, after graduation, the pool as cpmmPool. Flare's API and CLI build trades too, below. See Fees for the full split.

After expiry

Once the window closes, Flare's API builds no more trades on the curve, and the flare's score and access list are final. The curve itself is LaunchLab's and stays open onchain, so a trade sent from elsewhere can still fill. It changes neither the score nor the access list. See Expiry.

With the API

POST /v1/trade/build takes the wallet, the mint, the side and the exact input amount: lamports for a buy, token base units for a sell. It picks the venue the flare trades on now and answers the unsigned transaction with its quote. The quote's minimumOut is written into the transaction, so it fails rather than fill worse than your slippage (1% unless you pass slippageBps).

trade-build
{
  "build": {
    "id": "fx-ec59d32c-a1ad-488f-b429-489454bd4857",
    "transactionBase64": "RklYVFVSRV9OT1RfQV9TT0xBTkFfVFJBTlNBQ1RJT046dHJh\u2026",
    "blockhash": "CgTDDBr3oRnhNff3mzDCU7ZkeUz7Ac5D6Hwq4ybBL2Ym",
    "lastValidBlockHeight": 290000001,
    "cosigned": false
  },
  "quote": {
    "venue": "curve",
    "amountIn": "100000000",
    "amountOut": "558010555794",
    "minimumOut": "552430450236",
    "fee": "3000000",
    "priceImpactBps": 12
  }
}

The wallet then either sends it itself and you report the signature (wallet-sent), or signs it and you submit the bytes for the API to send (relay). GET /v1/transactions/:id follows it to confirmed.

A build for a flare that can't trade answers an error instead: CURVE_COMPLETE while migrating, with a time to retry, and FLARE_EXPIRED after expiry. See Errors.

With the CLI

trade --keypair <file> <mint> buy <SOL> or sell <tokens> builds the trade, signs it with the keypair file and waits for it to confirm. See CLI.

cli/trade
$ npm run cli -- trade --keypair wallet.json 5Lf8DhDbX6tvh53M1arhHWbQ8FQuUMkc2bBgZiUgPDuW buy 0.1
buy on curve: 0.1 SOL for 558010.555794 tokens  impact 0.12%
confirmed  4UyQdHv6fBnuYU2xsRZzmSSpPohean5PA3ecKDB8J1ZAQ3fVHjBaZzrLcKabwfiXkTRWFpSu1dwg3aBKCsn3yFF4