Перейти к основному содержимому

Статус узла

status — тип запроса.

Этот эндпоинт позволяет получить текущий статус узла NEAR, включая сведения о версии, синхронизации и последнем блоке.

Сеть
API-ключ FastNearНет сохранённого ключа
Получить API-ключ
Эндпоинтhttps://rpc.mainnet.fastnear.com
Авторизацияне обнаружена
Живой ответ

Ответы от выбранного эндпоинта появляются здесь после запуска запроса.

Здесь появится вывод живого ответа после запуска запроса.

Справка по запросу

application/json

Эта операция принимает JSON-RPC тело через POST на /.

Обязательные входные данные запроса: да

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "статус",
  "params": []
}

Схема запроса

object
требует jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Пример: fastnear

method *string
статус
params *array

Empty array as this method takes no parameters

Пример:

Справка по ответу

200 application/json

Успешный ответ

Схема ответа

objectJsonRpcResponse
требует jsonrpc, id
jsonrpc *string
2.0
id *один из
stringnumber
resultobject
требует version, chain_id, protocol_version, latest_protocol_version, валидаторы, sync_info, node_public_key, uptime_sec, genesis_hash
chain_id *string

Unique chain id.

detailed_debug_statusobjectможет быть пустым
требует network_info, sync_status, catchup_status, current_head_status, current_header_head_status, block_production_delay_millis
block_production_delay_millis *integer
catchup_status *array
itemsobject
current_head_status *object

Height and hash of a блока

current_header_head_status *object

Height and hash of a блока

network_info *object
sync_status *string
genesis_hash *string

Base58-encoded hash

latest_protocol_version *integer

Последний протокола version that this клиент supports.

node_keystringможет быть пустым

ed25519: or secp256k1: prefixed public ключ

node_public_key *string

ed25519: or secp256k1: prefixed public ключ

protocol_version *integer

Currently active протокола version.

rpc_addrstringможет быть пустым

Address for RPC server. None if node doesn't have RPC endpoint enabled.

sync_info *object
требует latest_block_hash, latest_block_height, latest_state_root, latest_block_time, syncing

Sync статус of the node.

earliest_block_hashstringможет быть пустым

Base58-encoded hash

earliest_block_heightintegerможет быть пустым
earliest_block_timestringможет быть пустым
epoch_idstringможет быть пустым

Base58-encoded epoch identifier hash

epoch_start_heightintegerможет быть пустым
latest_block_hash *string

Base58-encoded hash

latest_block_height *integer
latest_block_time *string
latest_state_root *string

Base58-encoded hash

syncing *boolean
uptime_sec *integer

Uptime of the node.

validator_account_idstringможет быть пустым

NEAR аккаунта ID

validator_public_keystringможет быть пустым

ed25519: or secp256k1: prefixed public ключ

валидаторы *array

Валидаторы текущей эпохи.

itemsobject
version *object
требует version, build, commit

Data structure for semver version and github tag or commit.

build *string
commit *string
rustc_versionstring

Значение по умолчанию:

version *string
errorobject
кодinteger
messagestring
dataobject