TRENDDocs
API referenceCreating a launch

Check launch parameters

POST
/v1/launches/preview

Validates the parameters against the same bounds build-create uses, so a creator learns a rule before the signature prompt.

Request Body

application/json
  1. body
symbol*string
Match^[A-Z0-9]{2,10}$
name*string
Length1 <= length <= 64
description?string
Lengthlength <= 500
Default""
imageUri?|
Defaultnull
website?|
Lengthlength <= 256
x?|
Lengthlength <= 256
telegram?|
Lengthlength <= 256
components*array<>
Items1 <= items <= 5
dnaUnitSol?number
Range0 < value
creator*string
Match^[1-9A-HJ-NP-Za-km-z]{32,44}$
supply?integer
Range0 < value
curveTargetSol?number
Range0 < value
feeBps?number
creatorFeeShareBps?number

Response Body

OK

application/json
  1. response

A JSON object describing the launch these parameters would create.

curl -X POST 'https://api.dev.trend.fun/v1/launches/preview' \  -H 'Content-Type: application/json' \  -d '{  "creator": "8Kc8AJs3W9r8QJMBj7ufCbW5SumQXkTK5nL2EJp29Hfj",  "symbol": "DOGS",  "name": "Dogs of Solana",  "description": "A basket of dog tokens.",  "imageUri": "ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi",  "components": [    {      "mint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",      "targetBps": 6000    },    {      "mint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",      "targetBps": 4000    }  ]}'
{}