getKoiiState
The states are based on Arweave and K1. Know more about K2 here
This endpoint returns the state of Koii. Balances, stakes, Koii tasks and all the other information can be programmatically accessed through this endpoint.
Example Code
const knode = require("@_koi/sdk/node");
const ktools = new knode.Node();
async function testGetKoiiState() {
const koiiState = await ktools.getKoiiState();
console.log(koiiState);
}
testGetKoiiState();
Example Code Output
Returns
Promise <any> - Information about the current Koii State.
Last updated