Blockchain

GetActiveValidators

Returns a collection of the currently active validator's addresses and balances.

const res = await fetch("http://127.0.0.1:8648", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
  jsonrpc: "2.0",
  method: "getActiveValidators",
  params: [],
  id: 1
})
});
const data = await res.json();

Parameters

No parameters

Returns

PropType / Default
returnValue
array

On this page