Skip to main content
POST
/
tip-token
Tip tokens on a post
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>"
  }
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
postId
string<uuid>
required
tipAmount
number

Amount in tokens (provide either this or tipAmountUSD)

Required range: x > 0
tipAmountUSD
number

Amount in USD - will be converted to tokens (provide either this or tipAmount)

Required range: x > 0

Response

Successful response

success
boolean
required
transaction
object
required