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

Конфигурация протокола (экспериментальный)

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

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

Сеть
API-ключ FastNearНет сохранённого ключа
Получить API-ключ
Эндпоинтhttps://rpc.mainnet.fastnear.com
Финальность

Самый свежий блок с полной финальностью. Максимальная уверенность ценой наибольшей задержки подтверждения.

Авторизацияне обнаружена
Живой ответ

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

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

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

application/json

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

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

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "EXPERIMENTAL_protocol_config",
  "params": {
    "finality": "final"
  }
}

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

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

Пример: fastnear

method *string
EXPERIMENTAL_protocol_config
params *object
требует финальность
финальность *string

Блок финальность

finalnear-finaloptimistic

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

200 application/json

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

Схема ответа

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

Expected number of hidden валидаторы per шард.

itemsinteger
block_producer_kickout_thresholdinteger

Threshold for kicking out блока producers, between 0 and 100.

chain_idstring

ID 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_thresholdinteger

Threshold for kicking out chunk producers, between 0 and 100.

chunk_validator_only_kickout_thresholdinteger

Threshold for kicking out nodes which are only chunk валидаторы, between 0 and 100.

dynamic_reshardingboolean

Enable dynamic re-sharding.

epoch_lengthinteger

Epoch length counted in блока heights.

fishermen_thresholdstring

Amount in yoctoNEAR

gas_limitstring

Газ amount

gas_price_adjustment_ratearray

Газ price adjustment rate

itemsinteger
genesis_heightinteger

Height of genesis блока.

genesis_timestring

Official time of блокчейн start.

max_gas_pricestring

Amount in yoctoNEAR

max_inflation_ratearray

Maximum inflation on the total supply every epoch.

itemsinteger
max_kickout_stake_percinteger

Max stake percentage of the валидаторы we will kick out.

min_gas_pricestring

Amount in yoctoNEAR

minimum_stake_divisorinteger

The minimum stake required for стейкинг is last seat price divided by this number.

minimum_stake_ratioarray

The lowest ratio s/s_total any блока producer can have. See <https://github.com/near/NEPs/pull/167> for details

itemsinteger
minimum_validators_per_shardinteger

The minimum number of валидаторы each шард must have

num_block_producer_seatsinteger

Number of блока producer seats at genesis.

num_block_producer_seats_per_shardarray

Defines number of shards and number of блока producer seats per each shard at genesis.

itemsinteger
num_blocks_per_yearinteger

Expected number of блоки per year

online_max_thresholdarray

Online maximum threshold above which валидатора gets full reward.

itemsinteger
online_min_thresholdarray

Online minimum threshold below which валидатора doesn't receive reward.

itemsinteger
protocol_reward_ratearray

Протокол treasury rate

itemsinteger
protocol_treasury_accountstring

NEAR аккаунта ID

protocol_upgrade_stake_thresholdarray

Threshold of stake that needs to indicate that they ready for upgrade.

itemsinteger
protocol_versioninteger

Текущая версия протокола

runtime_configobject

Просмотр that preserves JSON format of the runtime конфигурация.

account_creation_configobject

The structure describes configuration for creation of new аккаунтов.

congestion_control_configobject

The 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_bytestring

Amount in yoctoNEAR

transaction_costsobject

Describes different fees for the runtime

wasm_configobject

Конфигурация of wasm operations.

witness_configobject

Configuration specific to ChunkStateWitness.

shard_layoutobject

One of multiple possible types

shuffle_shard_assignment_for_chunk_producersboolean

If 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_shardinteger

Number of target chunk валидатора mandates for each shard.

transaction_validity_periodinteger

Number of блоки for which a given транзакции is valid

errorobject
кодinteger
messagestring
dataobject