Saltar al contenido principal
GET
/
wallets
/
balances
Get balances for caller wallet
curl --request GET \
  --url https://api.afkcrypto.com/v1/wallets/balances \
  --header 'x-api-key: <api-key>'
{
  "balances": [
    {"chainType":"ethereum","chainId":8453,"address":"0xYourAddress","asset":"native","token":null,"raw":"1000000000000000000","decimals":18,"symbol":"ETH","updatedAt":"2025-09-08T00:00:00.000Z"},
    {"chainType":"ethereum","chainId":8453,"address":"0xYourAddress","asset":"erc20","token":"0xUSDC","raw":"1000000","decimals":6,"symbol":"USDC","updatedAt":"2025-09-08T00:00:00.000Z"}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.afkcrypto.com/llms.txt

Use this file to discover all available pages before exploring further.

Saldos nativos en caché ~15s; tokens ~45s. tokens limitado a 50 por solicitud. Si se proporciona address, debe ser una billetera propia.
{
  "balances": [
    {"chainType":"ethereum","chainId":8453,"address":"0xYourAddress","asset":"native","token":null,"raw":"1000000000000000000","decimals":18,"symbol":"ETH","updatedAt":"2025-09-08T00:00:00.000Z"},
    {"chainType":"ethereum","chainId":8453,"address":"0xYourAddress","asset":"erc20","token":"0xUSDC","raw":"1000000","decimals":6,"symbol":"USDC","updatedAt":"2025-09-08T00:00:00.000Z"}
  ]
}

Autorizaciones

x-api-key
string
header
requerido

Parámetros de consulta

chain
string
requerido

Chain slug (e.g., base, base-sepolia, solana, solana-devnet)

address
string

Optional wallet address; defaults to caller's default wallet for the chain

tokens
string

CSV of token addresses (EVM) or mints (Solana) to include (max 50)

includeZero
boolean

Include zero balances (default false)

fresh
boolean

Bypass short-lived cache (default false)

Respuesta

Balances response

balances
object[]
requerido