craft-clawback
curl --request POST \
--url https://api.jup.ag/send/v1/craft-clawback \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"invitePDA": "8mF4HKoPQNmtbRvTRqotb4LW3pz5rR3eB7owZL9FVKIW",
"sender": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV"
}
'{
"tx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN..."
}Send
Craft Clawback
Request for a base64-encoded unsigned Send transaction
POST
/
craft-clawback
craft-clawback
curl --request POST \
--url https://api.jup.ag/send/v1/craft-clawback \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"invitePDA": "8mF4HKoPQNmtbRvTRqotb4LW3pz5rR3eB7owZL9FVKIW",
"sender": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV"
}
'{
"tx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN..."
}Authorizations
Get API key via https://developers.jup.ag/portal
Body
application/json
- Program Derived Address derived by
"invite"and the public key of the invite - Do note that, the invitePDA 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
- Since this address funded the invite, it will be the receiving address of the full amount
Response
Successful response
- Base64-encoded unsigned Send transaction
Was this page helpful?
⌘I
