Skip to main content
POST
/
jlp
/
burn
cURL
curl --request POST \
  --url https://lite-api.jup.ag/perps/v1/jlp/burn \
  --header 'Content-Type: application/json' \
  --data '{
  "burnTokenAmount": "<string>",
  "receiveToken": "WBTC",
  "walletAddress": "<string>"
}'
{
  "burnFeeBps": "<string>",
  "burnFeePercent": "<string>",
  "burnFeeTokenAmount": "<string>",
  "receiveToken": "<string>",
  "receiveTokenAmount": "<string>",
  "receiveTokenCustody": "<string>",
  "receiveTokenMint": "<string>",
  "serializedTxBase64": "<string>",
  "transactionType": "legacy",
  "txMetadata": {
    "blockhash": "<string>",
    "lastValidBlockHeight": "<string>",
    "transactionFeeLamports": "0.5",
    "accountRentLamports": "0.5"
  }
}

Body

application/json
burnTokenAmount
string
required

The amount of JLP tokens to burn scaled to 6 decimal places as per the JLP mint

receiveToken
enum<string>
required

Token to receive from burning JLP

Available options:
WBTC,
ETH,
SOL,
USDC
walletAddress
string
required

Public key for the wallet to burn JLP

Response

200 OK

burnFeeBps
string
required

JLP burn fee (BPS)

burnFeePercent
string
required

JLP burn fee (%)

burnFeeTokenAmount
string
required

JLP burn fee in the receive token

receiveToken
string
required

The receive token from burning JLP

receiveTokenAmount
string
required

The amount of the receive token to receive from burning JLP after fees

receiveTokenCustody
string
required

The receive token's custody pubkey

receiveTokenMint
string
required

The receive token's mint pubkey

serializedTxBase64
string | null
required

The serialized transaction (base64 encoded) containing the instructions and given parameters for the borrow / deposit request. The transaction can be deserialized, signed by the owner of walletAddress and submitted onchain.

transactionType
enum<string>
default:legacy
required

The type of transaction

Available options:
legacy
txMetadata
object | null
required

Contains relevant metadata for the serialized transaction. Null if no wallet address passed in.