Get account balances
Retrieves total account balance information for a given Address or Contract Identifier. This includes the balances of  STX Tokens, Fungible Tokens and Non-Fungible Tokens for the account.
| Path Parameters | 
|---|
principal string —  REQUIREDStacks address or a Contract identifier  | 
| Query Parameters | 
|---|
unanchored booleanInclude transaction data from unanchored (i.e. unconfirmed) microblocks  | 
until_block stringreturned data representing the state up until that point in time, rather than the current block.  | 
| Responses | 
|---|
| Schema  —  OPTIONAL | 
|---|
 stx objectbalance string |  total_sent string |  total_received string |  total_fees_sent string |  total_miner_rewards_received string |  lock_tx_id stringThe transaction where the lock event occurred. Empty if no tokens are locked.  |  locked stringThe amount of locked STX, as string quoted micro-STX. Zero if no tokens are locked.  |  lock_height integerThe STX chain block height of when the lock event occurred. Zero if no tokens are locked.  |  burnchain_lock_height integerThe burnchain block height of when the lock event occurred. Zero if no tokens are locked.  |  burnchain_unlock_height integerThe burnchain block height of when the tokens unlock. Zero if no tokens are locked.  |  
  |  fungible_tokens object |  non_fungible_tokens object |  token_offering_locked object —  OPTIONALtotal_locked stringMicro-STX amount still locked at current block height.  |  total_unlocked stringMicro-STX amount unlocked at current block height.  |  unlock_schedule object[]amount stringMicro-STX amount locked at this block height.  |  block_height number |  
  |  
  |  
  |