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 | 
|---|
| principalstring —  REQUIREDStacks address or a Contract identifierExample: SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0 | 
| Query Parameters | 
|---|
| unanchoredbooleanInclude transaction data from unanchored (i.e. unconfirmed) microblocksExample: true | 
| until_blockstringreturned data representing the state up until that point in time, rather than the current block.Example: 60000 | 
| Responses | 
|---|
| | Schema  —  OPTIONAL | 
|---|
 | stxobject| balancestring |  | total_sentstring |  | total_receivedstring |  | total_fees_sentstring |  | total_miner_rewards_receivedstring |  | lock_tx_idstringThe transaction where the lock event occurred. Empty if no tokens are locked. |  | lockedstringThe amount of locked STX, as string quoted micro-STX. Zero if no tokens are locked. |  | lock_heightintegerThe STX chain block height of when the lock event occurred. Zero if no tokens are locked. |  | burnchain_lock_heightintegerThe burnchain block height of when the lock event occurred. Zero if no tokens are locked. |  | burnchain_unlock_heightintegerThe burnchain block height of when the tokens unlock. Zero if no tokens are locked. | 
 |  | fungible_tokensobject |  | non_fungible_tokensobject |  | token_offering_lockedobject —  OPTIONAL| total_lockedstringMicro-STX amount still locked at current block height. |  | total_unlockedstringMicro-STX amount unlocked at current block height. |  | unlock_scheduleobject[]| amountstringMicro-STX amount locked at this block height. |  | block_heightnumber | 
 | 
 | 
 |