Genesis Config
EXPERIMENTAL_genesis_config request type
This endpoint allows you to get the genesis configuration of the NEAR blockchain.
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/jsonThis operation accepts a JSON-RPC body over POST to /.
Required request inputs: yes
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "genesis_config",
"params": []
}Request schema
jsonrpc *string2.0id *stringmethod *stringgenesis_configparams *arrayEmpty array as this method takes no parameters
Response reference
200 application/jsonSuccessful response
Response schema
jsonrpc *string2.0id *one ofresultobjectavg_hidden_validator_seats_per_shard *arrayExpected number of hidden validators per shard.
itemsintegerblock_producer_kickout_threshold *integerThreshold for kicking out block producers, between 0 and 100.
chain_id *stringID of the blockchain. This must be unique for every blockchain. If your testnet blockchains do not have unique chain IDs, you will have a bad time.
chunk_producer_assignment_changes_limitintegerLimits the number of shard 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 validators, between 0 and 100.
dynamic_resharding *booleanEnable dynamic re-sharding.
epoch_length *integerEpoch length counted in block heights.
fishermen_threshold *stringAmount in yoctoNEAR
gas_limit *stringGas amount
gas_price_adjustment_rate *arrayGas price adjustment rate
itemsintegergenesis_height *integerHeight of genesis block.
genesis_time *stringOfficial time of blockchain 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 validators we will kick out.
min_gas_price *stringAmount in yoctoNEAR
minimum_stake_divisorintegerThe minimum stake required for staking is last seat price divided by this number.
minimum_stake_ratioarrayThe lowest ratio s/s_total any block producer can have. See <https://github.com/near/NEPs/pull/167> for details
itemsintegerminimum_validators_per_shardintegerThe minimum number of validators each shard must have
num_block_producer_seats *integerNumber of block producer seats at genesis.
num_block_producer_seats_per_shard *arrayDefines number of shards and number of block 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 block producers produce chunks for all shards
itemsintegernum_blocks_per_year *integerExpected number of blocks 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 validator gets full reward.
itemsintegeronline_min_thresholdarrayOnline minimum threshold below which validator doesn't receive reward.
itemsintegerprotocol_reward_rate *arrayProtocol treasury rate
itemsintegerprotocol_treasury_account *stringNEAR account ID
protocol_upgrade_stake_thresholdarrayThreshold of stake that needs to indicate that they ready for upgrade.
itemsintegerprotocol_version *integerProtocol 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 shard assignments were [S_0, S_1, S_2, S_3] where S_i represents
the set of chunk producers for shard i, if this flag were true, the
shard assignments might become, for example, [S_2, S_0, S_3, S_1].
target_validator_mandates_per_shardintegerNumber of target chunk validator mandates for each shard.
total_supply *stringAmount in yoctoNEAR
transaction_validity_period *integerNumber of blocks for which a given transaction is valid
use_production_configbooleanThis is only for test purposes. We hard code some configs for mainnet and testnet in AllEpochConfig, and we want to have a way to test that code path. This flag is for that. If set to true, the node will use the same config override path as mainnet and testnet.
validators *arrayList of initial validators.
itemsobjectAccount info for validators
errorobjectcodeintegermessagestringdataobject