FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST validators
查询网络上的活动验证器返回细节和区块链上的验证状态。
注意:对于[“ block hash”]和[块号],您需要查询最近的块,因为它们在五个时期后收集到垃圾。
hash or number
- 字符串或int
选修的
哈希或最新块的数量
curl --location --request POST 'https://near.getblock.io/mainnet' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "validators", "params": [null], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "current_fishermen": [], "current_proposals": [ { "account_id": "01node.poolv1.near", "public_key": "ed25519:5xz7EbcnPqabwoFezdJBxieK8S7XLsdHHuLwM4vLLhFt", "stake": "2269885917418553047472319475913", "validator_stake_struct_version": "V1" }, { "account_id": "08investinwomen_runbybisontrails.poolv1.near", "public_key": "ed25519:C6yqxQ3suwjmm8ufG5e3BsHiwxUs9h839FCneF41V7TM", "stake": "5861363862832431885948505306183", "validator_stake_struct_version": "V1" }, { "account_id": "4ire.poolv1.near", "public_key": "ed25519:GdirfFSuT3t1ChEMqwcV6zko5Ya9yVAqm6Pnhk9qcXvS", "stake": "139835367068368402112668541417", "validator_stake_struct_version": "V1" } ], "current_validators": [ { "account_id": "staked.poolv1.near", "is_slashed": false, "num_expected_blocks": 1471, "num_expected_chunks": 5884, "num_produced_blocks": 1471, "num_produced_chunks": 5884, "public_key": "ed25519:3JBVXqenru2ErAM1kHQ8qfd29dCkURLd6JKrFgtmcDTZ", "shards": [ 0, 1, 2, 3 ], "stake": "43022911372752167869222722706568" }, { "account_id": "bzam6yjpnfnxsdmjf6pw.poolv1.near", "is_slashed": false, "num_expected_blocks": 829, "num_expected_chunks": 3304, "num_produced_blocks": 829, "num_produced_chunks": 3304, "public_key": "ed25519:2ZJqaaCAisK4u8E2i611zFfvNmrvevovnU3M7SpGHkLY", "shards": [ 0, 1, 2, 3 ], "stake": "23384108164579494784911789880683" } ], "epoch_height": 1186, "epoch_start_height": 61055481, "next_fishermen": [], "next_validators": [ { "account_id": "staked.poolv1.near", "public_key": "ed25519:3JBVXqenru2ErAM1kHQ8qfd29dCkURLd6JKrFgtmcDTZ", "shards": [ 0, 1, 2, 3 ], "stake": "43031952664819829506377623789143" }, { "account_id": "bzam6yjpnfnxsdmjf6pw.poolv1.near", "public_key": "ed25519:2ZJqaaCAisK4u8E2i611zFfvNmrvevovnU3M7SpGHkLY", "shards": [ 0, 1, 2, 3 ], "stake": "23388809235408741833747580128034" } ], "prev_epoch_kickout": [ { "account_id": "lavenderfive.poolv1.near", "reason": { "NotEnoughBlocks": { "expected": 13, "produced": 0 } } } ] } }