cURL
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 }
Checks if a user owns a specific token by querying token balances across chains. Returns ownership status and balance with caching for performance.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful response
true
false