Getting Info Babylon
getDelegations()
: Gets all user's delegations using the current public key.getGlobalParamsVersions()
: Gets all versions of global params.
js
const { Babylon, signetNetwork } = require("@everstake/wallet-sdk/babylon");
// Token ID.
const token = process.env.TOKEN; // 3155f389-d943-4966-8e18-f159c2a6ef66
// create instance of Babylon class
const babylon = new Babylon(signetNetwork, keyPair.publicKey, token);
console.log(await babylon.getDelegations()); // list of delegations