Конфигурация протокола (экспериментальный)
EXPERIMENTAL_protocol_config — тип запроса.
Этот эндпоинт позволяет получить конфигурацию протокола блокчейна NEAR.
Ответы от выбранного эндпоинта появляются здесь после запуска запроса.
Здесь появится вывод живого ответа после запуска запроса.
Справка по запросу
application/jsonЭта операция принимает JSON-RPC тело через POST на /.
Обязательные входные данные запроса: да
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "EXPERIMENTAL_protocol_config",
"params": {
"finality": "final"
}
}Схема запроса
jsonrpc *string2.0id *stringmethod *stringEXPERIMENTAL_protocol_configparams *objectфинальность *stringБлок финальность
finalnear-finaloptimisticСправка по ответу
200 application/jsonУспешный ответ
Схема ответа
jsonrpc *string2.0id *один изresultobjectavg_hidden_validator_seats_per_shardarrayExpected number of hidden валидаторы per шард.
itemsintegerblock_producer_kickout_thresholdintegerThreshold for kicking out блока producers, between 0 and 100.
chain_idstringID of the блокчейн. This must be unique for every блокчейн. If your testnet blockchains do not have unique chain IDs, you will have a bad time.
chunk_producer_kickout_thresholdintegerThreshold for kicking out chunk producers, between 0 and 100.
chunk_validator_only_kickout_thresholdintegerThreshold for kicking out nodes which are only chunk валидаторы, between 0 and 100.
dynamic_reshardingbooleanEnable dynamic re-sharding.
epoch_lengthintegerEpoch length counted in блока heights.
fishermen_thresholdstringAmount in yoctoNEAR
gas_limitstringГаз amount
gas_price_adjustment_ratearrayГаз price adjustment rate
itemsintegergenesis_heightintegerHeight of genesis блока.
genesis_timestringOfficial time of блокчейн start.
max_gas_pricestringAmount in yoctoNEAR
max_inflation_ratearrayMaximum inflation on the total supply every epoch.
itemsintegermax_kickout_stake_percintegerMax stake percentage of the валидаторы we will kick out.
min_gas_pricestringAmount in yoctoNEAR
minimum_stake_divisorintegerThe minimum stake required for стейкинг is last seat price divided by this number.
minimum_stake_ratioarrayThe lowest ratio s/s_total any блока producer can have. See <https://github.com/near/NEPs/pull/167> for details
itemsintegerminimum_validators_per_shardintegerThe minimum number of валидаторы each шард must have
num_block_producer_seatsintegerNumber of блока producer seats at genesis.
num_block_producer_seats_per_shardarrayDefines number of shards and number of блока producer seats per each shard at genesis.
itemsintegernum_blocks_per_yearintegerExpected number of блоки per year
online_max_thresholdarrayOnline maximum threshold above which валидатора gets full reward.
itemsintegeronline_min_thresholdarrayOnline minimum threshold below which валидатора doesn't receive reward.
itemsintegerprotocol_reward_ratearrayПротокол treasury rate
itemsintegerprotocol_treasury_accountstringNEAR аккаунта ID
protocol_upgrade_stake_thresholdarrayThreshold of stake that needs to indicate that they ready for upgrade.
itemsintegerprotocol_versionintegerТекущая версия протокола
runtime_configobjectПросмотр that preserves JSON format of the runtime конфигурация.
account_creation_configobjectThe structure describes configuration for creation of new аккаунтов.
congestion_control_configobjectThe configuration for congestion control. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
storage_amount_per_bytestringAmount in yoctoNEAR
transaction_costsobjectDescribes different fees for the runtime
wasm_configobjectКонфигурация of wasm operations.
witness_configobjectConfiguration specific to ChunkStateWitness.
shard_layoutobjectOne of multiple possible types
shuffle_shard_assignment_for_chunk_producersbooleanIf true, shuffle the chunk producers across shards. In other words, if
the шард assignments were [S_0, S_1, S_2, S_3] where S_i represents
the set of chunk producers for шард i, if this flag were true, the
шард assignments might become, for example, [S_2, S_0, S_3, S_1].
target_validator_mandates_per_shardintegerNumber of target chunk валидатора mandates for each shard.
transaction_validity_periodintegerNumber of блоки for which a given транзакции is valid
errorobjectкодintegermessagestringdataobject