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"
}
'
{
  "transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...",
  "requestId": "01234567-89ab-cdef-0123-456789abcdef",
  "receiverAddress": "7nE9GJoYHNmtaQvTQpota3KV2oz4pQ2dA6nvYK8EUJHV",
  "mint": "So11111111111111111111111111111111111111112",
  "amount": "1000000000",
  "tokenDecimals": 9
}

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

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)

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