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

Конфигурация клиента

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

Этот эндпоинт позволяет получить конфигурацию клиента узла NEAR.

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

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

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

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

application/json

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

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

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "client_config",
  "params": []
}

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

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

Пример: fastnear

method *string
client_config
params *array

Empty array as this method takes no parameters

Пример:

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

200 application/json

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

Схема ответа

objectJsonRpcResponse
требует jsonrpc, id
jsonrpc *string
2.0
id *один из
stringnumber
resultobject

ClientConfig where some fields can be updated at runtime.

archiveboolean

Not clear old data, set true for archive nodes.

block_fetch_horizoninteger

Horizon at which instead of fetching блока, fetch full состояние.

block_header_fetch_horizoninteger

Behind this horizon header fetch kicks in.

block_production_tracking_delayarray

Duration to check for producing / skipping блока.

itemsinteger
catchup_step_periodarray

Time between check to perform catchup.

itemsinteger
chain_idstring

Chain id for статус.

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

Конфигурация функции Chunk Distribution Network. Она позволяет нодам отправлять и получать чанки через центральный поток. Преимущества такого подхода: (1) меньше трафика запросов и ответов в одноранговой сети и (2) меньшая задержка для RPC-нод, индексирующих цепочку.

enabledboolean
urisobject

URIs for the Chunk Distribution Сеть feature.

chunk_request_retry_periodarray

Time between checking to re-запрос chunks.

itemsinteger
chunk_validation_threadsinteger

Number of threads for ChunkValidationActor pool.

chunk_wait_multarray

Multiplier for the wait time for all chunks to be received.

itemsinteger
chunks_cache_height_horizoninteger

Height 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_threadsinteger

Number of threads to execute background migration work in клиент.

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

Конфигурация облачного компонента записи архивных данных. Если эта конфигурация задана, компонент включается и записывает данные, связанные с чанками, на основе отслеживаемых шардов. Эта конфигурация также управляет дополнительным архивным поведением, например записью данных блоков и интервалом опроса.

archive_block_databoolean

Determines whether блока-related data should be written to cloud storage.

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

polling_intervalobject

Interval at which the system checks for new блоки or chunks to archive.

Значение по умолчанию: [object Object]

disable_tx_routingboolean

Если значение true, нода не будет пересылать транзакции следующим producers чанков.

doomslug_step_periodarray

Time between running doomslug timer.

itemsinteger
enable_early_prepare_transactionsboolean

Если значение true, транзакции для следующего чанка будут подготавливаться заранее, сразу после того, как будет готово post-state предыдущего чанка. Это помогает быстрее выпускать чанки в сетях с высокой пропускной способностью. Текущая реализация увеличивает задержку в сетях с низкой нагрузкой; это будет исправлено позже. По умолчанию параметр отключён.

enable_multiline_loggingboolean
enable_statistics_exportboolean

Re-export storage layer statistics as prometheus metrics.

epoch_lengthinteger

Epoch length.

epoch_syncobject

Options for epoch sync.

epoch_sync_horizon_num_epochsinteger

Number 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 блоки.

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

timeout_for_epoch_syncobject

Timeout for epoch sync requests. The node will continue retrying indefinitely even if this timeout is exceeded.

expected_shutdownstring

Graceful shutdown at expected блока height.

gcobject

Configuration for garbage collection.

gc_blocks_limitinteger

Maximum number of блоки to garbage collect at every garbage collection вызов.

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

gc_fork_clean_stepinteger

Maximum number of height to go through at each garbage collection step when cleaning forks during garbage collection.

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

gc_num_epochs_to_keepinteger

Number of epochs for which we keep store data.

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

gc_step_periodobject

How often gc should be run

Значение по умолчанию: [object Object]

header_sync_expected_height_per_secondinteger

Expected increase of header head height per second during header sync

header_sync_initial_timeoutarray

How much time to wait after initial header sync

itemsinteger
header_sync_progress_timeoutarray

How much time to wait after some progress is made in header sync

itemsinteger
header_sync_stall_ban_timeoutarray

How much time to wait before banning a peer in header sync if sync is too slow

itemsinteger
log_summary_periodarray

Period between logging summary information.

