cURL
curl --request POST \ --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/tip-token \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "tipAmount": 1, "tipAmountUSD": 1 }'
{ "success": true, "transaction": { "to": "<string>", "data": "<string>", "value": "<string>" } }
Prepares a transaction to tip tokens to a post’s creator. Supports tipping in token amount or USD value (converted to tokens).
JWT token or API key
Amount in tokens (provide either this or tipAmountUSD)
x > 0
Amount in USD - will be converted to tokens (provide either this or tipAmount)
Successful response
Show child attributes