femtos

HyperCore · Balances

Balances

Every token an address holds on HyperCore, with USD value and the block it is read at.

GET https://api.femtos.xyz/v1/balances/{address}

Parameters

ParamInExample or values
addresspath<address>
layerqueryhypercore
minUsdquery(optional)
sortquery(empty), usd, amount
tokensquery(optional)
includeSpamquery(empty), true
blockquery(optional)
atquery(optional)

Example

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/balances/<address>?layer=hypercore"

Key: Authorization: Bearer $FEMTOS_KEY. Get a free key, or with no browser through agent onboarding.

Response fields

FieldTypeMeaning
addressstringThe address: 0x address, or a named wallet's handle
layerhypercore | hyperevm | elysium | allLayer(s) read
balances[]objectHoldings, largest USD first (sort=amount: largest amount); spam left out unless includeSpam: {layer, kind, asset, symbol, name, decimals, raw, amount, priceUsd, priceSource, usd, spam, …}
countintRows listed
totalintRows matching before `limit`
totalUsddecimal | nullUSD of every holding (spam never counts; tokens= narrows it, minUsd and limit do not) + HyperCore perp account values; Elysium testnet not valued; null on a past read
totalUsdCompletebooleanEvery holding had a price and every layer asked answered
perpobject | nullHyperCore perp accounts (layer hypercore / all): kept apart from the token rows; null with tokens= or a past read: {dex, collateral, accountValue, withdrawable, totalMarginUsed, totalNtlPos, positions, usd, dexes, totalUsd, abstraction, inSpot}
layers.<layer>objectPer layer asked: source, height, asOf (provenance), usd, count, verify: {source, height, asOf, network, chainId, testnet, syncing, dataUntil, requested, usd, usdComplete, count, …}
includeSpambooleanSpam tokens listed (the includeSpam asked)
spamHiddenintSpam holdings left out
entityobjectNamed wallet (labels), when known

Related: Balances

  • Token balance GET /v1/balances/{address}/{token}
    One token of one address on HyperCore: 0 when not held, now or at a past block.
  • Batch balances POST /v1/balances/batch
    Up to 100 addresses on HyperCore in one call, the same answer for each.
  • Balances, all layers GET /v1/balances/{address}
    One address on HyperCore, HyperEVM and Elysium in one list, with totals per layer.

More