Get light props
Get light client properties.

Example

const params = {
witnesses: await client.getCachedWitnesses()
};
client.api.getParentsAndLastBallAndWitnessListUnit(params, function(err, result) {
if (err) return console.error(err);
console.log(result);
});

Returns

{
timestamp: 1618626721,
parent_units: [
"dtH1LbuYJuScVEa8m1c7Hc4Ua4DrPrFJK1zmB8sKD8A="
],
last_stable_mc_ball: "/A35gMoMgKv5awkWH4iMr61Pk+/N47ffOFIKAlkRomU=",
last_stable_mc_ball_unit: "zgClV7gSONFqFk9sRyCNpIXGIlmRj9tLSgqjjAHCHxM=",
last_stable_mc_ball_mci: 7268841,
witness_list_unit: "p1sRwcMeO9js90ztqin+cK21AL7L7SLYKXtehrGkwwQ="
}
Copy link
On this page
Example
Returns