getINKPointsCount UI.ink
¶
getINKPointsCount API returns a promise with INK points count as a resultant value.
Syntax¶
getINKPointsCount() : Promise<String|Number>
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import INKAPI from './inkapi.js'
INKAPI.ready(async () => {
const UI = INKAPI.ui;
const INKPoints = await UI.ink.getINKPointsCount();
console.log(INKPoints);
/*
Console Output ::
=> 128
=> ∞ // incase of unlimited plan
*/
});
|