itemsinteger
log_summary_stylestring

Enable coloring of the logs

plaincolored
max_block_production_delayarray

Maximum wait for approvals before producing блока.

itemsinteger
max_block_wait_delayarray

Maximum duration before skipping given height.

itemsinteger
max_gas_burnt_viewstringможет быть пустым

Газ amount

min_block_production_delayarray

Minimum duration before producing блока.

itemsinteger
min_num_peersinteger

Minimum number of peers to start syncing.

num_block_producer_seatsinteger

Number of блока producer seats

orphan_state_witness_max_sizeinteger

Максимальный размер state witness в OrphanStateWitnessPool. В пуле сохраняются только orphan-witness, размер которых меньше этого значения. Это ограничивает максимальное потребление памяти пулом OrphanStateWitnessPool.

orphan_state_witness_pool_sizeinteger

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

produce_chunk_add_transactions_time_limitstring

Ограничивает время добавления транзакций в чанк. Нода формирует чанк, добавляя транзакции из пула транзакций, пока не будет достигнут один из лимитов. Этот лимит по времени гарантирует, что добавление транзакций не займёт дольше указанной длительности и поможет быстрее выпустить чанк.

produce_empty_blocksboolean

Produce empty блоки, use false for testing.

protocol_version_checkstring

Configures whether the node checks the next or the next next epoch for сеть version compatibility.

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

Listening rpc port for статус.

save_invalid_witnessesboolean

Save 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_changesboolean

Whether to persist состояние changes on disk or not.

save_trie_changesboolean

save_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_outcomesboolean

Whether to persist транзакции outcomes to disk or not.

save_untracked_partial_chunks_partsboolean

Whether to persist partial chunk parts for untracked shards or not.

skip_sync_waitboolean

Skip waiting for sync (for testing or single node testnet).

state_request_server_threadsinteger

Number of threads for StateRequestActor pool.

state_request_throttle_periodarray

Number of seconds between состояние requests for просмотр клиент. Throttling window for состояние requests (headers and parts).

itemsinteger
state_requests_per_throttle_periodinteger

Maximum number of состояние requests served per throttle period

state_syncobject

Options for syncing состояние.

concurrencyobject
dumpobjectможет быть пустым

Configures how to dump состояние to external storage.

parts_compression_lvlinteger

Zstd compression level for состояние parts.

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

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

Syncs состояние from the peers without reading anything from external storage.

Peers
state_sync_enabledboolean

Whether to use the Состояние Sync mechanism. If disabled, the node will do Блок Sync instead of Состояние Sync.

state_sync_external_backoffarray

Additional waiting period after a failed запрос to external storage

itemsinteger
state_sync_external_timeoutarray

How long to wait for a ответ from centralized состояние sync

itemsinteger
state_sync_p2p_timeoutarray

How long to wait for a ответ from p2p состояние sync

itemsinteger
state_sync_retry_backoffarray

How long to wait after a failed состояние sync запрос

itemsinteger
sync_check_periodarray

How often to check that we are not out of sync.

itemsinteger
sync_height_thresholdinteger

Sync height threshold: below this difference in height don't start syncing.

sync_max_block_requestsinteger

Maximum number of блока requests to отправка to peers to sync

sync_step_periodarray

While syncing, how long to check for each step.

itemsinteger
tracked_shards_configobject

One 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_threadsinteger
trie_viewer_state_size_limitintegerможет быть пустым

Upper bound of the byte size of контракта состояние that is still viewable. None is no limit

ttl_account_id_routerarray

Time to persist Accounts Id in the router without removing them.

itemsinteger
tx_routing_height_horizoninteger

If the node is not a chunk producer within that many блоки, then route to upcoming chunk producers.

versionobject
требует version, build, commit

Data structure for semver version and github tag or commit.

build *string
commit *string
rustc_versionstring

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

version *string
view_client_threadsinteger

Number of threads for ПросмотрClientActor pool.

dynamic_resharding_dry_runboolean

Если значение true, runtime выполнит динамический dry run ресхардинга на последнем блоке каждой эпохи. Это означает вычисление предварительных граничных аккаунтов для разделения отслеживаемых шардов.

errorobject
кодinteger
messagestring
dataobject