Blockchain

GetValidatorByAddress

Tries to fetch a validator information given its address.

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

Parameters

PropType / Default
address
string

Returns

PropType / Default
address
string
signingKey
string
votingKey
string
rewardAddress
string
signalData
string
balance
number
numStakers
number
inactivityFlag
number
retired
boolean
jailedFrom
number

On this page