Skip to main content
GET
Blacklist Endpoint

Endpoint

Description

Verifies that a user does NOT hold any tokens from a blacklist of excluded token addresses. This endpoint checks wallet balances and ensures the user doesn’t hold banned tokens or exceed maximum holdings.

Request

Headers

string
required
Nonce received from initial request
string
required
Base58-encoded signature of the challenge payload
string
required
User’s Solana public key
string
required
Must be "blacklist"
string
required
JSON array of token mint addresses to exclude (e.g., ["token1", "token2"])
string
required
JSON object mapping mint addresses to maximum allowed holdings (e.g., {"token1": "1000"})
string
User’s latitude (if geolocation enabled)
string
User’s longitude (if geolocation enabled)
string
required
"true" or "false" to enable/disable geolocation checks
string
required
Country code for geolocation filtering (empty string if not used)
string
JWT token from previous authentication (for re-authentication)

Response

Success (200)

Error Responses

401 - Location Denied

403 - Exceeds Max Holding

500 - Holds Banned Token

500 - Location Error

Verification Logic

  1. Verify signature matches public key
  2. Check wallet does NOT hold any tokens in excluded_mints
  3. Check wallet does NOT exceed max_holdings for any token
  4. Verify geolocation (if enabled)
  5. Return JWT token if all checks pass

Example Request

Example Response