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
Nonce received from initial request
Base58-encoded signature of the challenge payload
JSON array of token mint addresses to exclude (e.g., ["token1", "token2"])
JSON object mapping mint addresses to maximum allowed holdings (e.g., {"token1": "1000"})
User’s latitude (if geolocation enabled)
User’s longitude (if geolocation enabled)
"true" or "false" to enable/disable geolocation checks
Country code for geolocation filtering (empty string if not used)
JWT token from previous authentication (for re-authentication)
Response
Success (200)
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"publicKey": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"feature": "blacklist"
}
Error Responses
401 - Location Denied
{
"status": "locdeny",
"message": "Access denied for your location"
}
403 - Exceeds Max Holding
{
"error": "EXCEEDS_MAX_HOLDING",
"message": "Wallet exceeds maximum holding for token_address. Current: 5000, Max: 1000"
}
500 - Holds Banned Token
{
"error": "HOLDS_BANNED_TOKEN",
"message": "Wallet holds excluded token: token_address"
}
500 - Location Error
{
"status": "locerror",
"message": "Location access error"
}
Verification Logic
- Verify signature matches public key
- Check wallet does NOT hold any tokens in
excluded_mints
- Check wallet does NOT exceed
max_holdings for any token
- Verify geolocation (if enabled)
- Return JWT token if all checks pass
Example Request
curl -X GET "https://magenx404.onrender.com/x404_auth/blacklist" \
-H "X-404-Nonce: abc123def456" \
-H "X-404-Signature: 5KJvsngHeM..." \
-H "X-404-Addr: 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU" \
-H "X-404-Feature: blacklist" \
-H "excluded_mints: [\"scam_token_1\", \"scam_token_2\"]" \
-H "max_holdings: {}" \
-H "geo_code: false" \
-H "geo_code_locs: "
Example Response
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNfa2V5IjoiN3hLWHRnMkNXODdkOTdUWEpTRHBiRDVqQmtoZVRxQTgzVFpSdUpvc2dBc1UiLCJmZWF0dXJlIjoiYmxhY2tsaXN0IiwiZXhwIjoxNzAwMDAwMDAwfQ.signature",
"publicKey": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"feature": "blacklist"
}