Execute Transaction
curl --request POST \
--url https://api.jup.ag/swap/v2/execute \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"signedTransaction": "<string>",
"requestId": "<string>",
"lastValidBlockHeight": "<string>"
}
'{
"signature": "<string>",
"slot": "<string>",
"error": "<string>",
"code": 123,
"totalInputAmount": "<string>",
"totalOutputAmount": "<string>",
"inputAmountResult": "<string>",
"outputAmountResult": "<string>",
"swapEvents": [
{
"inputMint": "<string>",
"inputAmount": "<string>",
"outputMint": "<string>",
"outputAmount": "<string>"
}
]
}Meta-Aggregator
Execute Transaction
Execute a signed transaction from /order with managed landing
POST
/
execute
Execute Transaction
curl --request POST \
--url https://api.jup.ag/swap/v2/execute \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"signedTransaction": "<string>",
"requestId": "<string>",
"lastValidBlockHeight": "<string>"
}
'{
"signature": "<string>",
"slot": "<string>",
"error": "<string>",
"code": 123,
"totalInputAmount": "<string>",
"totalOutputAmount": "<string>",
"inputAmountResult": "<string>",
"outputAmountResult": "<string>",
"swapEvents": [
{
"inputMint": "<string>",
"inputAmount": "<string>",
"outputMint": "<string>",
"outputAmount": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://dev.jup.ag/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Get API key via https://developers.jup.ag/portal
Body
application/json
Response
Execution result
Available options:
Success, Failed Transaction signature
Confirmed slot
Error message (present if Failed)
- Error code. 0 = success.
- Ultra: -1 (missing cached order), -2 (invalid signed tx), -3 (invalid message bytes).
- Aggregator: -1000 (failed to land), -1001 (unknown), -1002 (invalid tx), -1003 (not fully signed), -1004 (invalid block height).
- RFQ: -2000 (failed to land), -2001 (unknown), -2002 (invalid payload), -2003 (quote expired), -2004 (swap rejected).
Total input token amount before fees
Total output token amount after fees
Amount of input token used for the swap
Amount of output token received from the swap
Show child attributes
Show child attributes
Was this page helpful?
⌘I
