femtos

HyperCore · Balances

Token balance

One token of one address on HyperCore: 0 when not held, now or at a past block.

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

Parameters

ParamInExample or values
addresspath<address>
tokenpathUSDC, HYPE, UBTC, PURR
layerqueryhypercore
blockquery(optional)
atquery(optional)

Example

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

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

Response fields

FieldTypeMeaning
balanceobjectOne token held by the address on one layer: {layer, kind, asset, symbol, name, decimals, raw, amount, priceUsd, priceSource, usd, spam, …}
balance.onchainobjectverify=true: the same balance read again on the node at the same block: {raw, match, error}
layers.<layer>objectProvenance of the layer read: source, height, asOf: {source, height, asOf, network, chainId, testnet, syncing, dataUntil, requested, usd, usdComplete, count, …}
tokenstringToken asked

Related: Balances

  • Balances GET /v1/balances/{address}
    Every token an address holds on HyperCore, with USD value and the block it is read at.
  • 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