curl --request POST \
--url https://api.jup.ag/trigger/v2/deposit/craft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"userAddress": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV",
"amount": "1000000000",
"orderType": "price",
"orderSubType": "single"
}
'{
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...",
"requestId": "01234567-89ab-cdef-0123-456789abcdef",
"receiverAddress": "7nE9GJoYHNmtaQvTQpota3KV2oz4pQ2dA6nvYK8EUJHV",
"mint": "So11111111111111111111111111111111111111112",
"amount": "1000000000",
"tokenDecimals": 9,
"inputTokenAccount": "InputTokenAccountPubkey..."
}Craft Deposit
Craft a deposit transaction for the trigger vault
curl --request POST \
--url https://api.jup.ag/trigger/v2/deposit/craft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"userAddress": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV",
"amount": "1000000000",
"orderType": "price",
"orderSubType": "single"
}
'{
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...",
"requestId": "01234567-89ab-cdef-0123-456789abcdef",
"receiverAddress": "7nE9GJoYHNmtaQvTQpota3KV2oz4pQ2dA6nvYK8EUJHV",
"mint": "So11111111111111111111111111111111111111112",
"amount": "1000000000",
"tokenDecimals": 9,
"inputTokenAccount": "InputTokenAccountPubkey..."
}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
JWT token from the challenge-response auth flow
Body
Mint address of the token to deposit
Mint address of the desired output token
Your wallet public key
Amount in smallest unit (e.g. lamports for SOL)
Order type for the deposit. Use price when crafting a deposit for price trigger orders.
price Required when orderType is price. Use single for standalone orders, oco for OCO orders, and otoco for OTOCO orders.
single, oco, otoco Response
Unsigned deposit transaction
Base64-encoded unsigned transaction
Deposit request ID (used when creating the order)
Vault public key receiving the deposit
Token mint being deposited
Deposit amount in smallest unit
Token decimals
Deterministic per-order input token account. Returned for deposits crafted with an orderSubType.
Deterministic per-order output token account. Returned only when orderSubType is otoco.
Was this page helpful?
