Get light props
Get light client properties.

Example

1
const params = {
2
witnesses: await client.getCachedWitnesses()
3
};
4
client.api.getParentsAndLastBallAndWitnessListUnit(params, function(err, result) {
5
if (err) return console.error(err);
6
console.log(result);
7
});
Copied!

Returns

1
{
2
timestamp: 1618626721,
3
parent_units: [
4
"dtH1LbuYJuScVEa8m1c7Hc4Ua4DrPrFJK1zmB8sKD8A="
5
],
6
last_stable_mc_ball: "/A35gMoMgKv5awkWH4iMr61Pk+/N47ffOFIKAlkRomU=",
7
last_stable_mc_ball_unit: "zgClV7gSONFqFk9sRyCNpIXGIlmRj9tLSgqjjAHCHxM=",
8
last_stable_mc_ball_mci: 7268841,
9
witness_list_unit: "p1sRwcMeO9js90ztqin+cK21AL7L7SLYKXtehrGkwwQ="
10
}
Copied!
Last modified 6mo ago
Copy link