How to Analyze Addresses, Check Tokens, and Verify Wallets with BlockGuard API

B
BlockGuard Team
API Development Tokens Wallets Analysis
How to Analyze Addresses, Check Tokens, and Verify Wallets with BlockGuard API

In the fast-paced blockchain landscape, maintaining trust, security, and transparency is crucial. BlockGuard simplifies these challenges by providing robust, developer-friendly API endpoints to enhance your applications. Let’s explore how to utilize the “Check Token”, “Check Wallet”, and “Analyze Address” endpoints effectively.

Analyze Address API Endpoint

The “Analyze Address” endpoint is your starting point for blockchain address analysis. It identifies the type of address (token, wallet, or contract) and provides basic analytics, helping you determine whether to use the check_token or check_wallet endpoints for more detailed security analysis.

This endpoint supports checking various types of blockchain entities, such as:

Externally Owned Accounts (EOAs)

Analyze standard Ethereum accounts like Vitalik Buterin’s address.

GET https://api.blockguard.one/analyze/ethereum/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "chain": "ethereum",
  "is_contract": false,
  "erc_standards": []
}

ERC721 Contracts

Evaluate non-fungible tokens like Bored Ape Yacht Club (BAYC).

GET https://api.blockguard.one/analyze/ethereum/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D
{
  "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "chain": "ethereum",
  "erc_standards": [
    "ERC721"
  ],
  "is_contract": true
}

ERC20 Tokens

Check widely used tokens like USDC for potential risks.

GET https://api.blockguard.one/analyze/ethereum/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
{
  "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "chain": "ethereum",
  "erc_standards": ["ERC20"],
  "is_contract": true
}

Smart Contracts (Non-standard or ERC20)

Analyze contracts such as the Uniswap Router.

GET https://api.blockguard.one/analyze/ethereum/0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
{
  "address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
  "chain": "ethereum",
  "erc_standards": [],
  "is_contract": true
}

Currently available for: Ethereum, Base, OP Mainnet, Arbitrum, Polygon.

Use Cases:

  • Detailed risk profiling for compliance and regulatory purposes.
  • Enhanced due diligence and address analytics in financial applications.

📘 Documentation

Check Token API Endpoint

The “Check Token” endpoint enables your application to quickly verify if a specific token on a blockchain is legitimate or potentially malicious.

GET https://api.blockguard.one/check_token/0x5fcde528fef0151fd5a66c2dfc26a6fab5c53816?chain=ethereum
{
  "address": "0x5fcde528fef0151fd5a66c2dfc26a6fab5c53816",
  "is_spam": true,
  "token_name": "claim rewards on pepev2.com",
  "token_symbol": "???",
  "reason": "spam",
  "score": 0.8,
  "error": null,
  "notes": [
    "Found in transaction with spam token named 'claim rewards on pepev2.com' | Original source: Community"
  ]
}

Response: A clear JSON response detailing the legitimacy, flagged status, and any identified risks.

Use Cases:

  • Validate token authenticity before adding it to a wallet.
  • Enhance security by screening tokens during transactions.

Currently available for: Ethereum, Base, OP Mainnet, Arbitrum, Polygon, BSC

📘 Documentation

Check Wallet API Endpoint

The “Check Wallet” endpoint allows your application to efficiently assess the safety and reliability of a wallet address.

GET https://api.blockguard.one/check_wallet/0x220866B1A2219f40e72f5c628B65D54268cA3A9D
{
  "address": "0x220866B1A2219f40e72f5c628B65D54268cA3A9D",
  "total_transactions": 40,
  "malicious_interactions": 0,
  "spam_interactions": 2,
  "health_score": 77.2,
  "transactions": [
    {
      "hash": "0xc4d6503e3e55524a2ca1db333fd79bedfa1371fa3784e0651adcf0baf2ef645c",
      "timestamp": "1740299339",
      "from": "0xcea1a76f2d8e0881b9b185f229e49e3928d37a04",
      "to": "0x220866b1a2219f40e72f5c628b65d54268ca3a9d",
      "token": null,
      "value": "0",
      "is_malicious": false,
      "is_spam": false,
      "risk_score": 0,
      "reason": null
    },
    ...

Response: JSON formatted insights providing wallet security ratings, historical activity concerns, and flagged warnings.

Use Cases:

  • Protect users from phishing or scam wallets.
  • Conduct automated wallet screening for decentralized applications (dApps).

Currently available for: Ethereum. More chains coming soon.

📘 Documentation

Why Integrate BlockGuard?

By integrating BlockGuard API endpoints, your application can proactively mitigate risks, ensure compliance, and enhance user trust. These endpoints are straightforward to implement, return reliable data in real-time, and provide essential insights needed to navigate complex blockchain environments securely.

Start integrating BlockGuard today to build safer, smarter blockchain applications!

Back to Blog