jupiter_build_swap_transaction
Construct a Solana token swap transaction using Jupiter's API by providing a quote response and user public key. Enable prioritization fees and compute unit price customization.
Instructions
Build a swap transaction on Jupiter
Input Schema
Name | Required | Description | Default |
---|---|---|---|
asLegacyTransaction | No | ||
computeUnitPriceMicroLamports | No | ||
prioritizationFeeLamports | No | ||
quoteResponse | Yes | ||
userPublicKey | Yes |
Input Schema (JSON Schema)
{
"properties": {
"asLegacyTransaction": {
"type": "boolean"
},
"computeUnitPriceMicroLamports": {
"type": "number"
},
"prioritizationFeeLamports": {
"type": "number"
},
"quoteResponse": {
"type": "string"
},
"userPublicKey": {
"type": "string"
}
},
"required": [
"quoteResponse",
"userPublicKey"
],
"type": "object"
}