Guides
Launch a flare
From the form to a live curve.
For a project putting its token on Flare. A flare is launched with the CLI or straight through the API, from the wallet that will own it. The launch ends with the flare live on its curve, the creator's first buy in it, and its window counting down. The Flare site shows it once the indexer has recorded it, moments after it confirms.
What you need
- A Solana wallet holding enough SOL for the first buy you want, plus the network fees and the rent of the new accounts. The CLI signs with its keypair file.
- A square image for the token.
- The name (up to 32 characters), ticker (up to 10), a description (up to 1,000) and any website, X and Telegram links.
- The window: 3 to 14 days, 7 by default. It can't be changed after launch.
- The access rule: the least balance a holder must keep and for how many hourly epochs. It is set at launch; 1 base unit for 1 epoch when left out. See Access lists.
With the CLI
One command uploads the image and metadata, builds the launch with the first buy, signs it and waits for it to confirm. See CLI for every option. The CLI launches with the default access rule; to set your own, launch through the API.
$ npm run cli -- launch --keypair wallet.json --name "Docs Example" --symbol DOCS --image apple-icon.png --description "A flare launched for the docs." --window 7 --first-buy 0.5
metadata https://ipfs.io/ipfs/bafkreieffjiyfj5sao24rrdrcgab55caklxjzmqnskey47slnvmjuvqs2e (apple-icon.png)
launched 84dxMEtpQ4rmDxn3ExpckysK7EhHwufF7oqwkPz25JAS confirmed NDHtFAt5trnAFWP9vx5DoVGaUAwiX284Fi9JsvAeayVB7JxiHfzKk67FbycqhMHAPRFz3eyKwCUb2acQA7g3hfD
first buy 17070784.260185 tokens for 0.5 SOLWith the API
Four calls, from metadata to a confirmed launch.
Upload the metadata
shcurl -F image=@token.png \ -F 'info={"name":"Glass Frog","symbol":"GFROG","description":"You can see right through it.","links":{"website":"https://example.com"}}' \ https://api-production-bab49449.up.railway.app/v1/metadataThe answer's
uriis the metadata URI for the next call.Build the launch
POST /v1/launch/buildwith the creator'swallet,name,symbol,metadataUri, thefirstBuyin lamports, and optionallywindowDays,accessThresholdandaccessEpochs. It answers the unsigned transaction, the newmintandpool, and the first buy's quote.Sign and hand it back
The build says
cosigned: true: the wallet signs without sending, and you submit the signed bytes withPOST /v1/transactions/submitinrelaymode. The server adds the mint's signature and sends it. Hand it back within the build's hold time, or the submit answersTRANSACTION_EXPIREDand you build again.Follow it
GET /v1/transactions/:iduntilconfirmed. The flare is readable atGET /v1/coins/:minta few seconds later; until the indexer has it, that route answers a retryableNOT_FOUND.
See REST endpoints for every field and Errors for what each refusal means.
After the launch
Every flare starts on the same curve: 793,100,000 of 1,000,000,000 tokens for sale, about 85 SOL to sell out. From here, the marketing treasury fills with every trade, the Attention Index scores it each hour, and the flare either graduates or expires.