Skip to main content

EXPERIMENTAL_protocol_config RPC Method

Returns the latest configuration of the protocol or a specific queried block. It is helpful for determining the current storage and transaction costs.

Updated on
Oct 4, 2023

EXPERIMENTAL_protocol_config RPC Method

Parameters

finality
string
The assurance that the transaction cannot be altered, reversed, or canceled after completion. For finality=final, it means that it has been validated on at least 66% of the nodes in the network, and for finality=optimistic, it uses the latest block recorded on the node that responded to the query passed
block_id
int/string
The block id which could be either a block number or a block hash

Returns

avg_hidden_validator_seats_per_shard
The average number of hidden validator seats that are allocated to each shard in the network
block_producer_kickout_threshold
The number of blocks that a block producer node can miss before being removed from the active validator set
chain_id
The id of the chain
chunk_producer_kickout_threshold
The number of chunks that a chunk producer node can miss before being removed from the active validator set
dynamic_resharding
It is a boolean value that indicates whether dynamic resharding is enabled in the NEAR Protocol, allowing on-demand reshuffling of shards for optimal network performance
epoch_length
The length of an epoch in the NEAR Protocol
fishermen_threshold
The minimum number of validation failures required for a validator node to be reported as a fisherman in the NEAR Protocol
gas_limit
The maximum amount of gas that can be used for a single transaction
gas_price_adjustment_rate
The rate at which the gas price can adjust over time
genesis_height
The block height at which the genesis state was created
genesis_time
The timestamp of the genesis block in the NEAR Protocol
max_gas_price
The maximum gas price allowed for a single transaction
max_inflation_rate
The maximum annual inflation rate for the NEAR Protocol token supply
min_gas_price
The minimum gas price allowed for a single transaction
minimum_stake_divisor
The minimum divisor for staking
num_block_producer_seats
The total number of block producer seats available in the NEAR Protocol
num_block_producer_seats_per_shard
The number of block producer seats available per shard in the NEAR Protocol
num_blocks_per_year
The expected number of blocks to be created in a single year
online_max_threshold
The maximum percentage of validators that can be online at any given time in the NEAR Protocol
online_min_threshold
The minimum percentage of validators that can be online at any given time in the NEAR Protocol
protocol_reward_rate
The rate at which new tokens are minted and distributed as rewards to validators and other network participants
protocol_treasury_account
The address of the account that holds the protocol treasury
protocol_upgrade_stake_threshold
The minimum amount of stake required to initiate a protocol upgrade
protocol_version
The current version of the protocol
runtime_config
The set of runtime configuration options
account_creation_config
It is used to specify the configuration options
min_allowed_top_level_account_length
The minimum length of top-level account names
registrar_account_id
It is used to specify the account that will be responsible for registering new account names
storage_amount_per_byte
It is used to specify the amount of NEAR tokens that will be required to store one byte of data on NEAR chain
transaction_costs
The gas costs associated with various operations on NEAR chain
action_creation_config
The configuration options for creating new actions on the NEAR chain
add_key_cost
The cost of adding a new public key to an existing account
full_access_cost
The cost of granting full access to an account on NEAR chain
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
function_call_cost
The base cost of calling a function on the NEAR chain
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
function_call_cost_per_byte
The additional cost of calling a function based on the size of the function's input data
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
create_account_cost
The cost of creating a new account on the NEAR chain
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
delegate_cost
The cost of delegating stake to a validator
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
delete_account_cost
The cost of deleting an account on the NEAR chain
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
delete_key_cost
The cost of deleting a public key from an account on the NEAR chain
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
deploy_contract_cost
The base cost of deploying a new smart contract on the NEAR chain
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
deploy_contract_cost_per_byte
The additional cost of deploying a smart contract based on the size of its code
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
function_call_cost
The base cost of calling a function
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
function_call_cost_per_byte
The additional cost of calling a function based on the size of the function's input data
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
stake_cost
The cost of staking NEAR tokens to participate in the network's consensus process
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
transfer_cost
The cost of transferring NEAR tokens between accounts on the network
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
action_receipt_creation_config
The configuration for the creation of action receipts
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
burnt_gas_reward
The amount of NEAR tokens that are rewarded to validators for burning gas during transaction execution
data_receipt_creation_config
The configuration for the creation of data receipts
base_cost
The base cost is the minimum amount of gas required to execute a transaction, regardless of the complexity of the transaction
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
cost_per_byte
The cost per byte of data that is included in a transaction
execution
The execution context for a given operation
send_not_sir
The gas cost associated with sending a transaction to an account that does not require a specific function to be called
send_sir
The gas cost associated with sending a transaction to an account that requires a specific function to be called
pessimistic_gas_price_inflation_ratio
The maximum ratio by which the gas price can be inflated during transaction execution
storage_usage_config
The amount of space used to store data on the blockchain
num_bytes_account
The maximum number of bytes that can be used to store an account on the blockchain
num_extra_bytes_record
The maximum number of extra bytes that can be used to store additional information in a record on the blockchain
wasm_config
The configuration for running WebAssembly (Wasm) smart contracts on the NEAR chain
ext_costs
The extra costs associated with executing a transaction
alt_bn128_g1_multiexp_base
The base point for a multi-exponentiation operation on the alt_bn128 elliptic curve
alt_bn128_g1_multiexp_element
The list of scalar values to be used in a multi-exponentiation operation on the alt_bn128 elliptic curve
alt_bn128_g1_sum_base
The base point for a sum operation on the alt_bn128 elliptic curve
alt_bn128_g1_sum_element
The list of points to be used in a sum operation on the alt_bn128 elliptic curve
alt_bn128_pairing_check_base
The base points for a pairing check operation on the alt_bn128 elliptic curve
alt_bn128_pairing_check_element
The list of points to be used in a pairing check operation on the alt_bn128 elliptic curve
base
The base fee for a transaction
contract_compile_base
The base cost for compiling a smart contract on the NEAR chain
contract_compile_bytes
The cost per byte of code that is compiled for a smart contract on the NEAR chain
contract_loading_base
The base cost for loading a smart contract into memory on the NEAR chain
contract_loading_bytes
The cost per byte of code that is loaded into memory for a smart contract on the NEAR chain
ecrecover_base
The base cost for performing an ECDSA signature recovery operation
ed25519_verify_base
The base cost for verifying an Ed25519 signature on the NEAR chain
ed25519_verify_byte
The cost per byte of message that is verified for an Ed25519 signature on the NEAR chain
keccak256_base
The base cost for computing the Keccak-256 hash of a message on the NEAR chain
keccak256_byte
The cost per byte of message that is hashed using Keccak-256 on the NEAR chain
keccak512_base
The base cost for computing the Keccak-512 hash of a message on the NEAR chain
keccak512_byte
The cost per byte of message that is hashed using Keccak-512 on the NEAR chain
log_base
The base cost for writing a log entry on the NEAR chain
log_byte
The cost per byte of data that is written to a log entry on the NEAR the cost per byte of data that is written to a log entry on the NEAR chain
promise_and_base
The base cost for creating a promise on the NEAR chain
promise_and_per_promise
The additional cost per promise created in a smart contract on the NEAR chain
promise_return
The cost for returning a promise result to the caller of a smart contract on the NEAR chain
read_cached_trie_node
The cost for reading a node from the trie data structure that is used to store account and contract state on the NEAR chain
read_memory_base
The base cost for reading data from memory in a smart contract
read_memory_byte
The cost per byte of data that is read from memory in a smart contract
read_register_base
The base cost for reading a value from a register in a smart contract
read_register_byte
The cost per byte of data that is read from a register in a smart contract
ripemd160_base
The base cost for performing the RIPEMD-160 cryptographic hash function in a smart contract
ripemd160_block
The additional cost per block of data that is processed by the RIPEMD-160 hash function in a smart contract
sha256_base
The base cost for performing the SHA-256 cryptographic hash function in a smart contract
sha256_byte
The additional cost per byte of data that is processed by the SHA-256 hash function in a smart contract
storage_has_key_base
The base cost for checking if a key exists in the persistent storage of a smart contract
storage_has_key_byte
The additional cost per byte of data that is checked when verifying if a key exists in the persistent storage of a smart contract
storage_iter_create_from_byte
The base cost for creating a new storage iterator that starts from a given byte key in the persistent storage of a smart contract
storage_iter_create_prefix_base
The base cost for creating a new storage iterator that iterates over all keys in the persistent storage of a smart contract
storage_iter_create_prefix_byte
The additional cost per byte of the prefix used to create a new storage iterator that iterates over all keys in the persistent storage of a smart contract
storage_iter_create_range_base
The base cost for creating a new storage iterator that iterates over a range of keys in the persistent storage of a smart contract
storage_iter_create_to_byte
The base cost for creating a new storage iterator that stops at a given byte key in the persistent storage of a smart contract
storage_iter_next_base
The base cost for advancing the iterator to the next key in the persistent storage of a smart contract
storage_iter_next_key_byte
The additional cost per byte of the key returned by the iterator when advancing to the next key in the persistent storage of a smart contract
storage_iter_next_value_byte
The additional cost per byte of the value returned by the iterator when advancing to the next key in the persistent storage of a smart contract
storage_read_base
The base cost for reading a value from the persistent storage of a smart contract
storage_read_key_byte
The additional cost per byte of the key used to read a value from the persistent storage of a smart contract
storage_read_value_byte
The additional cost per byte of the value read from the persistent storage of a smart contract
storage_remove_base
The base cost for removing a key-value pair from the persistent storage of a smart contract
storage_remove_key_byte
The additional cost per byte of the key used to remove a key-value pair from the persistent storage of a smart contract
storage_remove_ret_value_byte
The additional cost per byte of the value returned when removing a key-value pair from the persistent storage of a smart contract
storage_write_base
The base cost for writing to storage
storage_write_evicted_byte
The cost per byte for evicted storage write operations
storage_write_key_byte
The cost per byte for writing a key to storage
storage_write_value_byte
The cost per byte for writing a value to storage
touching_trie_node
The cost for touching a trie node during a state access
utf16_decoding_base
The base cost for UTF-16 decoding
utf16_decoding_byte
The cost per byte for UTF-16 decoding
utf8_decoding_base
The base cost for UTF-8 decoding
utf8_decoding_byte
The cost per byte for UTF-8 decoding
validator_stake_base
The base cost for a validator's stake
validator_total_stake_base
The base cost for the total stake in the network
write_memory_base
The base cost for writing to memory
write_memory_byte
The cost per byte for writing to memory
write_register_base
The base cost for writing to a register
write_register_byte
The cost per byte for writing to a register
grow_mem_cost
The cost for growing memory
limit_config
The configuration for various resource limits, such as the maximum number of contract calls per transaction and the maximum number of contract state changes per block
account_id_validity_rules_version
The version of the account ID validity rules
initial_memory_pages
The initial number of memory pages allocated to a contract
max_actions_per_receipt
The maximum number of actions that can be included in a single receipt
max_arguments_length
The maximum length of arguments that can be passed to a function call
max_contract_size
The maximum size of a contract that can be deployed on the network
max_functions_number_per_contract
The maximum number of functions that can be defined in a single contract
max_gas_burnt
The maximum amount of gas that can be consumed by a single transaction or contract call
max_length_method_name
The maximum length of a method name
max_length_returned_data
The maximum length of the data that can be returned by a function call
max_length_storage_key
The maximum length of a storage key
max_length_storage_value
The maximum length of a storage value
max_locals_per_contract
The maximum number of local variables that can be defined in a single contract function
max_memory_pages
The maximum number of memory pages that can be allocated to a contract
max_number_bytes_method_names
The maximum number of bytes that can be used to represent method names across all functions in a single contract
max_number_input_data_dependencies
The maximum number of input data dependencies that can be included in a single contract function call
max_number_logs
The maximum number of logs that can be emitted by a single contract function call
max_number_registers
The maximum number of registers that can be used in a single contract function
max_promises_per_function_call_action
The maximum number of promises that can be created in a single contract function call
max_register_size
The maximum size of a single register
max_stack_height
The maximum allowed height of the runtime execution stack
max_total_log_length
The maximum total length of all logs that can be emitted during a single transaction
max_total_prepaid_gas
The maximum amount of gas that can be prepaid for a single transaction
max_transaction_size
The maximum allowed size of a single transaction in bytes
registers_memory_limit
The maximum amount of memory that can be used for register storage
stack_limiter_version
The version of the stack limiter algorithm used in the protocol
wasmer2_stack_limit
The maximum stack size allowed by the Wasmer 2 runtime
regular_op_cost
The base cost for executing a regular operation
transaction_validity_period
The validity period of a transaction, after which it cannot be included in a block
Request
1
curl https://docs-demo.near-mainnet.quiknode.pro/ \
2
--request POST \
3
--header "Content-Type: application/json" \
4
--data '{"method": "EXPERIMENTAL_protocol_config","params": {"finality": "final"},"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free