Skip to main content
POST
/
solana
/
dexscreener
/
create-order
Create Dexscreener order
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/solana/dexscreener/create-order \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "tokenAddress": "<string>",
  "description": "<string>",
  "iconImageUrl": "<string>",
  "headerImageUrl": "<string>",
  "payerWallet": "<string>",
  "links": [
    {
      "url": "<string>",
      "label": "<string>"
    }
  ],
  "payWithSol": false
}
'
{
  "success": true,
  "response": {
    "orderUUID": "<string>",
    "recipientWallet": "<string>",
    "priceUSDC": 123,
    "transaction": "<string>",
    "lastValidBlockHeight": 123
  }
}

Authorizations

x-api-key
string
header
required

API key authentication. Provide your API key as the header value.

Body

application/json
tokenAddress
string
required

Solana public key of the token

description
string
required

Token description for the Dexscreener listing

Required string length: 1 - 1000
iconImageUrl
string<uri>
required

URL of the icon image

headerImageUrl
string<uri>
required

URL of the header image

payerWallet
string
required

Solana public key of the payer wallet

Optional array of links to display on the listing

payWithSol
boolean
default:false

Whether to pay with SOL instead of USDC

Response

Successfully created Dexscreener order

success
boolean
required
Example:

true

response
object