BBSCoin Docs
  • Welcome!
  • Wallets
    • Wallet GUI
      • Synchronization
      • Send BBSCoin
      • Transactions
      • Contacts
    • SimpleWallet
    • Wallet Container
    • bbs.money restore
    • Tronlink to Klever Wallet
  • Mining
    • XMR-Stak
      • Basic configuration
  • Plug-ins / Modules
    • PHP API Module
    • MyBB
    • SMF
    • Discuz
    • PHPWind
    • GNUBoard
  • Development / Integration
    • Daemon/Node API
      • Binary handlers
        • getblocks.bin
        • queryblocks.bin
        • queryblockslite.bin
        • get_o_indexes.bin
        • getrandom_outs.bin
        • get_pool_changes.bin
        • get_pool_changes_lite.bin
        • get_blocks_details_by_hashes.bin
        • get_blocks_hashes_by_timestamps.bin
        • get_transaction_details_by_hashes.bin
        • get_transaction_hashes_by_payment_id.bin
      • JSON handlers
        • getinfo
        • getheight
        • gettransactions
        • sendrawtransaction
        • stop_daemon
      • JSON RPC request
        • f_blocks_list_json
        • f_block_json
        • f_transaction_json
        • f_on_transactions_pool_json
        • getblockcount
        • on_getblockhash
        • getblocktemplate
        • getcurrencyid
        • submitblock
        • getlastblockheader
        • getblockheaderbyhash
        • getblockheaderbyheight
        • get_txs_by_height
        • get_txs_pool
        • get_random_outs
        • get_maximum_tx_allowed_size
    • Wallet API
      • Simple Wallet
        • getbalance
        • transfer
        • store
        • get_payments
        • get_transfers
        • get_height
        • reset
      • Wallet Container
        • save
        • export
        • reset
        • createAddress
        • createAddressList
        • deleteAddress
        • getSpendKeys
        • getBalance
        • getBlockHashes
        • getTransactionHashes
        • getTransactions
        • getUnconfirmedTransactionHashes
        • getTransaction
        • sendTransaction
        • createDelayedTransaction
        • getDelayedTransactionHashes
        • deleteDelayedTransaction
        • sendDelayedTransaction
        • getViewKey
        • getStatus
        • getAddresses
        • sendFusionTransaction
        • estimateFusion
  • Whitepapers
    • BBSCoin (BBS)
      • English
      • Español
      • Português Brasileiro
      • 한국어
      • 中文(简体)
      • 日本語
      • Indonesian
      • Tiếng Việt
      • Pусский
      • عربى
    • BBSToken (BBST / WBBS)
      • English
  • Links
    • BBSCoin Official
    • BBSCoin Downloads
    • BBSToken Information
    • BBSToken DApp
Powered by GitBook
On this page
  • Input
  • Output
  • Usage

Was this helpful?

  1. Development / Integration
  2. Wallet API
  3. Wallet Container

getBalance

Input

Argument
Mandatory
Description
Format

address

no

Wallet address to query

string

Output

Argument
Description
Format

availableBalance

Available balance that can be spent

uint64

lockedAmount

Balance still locked in unconfirmed transactions

uint64

Usage

Replace "your_password" and "TA4yACzMYuFYq7V6xVAWYHeS39jQ8w4mKRowpY6NskGuS1rZpjcWuCpdeCypwUCJrK9mGqVW9o1pY2EG3HW7BZkR2YRcc4YNa" in examples with real values from wallet daemon. Password is specified on command-line of wallet daemon, it is not returned by any API method for security reasons. You can get list of valid wallet addresses using getAddresses method.

cURL

curl -X POST http://ip_address:port/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "getBalance", "password": "your_password", "params": {}, "id": "1"}'
curl -X POST http://ip_address:port/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "getBalance", "password": "your_password", "params": {"address" : "TA4yACzMYuFYq7V6xVAWYHeS39jQ8w4mKRowpY6NskGuS1rZpjcWuCpdeCypwUCJrK9mGqVW9o1pY2EG3HW7BZkR2YRcc4YNa"}, "id": "1"}'
PreviousgetSpendKeysNextgetBlockHashes

Last updated 3 years ago

Was this helpful?