Skip to main content
GET
/
express
/
craft-txn
Craft express verification payment transaction
curl --request GET \
  --url https://api.jup.ag/tokens/v2/verify/express/craft-txn \
  --header 'x-api-key: <api-key>'
{
  "transaction": "<string>",
  "requestId": "<string>",
  "receiverAddress": "<string>",
  "mint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
  "amount": "<string>",
  "tokenDecimals": 123,
  "feeLamports": 123,
  "feeMint": "<string>",
  "feeTokenDecimals": 123,
  "feeAmount": 123,
  "totalTime": 123,
  "code": 123,
  "gasless": true,
  "tokenUsdRate": 123,
  "feeUsdAmount": 123,
  "expireAt": "<string>",
  "error": "<string>"
}

Authorizations

x-api-key
string
header
required

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

Query Parameters

senderAddress
string
required

Solana wallet address that will sign and pay for the transaction

Response

Unsigned payment transaction

transaction
string
required

Base64-encoded unsigned transaction

requestId
string
required

Unique request ID. Pass this to the execute endpoint.

receiverAddress
string
required

Wallet address receiving the JUP payment

mint
string
required

Mint address of the payment token (JUP)

Example:

"JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"

amount
string
required

Payment amount in smallest unit (1000 JUP = 1000000000)

tokenDecimals
number
required

Decimals of the payment token

feeLamports
number
required

Transaction fee in lamports

feeMint
string
required

Mint address of the fee token

feeTokenDecimals
number
required

Decimals of the fee token

feeAmount
number
required

Fee amount in smallest unit

totalTime
number
required

Time taken to craft the transaction in milliseconds

code
number
required

Status code (0 for success)

gasless
boolean
required

Whether the transaction is gasless

tokenUsdRate
number

USD rate of the payment token at time of crafting

feeUsdAmount
number

Transaction fee in USD

expireAt
string

Expiry timestamp for the crafted transaction

error
string

Error message if crafting failed