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
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"bor_getCurrentValidators","params":[]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "bor_getCurrentValidators",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"bor_getCurrentValidators","params":[],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- 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.