Skip to main content
POST
/
craft-clawback
craft-clawback
curl --request POST \
  --url https://lite-api.jup.ag/send/v1/craft-clawback \
  --header 'Content-Type: application/json' \
  --data '{
  "invitePDA": "<string>",
  "sender": "<string>"
}'
{
  "tx": "<string>"
}

Body

application/json
invitePDA
string
required
  • 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
sender
string
required
  • 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

tx
string
required
  • Base64-encoded unsigned Send transaction
I