info_get_validator_changes

Casper RPC

How to use it

// yarn add @tatumio/tatum

import { TatumSDK, Casper, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Casper>({ network: Network.CASPER })

const result = await tatum.rpc.infoGetValidatorChanges()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Request Example

curl --location 'https://api.tatum.io/v3/blockchain/node/casper-mainnet/' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {API_KEY}' \
--data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "info_get_validator_changes",
    "params": []
}'

Overview

info_get_validator_changes is an RPC method on the Casper blockchain that retrieves information about validator changes over time.

Parameters

The info_get_validator_changes method does not require any parameters.

Return Object

The info_get_validator_changes method returns an object with the following fields:

  • api_version: The API version. Example: "1.5.6"
  • validator_changes: An array of objects containing information about the validator changes.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "api_version": "1.5.6",
    "validator_changes": [
      {
        "era_id": 10,
        "public_keys": ["01abc..."],
        ...
      }
    ]
  }
}

Notes

  • This method returns the validator changes over time.
  • This method does not require any parameters.

For more detailed information, refer to the official Casper documentation.