Zum Inhalt springen
GET /v1/approvals

A wallet token approvals with spender risk

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/approvalsecurity-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/approvalsecurity-api/v1/approvals" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/approvalsecurity-api/v1/approvals", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/approvalsecurity-api/v1/approvals");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/approvalsecurity-api/v1/approvals",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Each spender a token is approved to can move that token. 'risky' flags malicious or doubtful spenders — revoke those.",
        "chain": "1",
        "source": "GoPlus",
        "tokens": [
            {
                "balance": "958405557",
                "spenders": [
                    {
                        "name": "TransparentUpgradeableProxyV2",
                        "risky": false,
                        "spender": "0x64192819ac13ef72bf6b5ae239ac672b43a9af08",
                        "trusted": false,
                        "doubtful": false,
                        "malicious": false,
                        "is_contract": true,
                        "approved_time": "2022-08-01T09:00:46.000Z",
                        "approved_amount": "4000",
                        "malicious_behavior": []
                    }
                ],
                "token_name": "Smooth Love Potion",
                "token_symbol": "SLP",
                "spender_count": 1,
                "token_address": "0xcc8fa225d80b9c7d42f96e9570156c65d6caaa25",
                "is_open_source": true
            }
        ],
        "address": "0x28c6c06298d514db089934071355e5743bf21d60",
        "token_count": 1,
        "risky_approvals": 0,
        "total_approvals": 1
    },
    "meta": {
        "timestamp": "2026-06-12T01:42:51.344Z",
        "request_id": "0f76b576-9845-4f8c-8ebf-6cccdaa9414f"
    },
    "status": "ok",
    "message": "Approvals retrieved successfully",
    "success": true
}