Skip to main content
POST
/
check-token-ownership
Check token ownership
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/check-token-ownership \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_address": "<string>",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "is_holder": true,
  "balance": 123,
  "cached": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
token_id
string<uuid>
required
user_address
string
required
user_id
string<uuid>

Response

Successful response

success
enum<boolean>
required
Available options:
true,
false
is_holder
boolean
required
balance
number
required
cached
boolean