Reference
REST endpoints
Every route with its inputs and outputs.
Every route of the API, grouped by what it serves. Paths take a flare's mint as :mint. Each route's types are listed under Models.
| Route | Client | What it answers |
|---|---|---|
GET /health | health | Whether the API serves chain data yet. |
GET /v1/platform | platform | The platform’s addresses, fee rates, curve and Flare rules. Read once at start. |
GET /v1/coins | coins | Flares, sorted, filtered and searched, one page at a time. |
GET /v1/coins/:mint | coin | One flare with its live pool state. |
GET /v1/coins/:mint/trades | trades | The flare’s trades, newest first. |
GET /v1/coins/:mint/candles | candles | Price candles. |
GET /v1/coins/:mint/holders | holders | Who holds the flare. |
GET /v1/coins/:mint/attention | attention | The flare’s score, rank and every closed epoch with its components. |
GET /v1/coins/:mint/treasury | treasury | The flare’s marketing treasury: credited, paid, pending and each event. Flares launched on Flare only; a LaunchLab token answers NOT_FOUND. |
GET /v1/coins/:mint/access | access | The flare’s access list, under the creator’s rule or one you pass. Flares launched on Flare only; a LaunchLab token answers NOT_FOUND. |
GET /v1/leaderboard/holders | holderLeaderboard | Holders by the summed scores of the flares they hold. |
GET /v1/leaderboard/projects | projectLeaderboard | Creators by the summed scores of the flares they launched. |
GET /v1/portfolio/:wallet | portfolio | A wallet’s positions and the flares it launched. |
POST /v1/metadata | uploadMetadata | Upload the image and text fields as multipart/form-data: an image file and an info field holding MetadataInfo as JSON. Answers the metadata URI a launch names. |
POST /v1/launch/build | buildLaunch | Build the launch transaction: the new flare and, optionally, the creator’s first buy. |
POST /v1/trade/build | buildTrade | Build an exact-in buy or sell on whichever venue the flare trades on now, with its quote. |
POST /v1/transactions/submit | submit | Hand back a signed transaction for the API to send, or the signature of one the wallet sent. |
GET /v1/transactions/:id | status | A built transaction’s status, until it confirms, fails or expires. |
Platform
GET /health
| GET /health | |
|---|---|
| Returns | Health |
GET /v1/platform
| GET /v1/platform | |
|---|---|
| Returns | Platform |
| Errors | PROGRAM_UNAVAILABLE, UPSTREAM_UNAVAILABLE |
Flares
GET /v1/coins
| GET /v1/coins | |
|---|---|
| Query | CoinsQuery |
| Returns | CoinsPage |
GET /v1/coins/:mint
| GET /v1/coins/:mint | |
|---|---|
:mint | The flare’s mint. |
| Returns | CoinDetail |
| Errors | NOT_FOUND, UPSTREAM_UNAVAILABLE |
GET /v1/coins/:mint/trades
| GET /v1/coins/:mint/trades | |
|---|---|
:mint | The flare’s mint. |
| Query | PageQuery |
| Returns | TradesPage |
GET /v1/coins/:mint/candles
| GET /v1/coins/:mint/candles | |
|---|---|
:mint | The flare’s mint. |
| Query | CandlesQuery |
| Returns | Candles |
GET /v1/coins/:mint/holders
| GET /v1/coins/:mint/holders | |
|---|---|
:mint | The flare’s mint. |
| Returns | Holders |
| Errors | NOT_FOUND |
Attention
GET /v1/coins/:mint/attention
| GET /v1/coins/:mint/attention | |
|---|---|
:mint | The flare’s mint. |
| Returns | AttentionDetail |
| Errors | NOT_FOUND |
GET /v1/coins/:mint/treasury
| GET /v1/coins/:mint/treasury | |
|---|---|
:mint | The flare’s mint. |
| Returns | Treasury |
| Errors | NOT_FOUND |
GET /v1/coins/:mint/access
| GET /v1/coins/:mint/access | |
|---|---|
:mint | The flare’s mint. |
| Query | AccessQuery |
| Returns | AccessList |
| Errors | NOT_FOUND |
Portfolio and leaderboards
GET /v1/leaderboard/holders
| GET /v1/leaderboard/holders | |
|---|---|
| Query | LeaderboardQuery |
| Returns | HolderLeaderboard |
GET /v1/leaderboard/projects
| GET /v1/leaderboard/projects | |
|---|---|
| Query | LeaderboardQuery |
| Returns | ProjectLeaderboard |
GET /v1/portfolio/:wallet
| GET /v1/portfolio/:wallet | |
|---|---|
:wallet | The wallet. |
| Returns | Portfolio |
Launch and trade
POST /v1/metadata
| POST /v1/metadata | |
|---|---|
| Body | image file and info field: MetadataInfo |
| Returns | MetadataUpload |
| Errors | UNSUPPORTED_MEDIA_TYPE, PAYLOAD_TOO_LARGE, IMAGE_INVALID, IMAGE_TOO_LARGE, UPLOAD_FAILED, CONFIGURATION_REQUIRED |
POST /v1/launch/build
| POST /v1/launch/build | |
|---|---|
| Body | LaunchRequest |
| Returns | LaunchBuild |
| Errors | PROGRAM_UNAVAILABLE, MINT_STOCK_EMPTY, QUOTE_TOO_SMALL, SIMULATION_FAILED, CHAIN_REFUSED, UPSTREAM_UNAVAILABLE |
POST /v1/trade/build
| POST /v1/trade/build | |
|---|---|
| Body | TradeRequest |
| Returns | TradeBuild |
| Errors | PROGRAM_UNAVAILABLE, NOT_FOUND, FLARE_EXPIRED, CURVE_COMPLETE, QUOTE_TOO_SMALL, SIMULATION_FAILED, CHAIN_REFUSED, UPSTREAM_UNAVAILABLE |
POST /v1/transactions/submit
| POST /v1/transactions/submit | |
|---|---|
| Body | TxSubmission.relay or TxSubmission.walletSent |
| Returns | TxStatus |
| Errors | PROGRAM_UNAVAILABLE, NOT_FOUND, TRANSACTION_EXPIRED, IDEMPOTENCY_CONFLICT, SIMULATION_FAILED, CHAIN_REFUSED, UPSTREAM_UNAVAILABLE |
GET /v1/transactions/:id
| GET /v1/transactions/:id | |
|---|---|
:id | The build’s id. |
| Returns | TxStatus |
| Errors | NOT_FOUND |
Models
Every type the routes take and return. A field marked required is always present in a response and must be sent in a request.
| Field | Type | Description |
|---|---|---|
sourcerequired | 'flare' | 'launchlab' | flare launched on Flare, or launchlab a live token from another LaunchLab launchpad, read from Raydium’s public data. |
launchpadrequired | string | null | The LaunchLab launchpad it launched on (Flare for Flare’s own), or null when unknown. |
mintrequired | address | The flare’s token mint. Every flare route takes it as :mint. |
poolrequired | address | Its LaunchLab pool (PoolState). |
namerequired | string | Name, up to 32 characters. |
symbolrequired | string | Ticker, up to 10 characters. |
descriptionrequired | string | The creator’s description, from the metadata. |
imagerequired | string | null | Image URL from the metadata, or null when it has none. |
metadataUrirequired | string | null | The metadata document the mint names; null for LaunchLab tokens. |
linksrequired | CoinLinks | Website, X and Telegram links from the metadata. |
creatorrequired | address | The wallet that launched it. Its marketing treasury is paid here. |
createdAtrequired | ISO 8601 time, UTC | When the launch confirmed. |
launchSignaturerequired | signature | null | The launch transaction; null for LaunchLab tokens. |
phaserequired | 'curve' | 'migrating' | 'graduated' | 'expired' | curve trading on the curve, migrating sold out and waiting for Raydium’s migration, graduated trading on its CPMM pool, expired window closed before the curve sold out. |
progressBpsrequired | bps | Share of the curve’s tokens sold, 0 to 10,000. |
raisedQuoterequired | u64 string | Lamports raised on the curve so far. |
pricerequired | decimal string | SOL per whole token. |
priceUsdrequired | decimal string | null | USD per whole token, or null when no SOL price is available. |
marketCaprequired | decimal string | Market cap in SOL. |
marketCapUsdrequired | decimal string | null | The same in USD, or null. |
volume24hQuoterequired | integer string | Lamports traded in the last 24 hours. |
trades24hrequired | integer | Trades in the last 24 hours. |
holdersrequired | integer | null | Wallets holding the token, pools excluded; null for LaunchLab tokens, whose holders aren’t read. |
lastTradeAtrequired | ISO 8601 time, UTC | null | Time of the latest trade, or null before the first. |
cpmmPoolrequired | address | null | The graduated CPMM pool, read from the migration transaction; null before graduation. |
graduatedAtrequired | ISO 8601 time, UTC | null | When the migration confirmed, or null. |
windowDaysrequired | integer | null | The window the creator chose at launch, in days; null for LaunchLab tokens. |
expiresAtrequired | ISO 8601 time, UTC | null | createdAt plus the window. From this time the API builds no curve trades for the flare. Null for LaunchLab tokens. |
attentionScorerequired | integer | Score of the last closed epoch, 0 to 1000; 0 until the first epoch closes. |
attentionRankrequired | integer | null | Rank among the flares scored in that epoch, 1 the highest; null before the first score. |
treasuryTotalrequired | u64 string | null | Lamports credited to the creator’s marketing treasury so far; null for LaunchLab tokens. |
treasuryPaidrequired | u64 string | null | Lamports of that already sent to the creator’s wallet; null for LaunchLab tokens. |
accessrequired | Coin.access | null | The creator’s access rule for the flare’s access list; null for LaunchLab tokens. |
| Field | Type | Description |
|---|---|---|
statusrequired | 'ready' | 'waiting' | 'fixture' | The Flare platform: ready serving chain data, waiting up but the platform is not on chain yet, fixture serving fixtures. |
feed | object | The LaunchLab feed of other launchpads’ tokens: its status (live while its last read is recent, stale, starting), how many coins it holds, and readAt, its last read. |
| Field | Type | Description |
|---|---|---|
clusterrequired | 'mainnet' | 'devnet' | 'localnet' | The Solana cluster the API reads. |
platformConfigrequired | address | Flare’s LaunchLab PlatformConfig. |
globalConfigrequired | address | Raydium’s WSOL GlobalConfig every flare launches under. |
quoteMintrequired | address | The quote token: wrapped SOL. |
quoteDecimalsrequired | integer | Decimals of the quote token (9). |
baseDecimalsrequired | integer | Decimals of every flare token (6). |
curveFeesrequired | Platform.curveFees | The fee rates every curve trade pays. |
curverequired | Platform.curve | The curve every launch uses. |
cpmmrequired | Platform.cpmm | The CPMM fee tier graduated flares trade on. |
lookupTablesrequired | address[] | Address lookup tables every built transaction compiles over. |
flarerequired | Platform.flare | Flare’s own rules. |
| Field | Type | Description |
|---|---|---|
protocolrequired | ppm | Raydium’s share, from the GlobalConfig. |
platformrequired | ppm | Flare’s platform fee. |
creatorrequired | ppm | LaunchLab’s creator fee; 0 on Flare. |
| Field | Type | Description |
|---|---|---|
supplyrequired | u64 string | Total supply of every flare, base units. |
totalBaseSellrequired | u64 string | Tokens the curve sells before it is sold out, base units. |
totalQuoteFundRaisingrequired | u64 string | Lamports the curve raises when sold out. |
migrateFeerequired | u64 string | Raydium’s migration fee, lamports, taken from the raise at graduation. |
| Field | Type | Description |
|---|---|---|
ammConfigrequired | address | The CPMM AmmConfig (fee tier). |
traderequired | ppm | Trade fee on every swap. |
protocolrequired | ppm | Raydium’s part of the trade fee. |
fundrequired | ppm | Raydium’s fund part of the trade fee. |
creatorrequired | ppm | Creator fee on every swap, paid to the platform key as the pool’s creator. |
creatorSharerequired | ppm | The part of each creator-fee collect Raydium keeps (the tier’s creator_fee_share_rate). |
| Field | Type | Description |
|---|---|---|
windowDaysrequired | Platform.flare.windowDays | The window a launch may choose. |
epochSecondsrequired | integer | Length of an attention epoch. |
weightsrequired | Platform.flare.weights | Percent weights of the four score components; they add up to 100. |
treasurySharerequired | ppm | The creator’s share of the platform curve fee and of the graduated pool’s creator fee after Raydium’s part. |
| Field | Type | Description |
|---|---|---|
defaultrequired | integer | Days when a launch names none. |
minrequired | integer | Shortest window. |
maxrequired | integer | Longest window. |
| Field | Type | Description |
|---|---|---|
volumerequired | number | Weight of 24h volume. |
holdersrequired | number | Weight of holders. |
velocityrequired | number | Weight of buy velocity. |
retentionrequired | number | Weight of retention. |
| Field | Type | Description |
|---|---|---|
website | string | http or https URL. |
x | string | http or https URL. |
telegram | string | http or https URL. |
| Field | Type | Description |
|---|---|---|
thresholdrequired | u64 string | Least balance, base units, a wallet must hold at an epoch close to count it. |
epochsrequired | integer | Epoch closes a wallet must count to be on the list. |
| Field | Type | Description |
|---|---|---|
staterequired | CurveState | CpmmState | null | The live pool: the curve while trading on it, the CPMM pool once graduated, null while migrating. |
stateSlotrequired | integer | The slot state was read at. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
kindrequired | "curve" | Always curve. |
virtualBaserequired | u64 string | Virtual token reserve of the constant-product curve. |
virtualQuoterequired | u64 string | Virtual SOL reserve. |
realBaserequired | u64 string | Tokens sold off the curve. |
realQuoterequired | u64 string | Lamports raised. |
totalBaseSellrequired | u64 string | Tokens the curve sells in all. |
| Field | Type | Description |
|---|---|---|
kindrequired | "cpmm" | Always cpmm. |
poolrequired | address | The CPMM pool. |
token0Mintrequired | address | The pool’s token 0 (the smaller mint by bytes). |
token1Mintrequired | address | Its token 1. |
reserve0required | u64 string | Reserve of token 0, net of fees the pool still holds. |
reserve1required | u64 string | Reserve of token 1, net of fees. |
creatorFeeOnrequired | integer | Which side pays the creator fee: 0 both tokens, 1 token 0 only, 2 token 1 only. |
creatorFeeEnabledrequired | boolean | False when the pool charges no creator fee. |
| Field | Type | Description |
|---|---|---|
cursor | string | page.nextCursor from the previous page. |
limit | integer = 24 | Items per page, 1 to 100. |
sort | 'new' | 'marketCap' | 'volume' | 'progress' | 'lastTrade' | 'attention' = "new" | new, marketCap, volume, progress, lastTrade or attention. |
phase | 'curve' | 'migrating' | 'graduated' | 'expired' | Only flares in this phase. |
creator | address | Only flares this wallet launched. |
source | 'flare' | 'launchlab' | flare or launchlab only. |
q | string | Name, symbol or mint, 1 to 64 characters. |
| Field | Type | Description |
|---|---|---|
itemsrequired | Coin[] | The flares on this page. |
pagerequired | PageInfo | Where the next page starts. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
cursor | string | page.nextCursor from the previous page. |
limit | integer = 24 | Items per page, 1 to 100. |
| Field | Type | Description |
|---|---|---|
nextCursorrequired | string | null | Pass as cursor for the next page; null on the last. |
hasMorerequired | boolean | Whether another page follows. |
| Field | Type | Description |
|---|---|---|
signaturerequired | signature | The trade’s transaction. |
mintrequired | address | The flare traded. |
walletrequired | address | The trader. |
siderequired | 'buy' | 'sell' | buy or sell. |
baserequired | u64 string | Tokens bought or sold, base units. |
quoterequired | u64 string | Lamports paid on a buy (fees included) or received on a sell (fees taken). |
pricerequired | decimal string | SOL per whole token at this trade. |
priceUsdrequired | decimal string | null | USD per whole token, or null. |
venuerequired | 'curve' | 'cpmm' | curve or cpmm. |
slotrequired | integer | null | Slot the trade landed in; null for LaunchLab tokens, whose source gives block time only. |
atrequired | ISO 8601 time, UTC | Block time. |
| Field | Type | Description |
|---|---|---|
itemsrequired | Trade[] | Trades, newest first. |
pagerequired | PageInfo | Where the next page starts. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
interval | '1m' | '5m' | '15m' | '1h' | '4h' | '1d' = "5m" | 1m, 5m, 15m, 1h, 4h or 1d. |
from | ISO 8601 time, UTC | First candle time. |
to | ISO 8601 time, UTC | Last candle time. |
unit | 'quote' | 'usd' = "quote" | quote for SOL per token, usd for USD per token. |
| Field | Type | Description |
|---|---|---|
mintrequired | address | The flare. |
intervalrequired | '1m' | '5m' | '15m' | '1h' | '4h' | '1d' | The interval asked for. |
unitrequired | 'quote' | 'usd' | The unit asked for. |
itemsrequired | Candle[] | Candles, oldest first. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
timerequired | ISO 8601 time, UTC | Start of the interval. |
openrequired | decimal string | First price. |
highrequired | decimal string | Highest price. |
lowrequired | decimal string | Lowest price. |
closerequired | decimal string | Last price. |
volumeQuoterequired | integer string | null | Lamports traded in the interval; null for LaunchLab tokens. |
tradesrequired | integer | null | Trades in the interval; null for LaunchLab tokens. |
| Field | Type | Description |
|---|---|---|
mintrequired | address | The flare. |
itemsrequired | Holder[] | Holders, largest first, up to 100. |
totalrequired | integer | null | Number of holders; null, with no items, for LaunchLab tokens. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
walletrequired | address | The holder. |
amountrequired | u64 string | Balance, base units. |
shareBpsrequired | bps | Share of the supply, 0 to 10,000. |
isPoolrequired | boolean | True for the curve’s vault or the CPMM pool’s. |
isCreatorrequired | boolean | True for the flare’s creator. |
| Field | Type | Description |
|---|---|---|
walletrequired | address | The wallet. |
positionsrequired | Position[] | Flares it holds. |
launchedrequired | Coin[] | Flares it launched. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
coinrequired | Coin | The flare held. |
amountrequired | u64 string | Balance, base units. |
valuerequired | integer string | Lamports the balance would fetch at the current price. |
costrequired | integer string | Lamports spent on the tokens still held. |
realizedrequired | signed integer string | Profit or loss already taken on sells, lamports. |
| Field | Type | Description |
|---|---|---|
mintrequired | address | The flare. |
scorerequired | integer | Score of the last closed epoch, 0 to 1000. |
rankrequired | integer | null | Rank in that epoch, or null. |
epochSecondsrequired | integer | Length of an epoch. |
nextEpochAtrequired | ISO 8601 time, UTC | When the open epoch closes and the next score lands. |
historyrequired | AttentionEpoch[] | Closed epochs, newest first, up to 336 (14 days of hourly epochs). |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
epochrequired | integer | Epoch number: its start time divided by the epoch length. |
startAtrequired | ISO 8601 time, UTC | Start of the epoch. |
scorerequired | integer | The weighted score, 0 to 1000. For LaunchLab tokens, volume and velocity only, in the proportion of their weights. |
rankrequired | integer | null | Rank among the flares scored in the epoch. |
volumerequired | integer | Volume component, 0 to 1000. |
holdersrequired | integer | null | Holders component, 0 to 1000; null for LaunchLab tokens. |
velocityrequired | integer | Velocity component, 0 to 1000. |
retentionrequired | integer | null | Retention component, 0 to 1000; null for LaunchLab tokens. |
holderCountrequired | integer | null | Wallets holding at the close, pools excluded; null for LaunchLab tokens. |
| Field | Type | Description |
|---|---|---|
mintrequired | address | The flare. |
creatorrequired | address | The wallet payouts go to. |
totalrequired | u64 string | Lamports credited so far. |
paidrequired | u64 string | Lamports sent to the creator. |
pendingrequired | u64 string | Credited and not yet sent; the keeper pays it after its next fee claim. |
sharerequired | ppm | The creator’s share of each fee. |
eventsrequired | TreasuryEvent[] | Credits and payouts, newest first, up to 100. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
signaturerequired | signature | The transaction that paid the fee, or the payout transaction. |
amountrequired | u64 string | Lamports credited or paid. |
kindrequired | 'curve_fee' | 'cpmm_fee' | 'payout' | curve_fee a share of a curve trade’s platform fee, cpmm_fee a share of a graduated pool’s creator fee, payout a transfer to the creator. |
atrequired | ISO 8601 time, UTC | Block time. |
| Field | Type | Description |
|---|---|---|
threshold | u64 string, > 0 | Least balance, base units; the creator’s rule when left out. |
epochs | integer | Epoch closes held, 1 to 720; the creator’s rule when left out. |
| Field | Type | Description |
|---|---|---|
mintrequired | address | The flare. |
thresholdrequired | u64 string | The balance applied. |
epochsrequired | integer | The epoch count applied. |
finalrequired | boolean | False while the window is open and the list can still grow; true after graduation or expiry. |
walletsrequired | AccessWallet[] | Wallets on the list, those that held longest first, up to 10,000. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
walletrequired | address | The holder. |
balancerequired | u64 string | The least it held at a counted epoch close. |
epochsHeldrequired | integer | Epoch closes at which it held at least the threshold. |
firstEpochrequired | integer | The first such epoch. |
| Field | Type | Description |
|---|---|---|
limit | integer = 50 | Rows, 1 to 100. |
| Field | Type | Description |
|---|---|---|
itemsrequired | HolderRank[] | Holders, highest total first. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
rankrequired | integer | Position, from 1. |
walletrequired | address | The holder. |
totalScorerequired | integer | Sum of the current scores of every flare it holds. |
flareCountrequired | integer | Flares it holds. |
| Field | Type | Description |
|---|---|---|
itemsrequired | ProjectRank[] | Creators, highest total first. |
asOfrequired | ISO 8601 time, UTC | When the response was made. |
| Field | Type | Description |
|---|---|---|
rankrequired | integer | Position, from 1. |
creatorrequired | address | The creator wallet. |
totalScorerequired | integer | Sum of the current scores of every flare it launched. |
flareCountrequired | integer | Flares it launched. |
toprequired | ProjectRank.top | Its highest-scoring flare. |
| Field | Type | Description |
|---|---|---|
mintrequired | address | The flare. |
namerequired | string | Its name. |
symbolrequired | string | Its ticker. |
scorerequired | integer | Its current score. |
| Field | Type | Description |
|---|---|---|
namerequired | string | Name, 1 to 32 characters. |
symbolrequired | string | Ticker, 1 to 10 characters. |
description | string = "" | Up to 1,000 characters. |
links | CoinLinks = {} | Website, X and Telegram links. |
| Field | Type | Description |
|---|---|---|
urirequired | string | The metadata URI to pass as metadataUri to the launch. |
imagerequired | string | The uploaded image’s URL. |
| Field | Type | Description |
|---|---|---|
walletrequired | address | The creator’s wallet: fee payer, signer and the flare’s creator. |
namerequired | string | Name, 1 to 32 characters. |
symbolrequired | string | Ticker, 1 to 10 characters. |
metadataUrirequired | string | The uri from the metadata upload. |
firstBuy | u64 string = "0" | Lamports the creator spends on a first buy in the launch transaction; "0" for none. |
slippageBps | integer = 100 | Slippage allowed on the first buy, 0 to 5,000. |
windowDays | integer | The window in days, within Platform.flare.windowDays. |
accessThreshold | u64 string, > 0 | The access rule’s least balance, base units. 1 when left out. |
accessEpochs | integer | The access rule’s epoch count, 1 to 720. 1 when left out. |
| Field | Type | Description |
|---|---|---|
buildrequired | TxBuild | The transaction to sign. |
mintrequired | address | The new flare’s mint. |
poolrequired | address | Its LaunchLab pool. |
firstBuyrequired | LaunchBuild.firstBuy | null | The first buy’s quote, or null without one. |
| Field | Type | Description |
|---|---|---|
quoteInrequired | u64 string | Lamports spent. |
baseOutrequired | u64 string | Tokens expected, base units. |
minimumOutrequired | u64 string | Least tokens the transaction accepts. |
feerequired | u64 string | Lamports of fees in it. |
| Field | Type | Description |
|---|---|---|
walletrequired | address | The trader: fee payer and signer. |
mintrequired | address | The flare. |
siderequired | 'buy' | 'sell' | buy or sell. |
amountrequired | u64 string, > 0 | Exact input: lamports on a buy, token base units on a sell. |
slippageBps | integer = 100 | Slippage allowed, 0 to 5,000. |
| Field | Type | Description |
|---|---|---|
buildrequired | TxBuild | The transaction to sign. |
quoterequired | TradeQuote | What it trades. |
| Field | Type | Description |
|---|---|---|
venuerequired | 'curve' | 'cpmm' | curve or cpmm, whichever the flare trades on now. |
amountInrequired | u64 string | What goes in: lamports on a buy, tokens on a sell. |
amountOutrequired | u64 string | What comes out at the current state. |
minimumOutrequired | u64 string | The least the transaction accepts, after slippage. |
feerequired | u64 string | Every fee the trade pays, lamports. |
priceImpactBpsrequired | integer | How far the trade moves the price, in bps. |
| Field | Type | Description |
|---|---|---|
idrequired | string | The build’s id, for submit. |
transactionBase64required | base64 | The unsigned v0 transaction. |
blockhashrequired | string | Its recent blockhash. |
lastValidBlockHeightrequired | integer | The block height after which it can no longer land. |
cosignedrequired | boolean | True for a launch: the server adds the new mint’s signature after the wallet signs, so the wallet hands it back to submit instead of sending it. |
| Field | Type | Description |
|---|---|---|
moderequired | "relay" | relay: the API sends the signed transaction. |
buildIdrequired | string | The build’s id. |
signedTransactionBase64required | base64 | The transaction as the wallet signed it. |
idempotencyKeyrequired | string | 8 to 64 characters, one per attempt. |
| Field | Type | Description |
|---|---|---|
moderequired | "wallet-sent" | wallet-sent: the wallet already sent it. |
buildIdrequired | string | The build’s id. |
signaturerequired | signature | The signature the wallet returned. |
idempotencyKeyrequired | string | 8 to 64 characters, one per attempt. |
| Field | Type | Description |
|---|---|---|
idrequired | string | The build’s id. |
statusrequired | 'submitted' | 'unconfirmed' | 'confirmed' | 'finalized' | 'failed' | 'expired' | submitted, unconfirmed, confirmed, finalized, failed or expired. |
signature | signature | The transaction signature once known. |
error | TxFailure | Why it failed, on failed. |
| Field | Type | Description |
|---|---|---|
stagerequired | 'build' | 'wallet-rejected' | 'wallet-changed' | 'simulation' | 'send' | 'confirm' | build, wallet-rejected, wallet-changed, simulation, send or confirm. |
messagerequired | string | A sentence to show. |
nextStep | string | What to do next, when there is something to do. |
retryablerequired | boolean | Whether building again can succeed. |
program | TxFailure.program | The program that refused it. |
| Field | Type | Description |
|---|---|---|
addressrequired | address | The program. |
coderequired | integer | null | Its custom error code, or null. |
namerequired | string | null | The error’s name, or null. |