TriportRPC

bor_getCurrentValidators

Last updated:

bor_getCurrentValidators returns the validator set that is currently active in Polygon's Bor consensus layer. On mainnet this is an array of roughly 100–150 validator objects, each describing one staking validator: its sequential ID, its signer address, its voting power (stake weight), and its accum (the proposer-rotation accumulator used to decide who proposes the next block).

This is a Bor-consensus method, not a standard EVM call — it exposes Polygon's proof-of-stake validator state that generic Geth-style endpoints do not provide. Use it for validator-set monitoring, tracking stake distribution, anticipating proposer rotation, or building governance/compliance snapshots.

The validator set rotates once per epoch — an epoch is ~1024 blocks (64 sprints × 16 blocks), about ~36 minutes on Polygon. Between epoch boundaries the set is effectively static, so polling on every block is wasteful. Recommend a client-side cache with a TTL of ~30 minutes. The response payload is light (~10–15 KB for ~120 validators), so the cost is the request count, not the body size.

The bor namespace requires the Pro tier. Calling it on a lower tier returns -32002 tier_insufficient.

Parameters

This method takes no parameters.

Returns

bor_getCurrentValidators return value
FieldType
resultobject

Examples

curl https://triport.io/sol \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"id":1,"method":"bor_getCurrentValidators","params":[],"jsonrpc":"2.0"}'
const res = await fetch("https://triport.io/sol", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "id": 1,
  "method": "bor_getCurrentValidators",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/sol",
    headers={"Authorization": "Bearer <api-key>"},
    json={"id":1,"method":"bor_getCurrentValidators","params":[],"jsonrpc":"2.0"},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. Credit cost: 1 per call.

FAQ

What does bor_getCurrentValidators do?
Returns the current Polygon Bor consensus validator set — the active validators producing blocks this epoch, with their stake weight and proposer-rotation accumulator.
How many credits does bor_getCurrentValidators cost?
bor_getCurrentValidators costs 1 credit(s) per call on Triport by default.
Is bor_getCurrentValidators available over WebSocket?
bor_getCurrentValidators is an HTTP JSON-RPC method.