confirmed: The exact amount of the asset in the wallet, where only confirmed amounts can be used for transfer.

balance and confirmed values may not be equal. This happens when there is an output transaction from the wallet, and the change has not been confirmed yet, so the confirmed value will be less than the balance. Once the deal is confirmed, the two will become equal.

Note

Make sure your client has been fully synchronized to the latest block height before using this API, otherwise the balance returned may not be up-to-date.

balance: the balance of the asset in the wallet. Since the NEP-5 assets adopt the balance system rather than the UTXO system, there is no confirmed in the returned result and the balance is the actual available balance.

Note

Only when your client synchronizes to the block that the contract was deployed, execution of this API will return the correct value, otherwise execution of the API will result in an error.

When the input parameter is a script hash of a non-NEP-5 smart contract, execution of the API will result in an error.

Make sure your client has been fully synchronized to the latest block height before using this API, otherwise the balance returned may not be up-to-date.