Translations: ERC20 to Ignis/18/en

From ArdorDocs
Jump to: navigation, search

balanceOf

To get the account balance of another account with a given address, invoke the getAccountAssets API and provide the IGNIS address as the "account" parameter and the asset id as the "asset" parameter. For example http://localhost:27876/nxt?requestType=getAccountAssets&account=yourAccountId&asset=6789385243274909976 when using your own local node or https://testardor.jelurida.com/nxt?requestType=getAccountAssets&account=ARDOR-GHKP-XWB5-XMZB-CTUE3&asset=14378369355033436642 when using the Jelurida testnet public node. The "unconfirmedQuantityQNT" attribute in the response represents the current account balance. The "quantityQNT" attribute represents the quantity available for use at the moment after taking into account balances locked by open asset orders.