Skip to main content

Client Config

client_config request type

This endpoint allows you to get the client configuration of the NEAR node.

Network
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

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

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
client_config
params *array

Empty array as this method takes no parameters

Example:

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
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 block, fetch full state.

block_header_fetch_horizoninteger

Behind this horizon header fetch kicks in.

block_production_tracking_delayarray

Duration to check for producing / skipping block.

itemsinteger
catchup_step_periodarray

Time between check to perform catchup.

itemsinteger
chain_idstring

Chain id for status.

chunk_distribution_networkobjectnullable

Config for the Chunk Distribution Network feature. This allows nodes to push and pull chunks from a central stream. The two benefits of this approach are: (1) less request/response traffic on the peer-to-peer network and (2) lower latency for RPC nodes indexing the chain.

enabledboolean
urisobject

URIs for the Chunk Distribution Network feature.

chunk_request_retry_periodarray

Time between checking to re-request 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 client.

cloud_archival_writerobjectnullable

Configuration for a cloud-based archival writer. If this config is present, the writer is enabled and writes chunk-related data based on the tracked shards. This config also controls additional archival behavior such as block data and polling interval.

archive_block_databoolean

Determines whether block-related data should be written to cloud storage.

Default: false

polling_intervalobject

Interval at which the system checks for new blocks or chunks to archive.

Default: [object Object]

disable_tx_routingboolean

If true, the node won't forward transactions to next the chunk producers.

doomslug_step_periodarray

Time between running doomslug timer.

itemsinteger
enable_early_prepare_transactionsboolean

If true, transactions for the next chunk will be prepared early, right after the previous chunk's post-state is ready. This can help produce chunks faster, for high-throughput chains. The current implementation increases latency on low-load chains, which will be fixed in the future. The default is disabled.

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 network 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 blocks.

Default: 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 block height.

gcobject

Configuration for garbage collection.

gc_blocks_limitinteger

Maximum number of blocks to garbage collect at every garbage collection call.

Default: 2

gc_fork_clean_stepinteger

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

Default: 100

gc_num_epochs_to_keepinteger

Number of epochs for which we keep store data.

Default: 5

gc_step_periodobject

How often gc should be run

Default: [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 block.

itemsinteger
max_block_wait_delayarray

Maximum duration before skipping given height.

itemsinteger
max_gas_burnt_viewstringnullable

Gas amount

min_block_production_delayarray

Minimum duration before producing block.

itemsinteger
min_num_peersinteger

Minimum number of peers to start syncing.

num_block_producer_seatsinteger

Number of block producer seats

orphan_state_witness_max_sizeinteger

Maximum size of state witnesses in the OrphanStateWitnessPool. We keep only orphan witnesses which are smaller than this size. This limits the maximum memory usage of OrphanStateWitnessPool.

orphan_state_witness_pool_sizeinteger

OrphanStateWitnessPool keeps instances of ChunkStateWitness which can't be processed because the previous block isn't available. The witnesses wait in the pool until the required block appears. This variable controls how many witnesses can be stored in the pool.

produce_chunk_add_transactions_time_limitstring

Limit the time of adding transactions to a chunk. A node produces a chunk by adding transactions from the transaction pool until some limit is reached. This time limit ensures that adding transactions won't take longer than the specified duration, which helps to produce the chunk quickly.

produce_empty_blocksboolean

Produce empty blocks, use false for testing.

protocol_version_checkstring

Configures whether the node checks the next or the next next epoch for network version compatibility.

NextNextNext
resharding_configstring
rpc_addrstringnullable

Listening rpc port for status.

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

Save observed instances of ChunkStateWitness to the database in DBCol::LatestChunkStateWitnesses. Saving the latest witnesses is useful for analysis and debugging. This option can cause extra load on the database and is not recommended for production use.

save_state_changesboolean

Whether to persist state 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 transaction 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 state requests for view client. Throttling window for state requests (headers and parts).

itemsinteger
state_requests_per_throttle_periodinteger

Maximum number of state requests served per throttle period

state_syncobject

Options for syncing state.

concurrencyobject
dumpobjectnullable

Configures how to dump state to external storage.

parts_compression_lvlinteger

Zstd compression level for state parts.

Default: 1

syncstringnullable

Syncs state from the peers without reading anything from external storage.

Peers
state_sync_enabledboolean

Whether to use the State Sync mechanism. If disabled, the node will do Block Sync instead of State Sync.

state_sync_external_backoffarray

Additional waiting period after a failed request to external storage

itemsinteger
state_sync_external_timeoutarray

How long to wait for a response from centralized state sync

itemsinteger
state_sync_p2p_timeoutarray

How long to wait for a response from p2p state sync

itemsinteger
state_sync_retry_backoffarray

How long to wait after a failed state sync request

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 block requests to send 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_limitintegernullable

Limit of the size of per-shard transaction pool measured in bytes. If not set, the size will be unbounded.

transaction_request_handler_threadsinteger
trie_viewer_state_size_limitintegernullable

Upper bound of the byte size of contract state 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 blocks, then route to upcoming chunk producers.

versionobject
requires version, build, commit

Data structure for semver version and github tag or commit.

build *string
commit *string
rustc_versionstring

Default:

version *string
view_client_threadsinteger

Number of threads for ViewClientActor pool.

dynamic_resharding_dry_runboolean

If true, the runtime will do a dynamic resharding 'dry run' at the last block of each epoch. This means calculating tentative boundary accounts for splitting the tracked shards.

errorobject
codeinteger
messagestring
dataobject