API Reference

The GetBlock Address Audit API provides access to all address audit services, which you can integrate into your dApp, including wallet audit, wallet riska nd rug pull checker

Base URL

bashhttps://services.getblock.io/v1

Authentication

All requests require an API key in the header:

bashAuthorization: Bearer <API_KEY>

How to Get Address Audit API Key

  1. Go to your account dashboard
  2. Click on the product icon on the Navbar
  1. Scroll down and Select Address Audit
  2. After that, select the API key tab
  3. On the API Key tab, click on the plus icon, and your API key will be generated for you automatically

Ensure you store your API Key securely

QuickStart

In this example, you will be auditing a wallet address:

  • Axios (JavaScript / Node.js)
  • Python (Requests library)

Before you begin, you must have already installed npm or yarn on your local machine (for the Axios example) or Python and pip (for the Python example).

  1. Setup project

    Create and initialize a new project:

    bashmkdir wallet-audit-quickstart
    cd wallet-audit-quickstart
    npm init --yes
  2. Install Axios

    bashnpm install axios
  3. Create file

    Create a new file named index.js. This is where you will make your first call.

  4. Set ES module type

    Set the ES module "type": "module" in your package.json.

  5. Add code

    Add the following code to index.js:

    index.js

    javascriptimport axios from "axios";
    
    const data = 
      {  "network": "ETH", "address": "0xa45f...a675"};
    
    const config = {
      method: "post",
      url: "https://services.getblock.io/v1/wallet-audit/check",
      headers: {
        Authorization: "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
      },
      data: data,
    };
    
    axios(config)
      .then((response) => console.log(JSON.stringify(response.data, null, 2)))
      .catch((error) => console.log(error));
    

    Replace <YOUR_API_KEY> with your actual API Key from the GetBlock dashboard.

  6. Run the script

    bashnode index.js

    Expected output (example):

    json{
        "data": {
            "message": "Success",
            "walletAddress": "0xa45f...a675",
            "status": "Fraud",
            "probabilityFraud": "0.9329851866",
            "token": null,
            "chain": "ETH",
            "lastChecked": "2026-03-19T07:02:56.000Z",
            "forensic_details": {
                "cybercrime": "0",
                "money_laundering": "0",
                "number_of_malicious_contracts_created": "0",
                "gas_abuse": "0",
                "financial_crime": "0",
                "darkweb_transactions": "0",
                "reinit": "0",
                "phishing_activities": "0",
                "fake_kyc": "0",
                "blacklist_doubt": "0",
                "fake_standard_interface": "0",
                "data_source": "",
                "stealing_attack": "0",
                "blackmail_activities": "0",
                "sanctioned": "0",
                "malicious_mining_activities": "0",
                "mixer": "0",
                "fake_token": "0",
                "honeypot_related_address": "0"
            },
            "checked_times": 3,
            "createdAt": "2026-03-19T06:52:28.000Z",
            "updatedAt": "2026-05-15T17:01:48.000Z",
            "sanctionData": [
                {
                    "id": 205813,
                    "trustscore_id": 18360032,
                    "category": null,
                    "name": null,
                    "description": null,
                    "url": null,
                    "isSanctioned": false,
                    "createdAt": "2026-05-15T17:01:48.000Z",
                    "updatedAt": "2026-05-15T17:01:48.000Z"
                }
            ]
        }
    }
  1. Setup the project directory

    bashmkdir wallet-audit-quickstart
    cd wallet-audit-quickstart
  2. Create and activate a virtual environment

    bashpython -m venv venv
    source venv/bin/activate
    
    # On Windows, use:
    venv\Scripts\activate
  3. Install requests

    bashpip install requests
  4. Create script

    Create a file called main.py with the following content:

    main.py

    pythonimport requests
    import json
    
    url = "https://services.getblock.io/v1/wallet-audit/check"
    
    payload = json.dumps({  "network": "ETH", "address": "0xa45f...a675"})
    
    headers = {
          "Authorization": "Bearer YOUR_API_KEY",
      "Content-Type": "application/json",
    }
    
    response = requests.post(url, headers=headers, data=payload)
    print(response.text)

    Replace <YOUR_API_KEY> with your actual GetBlock API Key.

  5. Run the script

    bashpython main.py

Next Step