@signumjs/util
Version:
Useful utilities and tools for building Signum Network applications
16 lines (15 loc) • 645 B
TypeScript
/**
* Converts planck into a `priceNQT` used by Node method `placeOrder`.
*
* Usually, you don't need this. {@link core.AssetApi.placeAskOrder} and {@link core.AssetApi.placeBidOrder} convert planck into
* correct value already. This helper is just for those who interact with the Node Http API directly
*
* @see {@link convertAssetPriceToPlanck}
*
* @param planck the amount in planck per token
* @param decimals the number of decimals for targeted asset
* @return the Price in _planck per one token quantity_
*
* @category conversion
*/
export declare function convertPlanckToAssetPrice(planck: string, decimals: number): string;