/send/v1/craft-clawback endpoint. You will load an existing invite code, derive the Program Derived Address (PDA), POST to the endpoint, then sign with the sender keypair to reclaim unclaimed tokens.
Overview
1
Load invite code.
2
Load public key from invite.
3
Find the Program Derived Address (PDA) of the invite.
- Uses
"invite"and the public key of recipient at seed.
4
Post request to get Clawback transaction.
5
Sign with sender keypair, then send transaction and wait for confirmation.
Full Code Snippet
Full Code Snippet
Imports
Invite Code and Public Key
Invite PDA
Craft Clawback
NOTEThe clawback will return the full amount including leftover transaction fees and/or rent back to the sender.
