Ardor: How to decide if an asset can be send?

Ardor: How to decide if an asset can be send?

My (Javascript) frontend needs to decide whether the user can send an Ardor/Ignis asset in his account. My code checked for:

quantityQNT >= amount_to_send

But I realise that this doesn't work if the user has the asset offered on the asset exchange.

So just checking for unconfirmedQuantityQNT wouldnt be clever either, as it might want to send an asset which ownership never confirms (phasing or fork).

Would it be safe to check this way:

min(quantityQNT,unconfirmedQuantity) >= amount_to_send

Thanks for your opinions

http://bit.ly/2AcMAcK

Comments

Popular posts from this blog

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

Mistakenly sent BTC from my personal wallet back to one of the exchange wallet addresses that I had received BTC from before - help recovering!