Skip to main content
GET
/
?module=account&action=tokenbalance
Get ERC-20 Token Balance for a Single Address
curl --request GET \
  --url 'https://eth.blockscout.com/api/?module=account&action=tokenbalance'
{
  "status": "1",
  "message": "OK",
  "result": "135499"
}

Query Parameters

module
enum<string>
required

Module name (must be 'account')

Available options:
account
action
enum<string>
required
Available options:
tokenbalance
contractaddress
string
required

Token contract address 40-character hexadecimal address hash with 0x prefix

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"

address
string
required

Account address 40-character hexadecimal address hash with 0x prefix

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"

Response

200 - application/json

Token balance retrieved successfully

status
enum<string>

Status code (1 = OK)

Available options:
1
message
string

Response message

Example:

"OK"

result
string

Token balance

Example:

"135499"