getBalance method provides a breakdown of available, locked, and deposit-related funds for any address in your wallet. The getStatus method gives you the wallet’s sync state, peer count, and internal counters — use it to verify that walletd is up to date before relying on balance data. All calls go to POST http://127.0.0.1:8070/json_rpc.
All balance values are in atomic units. Divide by
10,000,000 to convert to XFG. For example, 10000000 atomic units = 1.0000000 XFG.getBalance
Returns the balance breakdown for a specific address, or the aggregate balance across all addresses in the wallet ifaddress is omitted.
Request
A specific Fuego address to query. Omit this field to get the combined balance across all addresses in the wallet.
Response
Funds that are confirmed and immediately spendable. In atomic units.Example:
50000000000 = 5,000.0000000 XFGFunds that are confirmed on chain but temporarily unspendable — typically outputs from recent transactions that have not yet reached the required 10-block confirmation depth. In atomic units.
The total principal amount of XFG currently locked in active time deposits that have not yet matured. These funds cannot be accessed until the deposit term completes. In atomic units.Example:
80000000000 = 8,000.0000000 XFG locked in one or more deposits.The total value (principal + interest) of matured deposits that can now be withdrawn via
withdrawDeposit. In atomic units.Example: 8000000000 = 800.0000000 XFG ready to withdraw.Understanding locked vs. unlocked deposits
lockedDepositBalance holds XFG that is currently locked inside active deposits — these are funds committed to a time-lock term (currently 16,440 blocks, approximately 3 months). You cannot spend them until the term ends.
unlockedDepositBalance represents deposits that have completed their term. The wallet has scanned the chain and found these deposits are past their unlockHeight. You can retrieve these funds — principal plus accrued interest — by calling withdrawDeposit with the corresponding depositId.
getStatus
Returns the wallet’s current synchronization state and internal statistics. Always checkblockCount vs knownBlockCount to verify the wallet is synced before reading balance data.
Request
Response
The height the wallet has synced up to. When
blockCount equals knownBlockCount, the wallet is fully synchronized and balance data is current.The highest block height the wallet is aware of from its connected daemon. If
knownBlockCount is greater than blockCount, the wallet is still syncing.Hash of the most recently processed block. Use this to confirm chain continuity across calls.
Number of peers the underlying daemon connection sees. A value of
0 means the node may be offline or not connected.Total number of deposit records (both active and matured) tracked by this wallet.
Total number of transactions (sent and received) tracked by this wallet.
Number of addresses currently managed by the wallet service.