Pular para o conteúdo 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 em cache ~15s; tokens ~45s. tokens limitado a 50 por solicitação. Se address fornecido, deve ser uma carteira própria.
{
  "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"}
  ]
}

Autorizações

x-api-key
string
header
obrigatório

Parâmetros de consulta

chain
string
obrigatório

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)

Resposta

Balances response

balances
object[]
obrigatório