Конфигурация клиента
client_config — тип запроса.
Этот эндпоинт позволяет получить конфигурацию клиента узла NEAR.
Ответы от выбранного эндпоинта появляются здесь после запуска запроса.
Здесь появится вывод живого ответа после запуска запроса.
Справка по запросу
application/jsonЭта операция принимает JSON-RPC тело через POST на /.
Обязательные входные данные запроса: да
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "client_config",
"params": []
}Схема запроса
jsonrpc *string2.0id *stringmethod *stringclient_configparams *arrayEmpty array as this method takes no parameters
Справка по ответу
200 application/jsonУспешный ответ
Схема ответа
jsonrpc *string2.0id *один изresultobjectClientConfig where some fields can be updated at runtime.
archivebooleanNot clear old data, set true for archive nodes.
block_fetch_horizonintegerHorizon at which instead of fetching блока, fetch full состояние.
block_header_fetch_horizonintegerBehind this horizon header fetch kicks in.
block_production_tracking_delayarrayDuration to check for producing / skipping блока.
itemsintegercatchup_step_periodarrayTime between check to perform catchup.
itemsintegerchain_idstringChain id for статус.
chunk_distribution_networkobjectможет быть пустымКонфигурация функции Chunk Distribution Network. Она позволяет нодам отправлять и получать чанки через центральный поток. Преимущества такого подхода: (1) меньше трафика запросов и ответов в одноранговой сети и (2) меньшая задержка для RPC-нод, индексирующих цепочку.
enabledbooleanurisobjectURIs for the Chunk Distribution Сеть feature.
chunk_request_retry_periodarrayTime between checking to re-запрос chunks.
itemsintegerchunk_validation_threadsintegerNumber of threads for ChunkValidationActor pool.
chunk_wait_multarrayMultiplier for the wait time for all chunks to be received.
itemsintegerchunks_cache_height_horizonintegerHeight horizon for the chunk cache. A chunk is removed from the cache if its height + chunks_cache_height_horizon < largest_seen_height. The default value is DEFAULT_CHUNKS_CACHE_HEIGHT_HORIZON.
client_background_migration_threadsintegerNumber of threads to execute background migration work in клиент.
cloud_archival_writerobjectможет быть пустымКонфигурация облачного компонента записи архивных данных. Если эта конфигурация задана, компонент включается и записывает данные, связанные с чанками, на основе отслеживаемых шардов. Эта конфигурация также управляет дополнительным архивным поведением, например записью данных блоков и интервалом опроса.
archive_block_databooleanDetermines whether блока-related data should be written to cloud storage.
polling_intervalobjectInterval at which the system checks for new блоки or chunks to archive.
disable_tx_routingbooleanЕсли значение true, нода не будет пересылать транзакции следующим producers чанков.
doomslug_step_periodarrayTime between running doomslug timer.
itemsintegerenable_early_prepare_transactionsbooleanЕсли значение true, транзакции для следующего чанка будут подготавливаться заранее, сразу после того,
как будет готово post-state предыдущего чанка. Это помогает быстрее выпускать чанки в сетях с высокой пропускной способностью.
Текущая реализация увеличивает задержку в сетях с низкой нагрузкой; это будет исправлено позже.
По умолчанию параметр отключён.
enable_multiline_loggingbooleanenable_statistics_exportbooleanRe-export storage layer statistics as prometheus metrics.
epoch_lengthintegerEpoch length.
epoch_syncobjectOptions for epoch sync.
epoch_sync_horizon_num_epochsintegerNumber of epochs behind the сеть head beyond which the node will use epoch sync instead of header sync. At the consumption site, this is multiplied by epoch_length to get the horizon in блоки.
timeout_for_epoch_syncobjectTimeout for epoch sync requests. The node will continue retrying indefinitely even if this timeout is exceeded.
expected_shutdownstringGraceful shutdown at expected блока height.
gcobjectConfiguration for garbage collection.
gc_blocks_limitintegerMaximum number of блоки to garbage collect at every garbage collection вызов.
gc_fork_clean_stepintegerMaximum number of height to go through at each garbage collection step when cleaning forks during garbage collection.
gc_num_epochs_to_keepintegerNumber of epochs for which we keep store data.
gc_step_periodobjectHow often gc should be run
header_sync_expected_height_per_secondintegerExpected increase of header head height per second during header sync
header_sync_initial_timeoutarrayHow much time to wait after initial header sync
itemsintegerheader_sync_progress_timeoutarrayHow much time to wait after some progress is made in header sync
itemsintegerheader_sync_stall_ban_timeoutarrayHow much time to wait before banning a peer in header sync if sync is too slow
itemsintegerlog_summary_periodarrayPeriod between logging summary information.
itemsintegerlog_summary_stylestringEnable coloring of the logs
plaincoloredmax_block_production_delayarrayMaximum wait for approvals before producing блока.
itemsintegermax_block_wait_delayarrayMaximum duration before skipping given height.
itemsintegermax_gas_burnt_viewstringможет быть пустымГаз amount
min_block_production_delayarrayMinimum duration before producing блока.
itemsintegermin_num_peersintegerMinimum number of peers to start syncing.
num_block_producer_seatsintegerNumber of блока producer seats
orphan_state_witness_max_sizeintegerМаксимальный размер state witness в OrphanStateWitnessPool. В пуле сохраняются только orphan-witness, размер которых меньше этого значения. Это ограничивает максимальное потребление памяти пулом OrphanStateWitnessPool.
orphan_state_witness_pool_sizeintegerOrphanStateWitnessPool хранит экземпляры ChunkStateWitness, которые нельзя обработать, потому что предыдущий блок недоступен. Эти witness остаются в пуле, пока не появится нужный блок. Эта переменная определяет, сколько witness можно хранить в пуле.
produce_chunk_add_transactions_time_limitstringОграничивает время добавления транзакций в чанк. Нода формирует чанк, добавляя транзакции из пула транзакций, пока не будет достигнут один из лимитов. Этот лимит по времени гарантирует, что добавление транзакций не займёт дольше указанной длительности и поможет быстрее выпустить чанк.
produce_empty_blocksbooleanProduce empty блоки, use false for testing.
protocol_version_checkstringConfigures whether the node checks the next or the next next epoch for сеть version compatibility.
NextNextNextresharding_configstringrpc_addrstringможет быть пустымListening rpc port for статус.
save_invalid_witnessesbooleanSave observed instances of invalid ChunkStateWitness to the database in DBCol::InvalidChunkStateWitnesses. Saving invalid witnesses is useful for analysis and debugging. This option can cause extra load on the database and is not recommended for production use.
save_latest_witnessesbooleanСохраняет наблюдаемые экземпляры ChunkStateWitness в базу данных DBCol::LatestChunkStateWitnesses. Сохранение последних witness полезно для анализа и отладки. Эта опция может создавать дополнительную нагрузку на базу данных и не рекомендуется для production.
save_state_changesbooleanWhether to persist состояние changes on disk or not.
save_trie_changesbooleansave_trie_changes should be set to true iff - archive if false - non-archival nodes need trie changes to perform garbage collection - archive is true, cold_store is configured and migration to split_storage is finished - node working in split storage mode needs trie changes in order to do garbage collection on hot.
save_tx_outcomesbooleanWhether to persist транзакции outcomes to disk or not.
save_untracked_partial_chunks_partsbooleanWhether to persist partial chunk parts for untracked shards or not.
skip_sync_waitbooleanSkip waiting for sync (for testing or single node testnet).
state_request_server_threadsintegerNumber of threads for StateRequestActor pool.
state_request_throttle_periodarrayNumber of seconds between состояние requests for просмотр клиент. Throttling window for состояние requests (headers and parts).
itemsintegerstate_requests_per_throttle_periodintegerMaximum number of состояние requests served per throttle period
state_syncobjectOptions for syncing состояние.
concurrencyobjectdumpobjectможет быть пустымConfigures how to dump состояние to external storage.
parts_compression_lvlintegerZstd compression level for состояние parts.
syncstringможет быть пустымSyncs состояние from the peers without reading anything from external storage.
Peersstate_sync_enabledbooleanWhether to use the Состояние Sync mechanism. If disabled, the node will do Блок Sync instead of Состояние Sync.
state_sync_external_backoffarrayAdditional waiting period after a failed запрос to external storage
itemsintegerstate_sync_external_timeoutarrayHow long to wait for a ответ from centralized состояние sync
itemsintegerstate_sync_p2p_timeoutarrayHow long to wait for a ответ from p2p состояние sync
itemsintegerstate_sync_retry_backoffarrayHow long to wait after a failed состояние sync запрос
itemsintegersync_check_periodarrayHow often to check that we are not out of sync.
itemsintegersync_height_thresholdintegerSync height threshold: below this difference in height don't start syncing.
sync_max_block_requestsintegerMaximum number of блока requests to отправка to peers to sync
sync_step_periodarrayWhile syncing, how long to check for each step.
itemsintegertracked_shards_configobjectOne of multiple possible types
transaction_pool_size_limitintegerможет быть пустымLimit of the size of per-shard транзакции pool measured in bytes. If not set, the size will be unbounded.
transaction_request_handler_threadsintegertrie_viewer_state_size_limitintegerможет быть пустымUpper bound of the byte size of контракта состояние that is still viewable. None is no limit
ttl_account_id_routerarrayTime to persist Accounts Id in the router without removing them.
itemsintegertx_routing_height_horizonintegerIf the node is not a chunk producer within that many блоки, then route to upcoming chunk producers.
versionobjectData structure for semver version and github tag or commit.
build *stringcommit *stringrustc_versionstringversion *stringview_client_threadsintegerNumber of threads for ПросмотрClientActor pool.
dynamic_resharding_dry_runbooleanЕсли значение true, runtime выполнит динамический dry run ресхардинга на последнем блоке каждой эпохи.
Это означает вычисление предварительных граничных аккаунтов для разделения отслеживаемых шардов.
errorobjectкодintegermessagestringdataobject