Конфигурация генезиса
EXPERIMENTAL_genesis_config — тип запроса.
Этот эндпоинт позволяет получить конфигурацию генезиса блокчейна NEAR.
Ответы от выбранного эндпоинта появляются здесь после запуска запроса.
Здесь появится вывод живого ответа после запуска запроса.
Справка по запросу
application/jsonЭта операция принимает JSON-RPC тело через POST на /.
Обязательные входные данные запроса: да
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "genesis_config",
"params": []
}Схема запроса
jsonrpc *string2.0id *stringmethod *stringgenesis_configparams *arrayEmpty array as this method takes no parameters
Справка по ответу
200 application/jsonУспешный ответ
Схема ответа
jsonrpc *string2.0id *один изresultobjectavg_hidden_validator_seats_per_shard *arrayExpected number of hidden валидаторы per шард.
itemsintegerblock_producer_kickout_threshold *integerThreshold for kicking out блока producers, between 0 and 100.
chain_id *stringID 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_assignment_changes_limitintegerLimits the number of шард changes in chunk producer assignments, if algorithm is able to choose assignment with better balance of number of chunk producers for shards.
chunk_producer_kickout_threshold *integerThreshold 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_resharding *booleanEnable dynamic re-sharding.
epoch_length *integerEpoch length counted in блока heights.
fishermen_threshold *stringAmount in yoctoNEAR
gas_limit *stringГаз amount
gas_price_adjustment_rate *arrayГаз price adjustment rate
itemsintegergenesis_height *integerHeight of genesis блока.
genesis_time *stringOfficial time of блокчейн start.
max_gas_price *stringAmount in yoctoNEAR
max_inflation_rate *arrayMaximum inflation on the total supply every epoch.
itemsintegermax_kickout_stake_percintegerMax stake percentage of the валидаторы we will kick out.
min_gas_price *stringAmount 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_seats *integerNumber of блока producer seats at genesis.
num_block_producer_seats_per_shard *arrayDefines number of shards and number of блока producer seats per each shard at genesis. Note: not used with protocol_feature_chunk_only_producers -- replaced by minimum_validators_per_shard Note: not used before as all блока producers produce chunks for all shards
itemsintegernum_blocks_per_year *integerExpected number of блоки per year
num_chunk_only_producer_seatsintegerDeprecated.
num_chunk_producer_seatsintegerNumber of chunk producers. Don't mess it up with chunk-only producers feature which is deprecated.
num_chunk_validator_seatsintegeronline_max_thresholdarrayOnline maximum threshold above which валидатора gets full reward.
itemsintegeronline_min_thresholdarrayOnline minimum threshold below which валидатора doesn't receive reward.
itemsintegerprotocol_reward_rate *arrayПротокол treasury rate
itemsintegerprotocol_treasury_account *stringNEAR аккаунта ID
protocol_upgrade_stake_thresholdarrayThreshold of stake that needs to indicate that they ready for upgrade.
itemsintegerprotocol_version *integerПротокол version that this genesis works with.
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.
total_supply *stringAmount in yoctoNEAR
transaction_validity_period *integerNumber of блоки for which a given транзакции is valid
use_production_configbooleanИспользуется только для тестов. Мы жёстко задаём часть конфигурации для mainnet и testnet
в AllEpochConfig, и нам нужен способ протестировать этот путь в коде. Для этого и служит этот флаг.
Если установить true, нода будет использовать тот же путь переопределения конфигурации, что и mainnet и testnet.
валидаторы *arrayList of initial валидаторы.
itemsobjectАккаунт info for validators
errorobjectкодintegermessagestringdataobject