suix_getCommitteeInfo - Sui

Example code for the suix_getCommitteeInfo JSON-RPC method. Complete guide on how to use suix_getCommitteeInfo JSON-RPC in GetBlock Web3 documentation.

This method returns the committee information for a specified epoch on the SUI network. The committee consists of validators who participate in consensus for that epoch, along with their voting power (stake weight). This is useful for understanding network decentralization and validator distribution.

Parameters

Parameter
Type
Required
Description

epoch

BigInt_for_uint64

No

Epoch number (defaults to current epoch)

Request Example

cURL
curl -X POST https://go.getblock.io/<ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "id": "getblock.io",
  "method": "suix_getCommitteeInfo",
  "params": ["5000"]
}'

Response Example

response.json
{
  "jsonrpc": "2.0",
  "result": {
    "epoch": "5000",
    "validators": [
      ["jc/20VUECmVvSBmxMRG1LFdGqGunLzlfuSOYGNLSNKY=", "2500000000000000"],
      ["DgDsdbrNH0oq6JHFXVBXHZFQ1XtSNc6bx8v2T8PvhAM=", "1800000000000000"]
    ]
  },
  "id": "getblock.io"
}

Response Parameters

Parameter
Type
Description

epoch

string

Epoch number

validators

array

Array of [publicKey, stakeWeight] tuples

Use Cases

  • Analyze validator stake distribution

  • Monitor network decentralization

  • Track validator participation history

  • Build governance dashboards

Error Handling

Error Code
Description

-32602

Invalid params - invalid epoch

-32603

Internal error - node issues

SDK Integration

Last updated

Was this helpful?