Detect Bundled Tokens

Checks if a token is part of a liquidity bundle or wrapped asset, including honeypot/farming risk.

// def check_bundled_token(token_address):
    url = f"{BASE_URL}/api/token/bundled"
    headers = {
        "Authorization": f"Bearer {API_KEY}",
        "Content-Type": "application/json"
    }
    payload = {"token_address": token_address}

    try:
        response = requests.post(url, json=payload, headers=headers)
        response.raise_for_status()
        bundled_data = response.json()
        return bundled_data
    except requests.exceptions.RequestException as e:
        print(f"Error checking bundled token: {e}")
        return None

# Fetch and display bundled token information
bundled_info = check_bundled_token(TOKEN_ADDRESS)
if bundled_info:
    print("Bundled Token Info:")
    print(bundled_info)

Example API Response:

Last updated