curl --request POST \
--url https://rpc.mainnet.near.org/EXPERIMENTAL_protocol_config \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"jsonrpc": "<string>",
"method": "EXPERIMENTAL_protocol_config",
"params": {
"block_id": 1
}
}
'{
"result": {
"avg_hidden_validator_seats_per_shard": [
1
],
"block_producer_kickout_threshold": 127,
"chain_id": "<string>",
"chunk_producer_kickout_threshold": 127,
"chunk_validator_only_kickout_threshold": 127,
"dynamic_resharding": true,
"epoch_length": 1,
"fishermen_threshold": "<string>",
"gas_limit": 1,
"gas_price_adjustment_rate": [
123
],
"genesis_height": 1,
"genesis_time": "2023-11-07T05:31:56Z",
"max_gas_price": "<string>",
"max_inflation_rate": [
123
],
"max_kickout_stake_perc": 127,
"min_gas_price": "<string>",
"minimum_stake_divisor": 1,
"minimum_stake_ratio": [
123
],
"minimum_validators_per_shard": 1,
"num_block_producer_seats": 1,
"num_block_producer_seats_per_shard": [
1
],
"num_blocks_per_year": 1,
"online_max_threshold": [
123
],
"online_min_threshold": [
123
],
"protocol_reward_rate": [
123
],
"protocol_treasury_account": "<string>",
"protocol_upgrade_stake_threshold": [
123
],
"protocol_version": 1,
"runtime_config": {
"account_creation_config": {
"min_allowed_top_level_account_length": 127,
"registrar_account_id": "<string>"
},
"congestion_control_config": {
"allowed_shard_outgoing_gas": 1,
"max_congestion_incoming_gas": 1,
"max_congestion_memory_consumption": 1,
"max_congestion_missed_chunks": 1,
"max_congestion_outgoing_gas": 1,
"max_outgoing_gas": 1,
"max_tx_gas": 1,
"min_outgoing_gas": 1,
"min_tx_gas": 1,
"outgoing_receipts_big_size_limit": 1,
"outgoing_receipts_usual_size_limit": 1,
"reject_tx_congestion_threshold": 123
},
"storage_amount_per_byte": "<string>",
"transaction_costs": {
"action_creation_config": {
"add_key_cost": {
"full_access_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
}
},
"create_account_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"delegate_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"delete_account_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"delete_key_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"deploy_contract_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"deploy_contract_cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"stake_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"transfer_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
}
},
"action_receipt_creation_config": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"burnt_gas_reward": [
123
],
"data_receipt_creation_config": {
"base_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
}
},
"pessimistic_gas_price_inflation_ratio": [
123
],
"storage_usage_config": {
"num_bytes_account": 1,
"num_extra_bytes_record": 1
}
},
"wasm_config": {
"deterministic_account_ids": true,
"discard_custom_sections": true,
"eth_implicit_accounts": true,
"eth_implicit_global_contract": true,
"ext_costs": {
"alt_bn128_g1_multiexp_base": 1,
"alt_bn128_g1_multiexp_element": 1,
"alt_bn128_g1_sum_base": 1,
"alt_bn128_g1_sum_element": 1,
"alt_bn128_pairing_check_base": 1,
"alt_bn128_pairing_check_element": 1,
"base": 1,
"bls12381_g1_multiexp_base": 1,
"bls12381_g1_multiexp_element": 1,
"bls12381_g2_multiexp_base": 1,
"bls12381_g2_multiexp_element": 1,
"bls12381_map_fp2_to_g2_base": 1,
"bls12381_map_fp2_to_g2_element": 1,
"bls12381_map_fp_to_g1_base": 1,
"bls12381_map_fp_to_g1_element": 1,
"bls12381_p1_decompress_base": 1,
"bls12381_p1_decompress_element": 1,
"bls12381_p1_sum_base": 1,
"bls12381_p1_sum_element": 1,
"bls12381_p2_decompress_base": 1,
"bls12381_p2_decompress_element": 1,
"bls12381_p2_sum_base": 1,
"bls12381_p2_sum_element": 1,
"bls12381_pairing_base": 1,
"bls12381_pairing_element": 1,
"contract_compile_base": 1,
"contract_compile_bytes": 1,
"contract_loading_base": 1,
"contract_loading_bytes": 1,
"ecrecover_base": 1,
"ed25519_verify_base": 1,
"ed25519_verify_byte": 1,
"keccak256_base": 1,
"keccak256_byte": 1,
"keccak512_base": 1,
"keccak512_byte": 1,
"log_base": 1,
"log_byte": 1,
"promise_and_base": 1,
"promise_and_per_promise": 1,
"promise_return": 1,
"read_cached_trie_node": 1,
"read_memory_base": 1,
"read_memory_byte": 1,
"read_register_base": 1,
"read_register_byte": 1,
"ripemd160_base": 1,
"ripemd160_block": 1,
"sha256_base": 1,
"sha256_byte": 1,
"storage_has_key_base": 1,
"storage_has_key_byte": 1,
"storage_iter_create_from_byte": 1,
"storage_iter_create_prefix_base": 1,
"storage_iter_create_prefix_byte": 1,
"storage_iter_create_range_base": 1,
"storage_iter_create_to_byte": 1,
"storage_iter_next_base": 1,
"storage_iter_next_key_byte": 1,
"storage_iter_next_value_byte": 1,
"storage_large_read_overhead_base": 1,
"storage_large_read_overhead_byte": 1,
"storage_read_base": 1,
"storage_read_key_byte": 1,
"storage_read_value_byte": 1,
"storage_remove_base": 1,
"storage_remove_key_byte": 1,
"storage_remove_ret_value_byte": 1,
"storage_write_base": 1,
"storage_write_evicted_byte": 1,
"storage_write_key_byte": 1,
"storage_write_value_byte": 1,
"touching_trie_node": 1,
"utf16_decoding_base": 1,
"utf16_decoding_byte": 1,
"utf8_decoding_base": 1,
"utf8_decoding_byte": 1,
"validator_stake_base": 1,
"validator_total_stake_base": 1,
"write_memory_base": 1,
"write_memory_byte": 1,
"write_register_base": 1,
"write_register_byte": 1,
"yield_create_base": 1,
"yield_create_byte": 1,
"yield_resume_base": 1,
"yield_resume_byte": 1
},
"fix_contract_loading_cost": true,
"gas_key_host_fns": true,
"global_contract_host_fns": true,
"grow_mem_cost": 1,
"implicit_account_creation": true,
"limit_config": {
"account_id_validity_rules_version": 0,
"initial_memory_pages": 1,
"max_actions_per_receipt": 1,
"max_arguments_length": 1,
"max_contract_size": 1,
"max_elements_per_contract_table": 1,
"max_functions_number_per_contract": 1,
"max_gas_burnt": 1,
"max_length_method_name": 1,
"max_length_returned_data": 1,
"max_length_storage_key": 1,
"max_length_storage_value": 1,
"max_locals_per_contract": 1,
"max_memory_pages": 1,
"max_number_bytes_method_names": 1,
"max_number_input_data_dependencies": 1,
"max_number_logs": 1,
"max_number_registers": 1,
"max_promises_per_function_call_action": 1,
"max_receipt_size": 1,
"max_register_size": 1,
"max_stack_height": 1,
"max_tables_per_contract": 1,
"max_total_log_length": 1,
"max_total_prepaid_gas": 1,
"max_transaction_size": 1,
"max_yield_payload_size": 1,
"per_receipt_storage_proof_size_limit": 1,
"registers_memory_limit": 1,
"yield_timeout_length_in_blocks": 1
},
"linear_op_base_cost": 1,
"linear_op_unit_cost": 1,
"reftypes_bulk_memory": true,
"regular_op_cost": 1,
"storage_get_mode": "FlatStorage",
"vm_kind": "Wasmer0"
},
"witness_config": {
"combined_transactions_size_limit": 1,
"main_storage_proof_size_soft_limit": 1,
"new_transactions_validation_state_size_soft_limit": 1
}
},
"shard_layout": {
"V0": {
"num_shards": 1,
"version": 1
}
},
"shuffle_shard_assignment_for_chunk_producers": true,
"target_validator_mandates_per_shard": 1,
"transaction_validity_period": 1
},
"id": "<string>",
"jsonrpc": "<string>"
}A configuration that defines the protocol-level parameters such as gas/storage costs, limits, feature flags, other settings
curl --request POST \
--url https://rpc.mainnet.near.org/EXPERIMENTAL_protocol_config \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"jsonrpc": "<string>",
"method": "EXPERIMENTAL_protocol_config",
"params": {
"block_id": 1
}
}
'{
"result": {
"avg_hidden_validator_seats_per_shard": [
1
],
"block_producer_kickout_threshold": 127,
"chain_id": "<string>",
"chunk_producer_kickout_threshold": 127,
"chunk_validator_only_kickout_threshold": 127,
"dynamic_resharding": true,
"epoch_length": 1,
"fishermen_threshold": "<string>",
"gas_limit": 1,
"gas_price_adjustment_rate": [
123
],
"genesis_height": 1,
"genesis_time": "2023-11-07T05:31:56Z",
"max_gas_price": "<string>",
"max_inflation_rate": [
123
],
"max_kickout_stake_perc": 127,
"min_gas_price": "<string>",
"minimum_stake_divisor": 1,
"minimum_stake_ratio": [
123
],
"minimum_validators_per_shard": 1,
"num_block_producer_seats": 1,
"num_block_producer_seats_per_shard": [
1
],
"num_blocks_per_year": 1,
"online_max_threshold": [
123
],
"online_min_threshold": [
123
],
"protocol_reward_rate": [
123
],
"protocol_treasury_account": "<string>",
"protocol_upgrade_stake_threshold": [
123
],
"protocol_version": 1,
"runtime_config": {
"account_creation_config": {
"min_allowed_top_level_account_length": 127,
"registrar_account_id": "<string>"
},
"congestion_control_config": {
"allowed_shard_outgoing_gas": 1,
"max_congestion_incoming_gas": 1,
"max_congestion_memory_consumption": 1,
"max_congestion_missed_chunks": 1,
"max_congestion_outgoing_gas": 1,
"max_outgoing_gas": 1,
"max_tx_gas": 1,
"min_outgoing_gas": 1,
"min_tx_gas": 1,
"outgoing_receipts_big_size_limit": 1,
"outgoing_receipts_usual_size_limit": 1,
"reject_tx_congestion_threshold": 123
},
"storage_amount_per_byte": "<string>",
"transaction_costs": {
"action_creation_config": {
"add_key_cost": {
"full_access_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
}
},
"create_account_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"delegate_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"delete_account_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"delete_key_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"deploy_contract_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"deploy_contract_cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"function_call_cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"stake_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"transfer_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
}
},
"action_receipt_creation_config": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"burnt_gas_reward": [
123
],
"data_receipt_creation_config": {
"base_cost": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
},
"cost_per_byte": {
"execution": 1,
"send_not_sir": 1,
"send_sir": 1
}
},
"pessimistic_gas_price_inflation_ratio": [
123
],
"storage_usage_config": {
"num_bytes_account": 1,
"num_extra_bytes_record": 1
}
},
"wasm_config": {
"deterministic_account_ids": true,
"discard_custom_sections": true,
"eth_implicit_accounts": true,
"eth_implicit_global_contract": true,
"ext_costs": {
"alt_bn128_g1_multiexp_base": 1,
"alt_bn128_g1_multiexp_element": 1,
"alt_bn128_g1_sum_base": 1,
"alt_bn128_g1_sum_element": 1,
"alt_bn128_pairing_check_base": 1,
"alt_bn128_pairing_check_element": 1,
"base": 1,
"bls12381_g1_multiexp_base": 1,
"bls12381_g1_multiexp_element": 1,
"bls12381_g2_multiexp_base": 1,
"bls12381_g2_multiexp_element": 1,
"bls12381_map_fp2_to_g2_base": 1,
"bls12381_map_fp2_to_g2_element": 1,
"bls12381_map_fp_to_g1_base": 1,
"bls12381_map_fp_to_g1_element": 1,
"bls12381_p1_decompress_base": 1,
"bls12381_p1_decompress_element": 1,
"bls12381_p1_sum_base": 1,
"bls12381_p1_sum_element": 1,
"bls12381_p2_decompress_base": 1,
"bls12381_p2_decompress_element": 1,
"bls12381_p2_sum_base": 1,
"bls12381_p2_sum_element": 1,
"bls12381_pairing_base": 1,
"bls12381_pairing_element": 1,
"contract_compile_base": 1,
"contract_compile_bytes": 1,
"contract_loading_base": 1,
"contract_loading_bytes": 1,
"ecrecover_base": 1,
"ed25519_verify_base": 1,
"ed25519_verify_byte": 1,
"keccak256_base": 1,
"keccak256_byte": 1,
"keccak512_base": 1,
"keccak512_byte": 1,
"log_base": 1,
"log_byte": 1,
"promise_and_base": 1,
"promise_and_per_promise": 1,
"promise_return": 1,
"read_cached_trie_node": 1,
"read_memory_base": 1,
"read_memory_byte": 1,
"read_register_base": 1,
"read_register_byte": 1,
"ripemd160_base": 1,
"ripemd160_block": 1,
"sha256_base": 1,
"sha256_byte": 1,
"storage_has_key_base": 1,
"storage_has_key_byte": 1,
"storage_iter_create_from_byte": 1,
"storage_iter_create_prefix_base": 1,
"storage_iter_create_prefix_byte": 1,
"storage_iter_create_range_base": 1,
"storage_iter_create_to_byte": 1,
"storage_iter_next_base": 1,
"storage_iter_next_key_byte": 1,
"storage_iter_next_value_byte": 1,
"storage_large_read_overhead_base": 1,
"storage_large_read_overhead_byte": 1,
"storage_read_base": 1,
"storage_read_key_byte": 1,
"storage_read_value_byte": 1,
"storage_remove_base": 1,
"storage_remove_key_byte": 1,
"storage_remove_ret_value_byte": 1,
"storage_write_base": 1,
"storage_write_evicted_byte": 1,
"storage_write_key_byte": 1,
"storage_write_value_byte": 1,
"touching_trie_node": 1,
"utf16_decoding_base": 1,
"utf16_decoding_byte": 1,
"utf8_decoding_base": 1,
"utf8_decoding_byte": 1,
"validator_stake_base": 1,
"validator_total_stake_base": 1,
"write_memory_base": 1,
"write_memory_byte": 1,
"write_register_base": 1,
"write_register_byte": 1,
"yield_create_base": 1,
"yield_create_byte": 1,
"yield_resume_base": 1,
"yield_resume_byte": 1
},
"fix_contract_loading_cost": true,
"gas_key_host_fns": true,
"global_contract_host_fns": true,
"grow_mem_cost": 1,
"implicit_account_creation": true,
"limit_config": {
"account_id_validity_rules_version": 0,
"initial_memory_pages": 1,
"max_actions_per_receipt": 1,
"max_arguments_length": 1,
"max_contract_size": 1,
"max_elements_per_contract_table": 1,
"max_functions_number_per_contract": 1,
"max_gas_burnt": 1,
"max_length_method_name": 1,
"max_length_returned_data": 1,
"max_length_storage_key": 1,
"max_length_storage_value": 1,
"max_locals_per_contract": 1,
"max_memory_pages": 1,
"max_number_bytes_method_names": 1,
"max_number_input_data_dependencies": 1,
"max_number_logs": 1,
"max_number_registers": 1,
"max_promises_per_function_call_action": 1,
"max_receipt_size": 1,
"max_register_size": 1,
"max_stack_height": 1,
"max_tables_per_contract": 1,
"max_total_log_length": 1,
"max_total_prepaid_gas": 1,
"max_transaction_size": 1,
"max_yield_payload_size": 1,
"per_receipt_storage_proof_size_limit": 1,
"registers_memory_limit": 1,
"yield_timeout_length_in_blocks": 1
},
"linear_op_base_cost": 1,
"linear_op_unit_cost": 1,
"reftypes_bulk_memory": true,
"regular_op_cost": 1,
"storage_get_mode": "FlatStorage",
"vm_kind": "Wasmer0"
},
"witness_config": {
"combined_transactions_size_limit": 1,
"main_storage_proof_size_soft_limit": 1,
"new_transactions_validation_state_size_soft_limit": 1
}
},
"shard_layout": {
"V0": {
"num_shards": 1,
"version": 1
}
},
"shuffle_shard_assignment_for_chunk_producers": true,
"target_validator_mandates_per_shard": 1,
"transaction_validity_period": 1
},
"id": "<string>",
"jsonrpc": "<string>"
}