Blockchain

GetSlotAt

Returns information about the proposer slot at the given block height and offset. The offset is optional, it will default to getting the offset for the existing block at the given height. We only have this information available for the last 2 batches at most.

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

Parameters

PropType / Default
blockNumber
number
offsetOpt
number

Returns

PropType / Default
slotNumber
number
validator
string
publicKey
string

On this page