getKoiiState

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

This will be a large file output.

You can alternatively also visit https://mainnet.koii.live/state to check the Koii State.

Returns

Promise <any> - Information about the current Koii State.

Last updated