get_producers
The get_producers method is designed to retrieve a list of producers from the EOS blockchain. Producers are essential entities in the EOS network responsible for producing blocks, and this method provides valuable insights into their details and statuses, including active, pending, and proposed producers.
Example use cases:
Monitoring Network Health
Developers and network monitors can use the get_producers method to observe the active, pending, and proposed producers, assessing the overall health and consensus of the network.
Network Statistics
This method aids in gathering statistical data about the network, including the number and statuses of producers, facilitating enhanced network analysis and management.
Voting and Governanceget_producers can be instrumental for users involved in EOS governance, helping them to make informed decisions by providing a current list of producers along with their statuses.
Parameters
The get_producers method requires the following parameters in the request body:
parameter | type | description |
|---|---|---|
limit | string | The total number of producers to retrieve. |
lower_bound | string | Used for pagination. For example, limit=10 and lower_bound=10 would represent page 2. |
json | boolean | Indicates whether the result should be returned in JSON format. |
Return Object
The get_producers method typically returns an object containing lists of active, pending, and proposed producers:
field | type | description |
|---|---|---|
active | array of objects | A list of currently active producers. |
pending | array of objects | A list of producers that are pending. |
proposed | array of objects | A list of producers that are proposed. |
JSON-RPC Request Example
Response Example