Skip to main content
POST
/
deposit
/
craft
Craft deposit transaction
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

x-api-key
string
header
required
Authorization
string
header
required

JWT token from the challenge-response auth flow

Body

application/json
inputMint
string
required

Mint address of the token to deposit

outputMint
string
required

Mint address of the desired output token

userAddress
string
required

Your wallet public key

amount
string
required

Amount in smallest unit (e.g. lamports for SOL)

orderType
enum<string>
required

Order type for the deposit. Use price when crafting a deposit for price trigger orders.

Available options:
price
orderSubType
enum<string>
required

Required when orderType is price. Use single for standalone orders, oco for OCO orders, and otoco for OTOCO orders.

Available options:
single,
oco,
otoco

Response

Unsigned deposit transaction

transaction
string
required

Base64-encoded unsigned transaction

requestId
string
required

Deposit request ID (used when creating the order)

receiverAddress
string
required

Vault public key receiving the deposit

mint
string
required

Token mint being deposited

amount
string
required

Deposit amount in smallest unit

tokenDecimals
number
required

Token decimals

inputTokenAccount
string

Deterministic per-order input token account. Returned for deposits crafted with an orderSubType.

outputTokenAccount
string

Deterministic per-order output token account. Returned only when orderSubType is otoco.