craft-send
curl --request POST \
--url https://api.jup.ag/send/v1/craft-send \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"inviteSigner": "7nE9GJoYHNmtaQvTQpota3KV2oz4pQ2dA6nvYK8EUJHV",
"sender": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV",
"amount": "1000000",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
'{
"tx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...",
"expiry": "2025-03-22T10:30:00.000Z",
"totalFeeLamports": "5000"
}Send
Craft Send
Request for a base64-encoded unsigned Send transaction
POST
/
craft-send
craft-send
curl --request POST \
--url https://api.jup.ag/send/v1/craft-send \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"inviteSigner": "7nE9GJoYHNmtaQvTQpota3KV2oz4pQ2dA6nvYK8EUJHV",
"sender": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV",
"amount": "1000000",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
'{
"tx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...",
"expiry": "2025-03-22T10:30:00.000Z",
"totalFeeLamports": "5000"
}Authorizations
Get API key via https://developers.jup.ag/portal
Body
application/json
- Public key address generated from the hash of the invite code
- Do note that, the invite code requires to be generated client side, refer to docs
- Please handle invite code and secret key with highest security as user funds are involved
- Public key address of the sender
- This address will be funding the amount to be sent and the token accounts involved
- Amount in atomic value (before decimals)
- E.g. to send 1 USDC is equivalent of
amount='1000000' - Do note that there will be additional SOL amount being used in the transaction for transaction fees and token accounts
- Defaults to WSOL mint
- Only pass in this parameter with other mint when required
Response
Successful response
Was this page helpful?
⌘I
