import QurasLib from 'quras-js' QurasLib.get.balance('TestNet', address) QurasLib.get.tokenBalance(contractScriptHash) import { api } from 'quras-js' api.qurasDB.getBalance('TestNet', address) api.cmc.getPrice() api.sendAsset(config)
The api
module contains all 3rd party API that is useful together with QurasLib. The main highlight is the qurasDB API which provides the necessary information to construct a ClaimTransaction or ContractTransaction. A normal QURAS node does not provide us with a convenient way of retrieving the balance or claimable transactions through RPC.
However, do note that these APIs rely on hosted nodes by 3rd party and thus use them at your own risk.
This module is structured slightly different from the rest of the modules. While the rest of the modules are flat in terms of hierachy, this module is composed of largely many other submodules. Only the core methods are found at the top level of the module.