{
  "openapi": "3.1.0",
  "info": {
    "title": "Get ERC20-Token Account Balance for TokenContractAddress",
    "version": "2.0.0",
    "description": "Retrieves the current ERC-20 token balance for a specified address.",
    "license": {
      "name": "Etherscan API Terms",
      "url": "https://etherscan.io/terms"
    }
  },
  "servers": [
    {
      "url": "https://api.etherscan.io",
      "description": "Etherscan API."
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/v2/api": {
      "get": {
        "operationId": "getTokenbalance",
        "summary": "Get ERC20-Token Account Balance for TokenContractAddress",
        "description": "Retrieves the current ERC-20 token balance for a specified address.",
        "parameters": [
          {
            "name": "chainid",
            "in": "query",
            "required": true,
            "description": "Chain ID to query, eg 1 for Ethereum, 8453 for Base from our supported chains.",
            "schema": {
              "type": "string"
            },
            "example": "1"
          },
          {
            "name": "module",
            "in": "query",
            "required": true,
            "description": "Set to account for this endpoint.",
            "schema": {
              "type": "string",
              "default": "account"
            },
            "example": "account"
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "Set to tokenbalance for this endpoint.",
            "schema": {
              "type": "string",
              "default": "tokenbalance"
            },
            "example": "tokenbalance"
          },
          {
            "name": "contractaddress",
            "in": "query",
            "required": true,
            "description": "Contract address of the ERC-20 token.",
            "schema": {
              "type": "string"
            },
            "example": "0x57d90b64a1a57749b0f932f1a3395792e12e7055"
          },
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Address to check for token balance.",
            "schema": {
              "type": "string"
            },
            "example": "0xe04f27eb70e025b78871a2ad7eabe85e61212761"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Use latest for the last block number of the chain.",
            "schema": {
              "type": "string"
            },
            "example": "latest"
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get ERC20-Token Account Balance for TokenContractAddress",
            "description": "Retrieves the current ERC-20 token balance for a specified address."
          }
        },
        "x-etherscan-source-page": {
          "page": "api-reference/endpoint/tokenbalance",
          "title": "Get ERC20-Token Account Balance for TokenContractAddress",
          "module": "account",
          "action": "tokenbalance"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey",
        "description": "Your Etherscan API key."
      }
    }
  }
}