Skip to main content

ProtocolConfigs

Constants that control how the chain operates.

These can only change during protocol upgrades which happen on epoch boundaries. Configuration is split into feature flags (which are just booleans), and configs which can take any value (including no value at all), and will be represented by a string.

type ProtocolConfigs {
config(
key: String!
): ProtocolConfig
configs: [ProtocolConfig!]!
featureFlag(
key: String!
): FeatureFlag
featureFlags: [FeatureFlag!]!
protocolVersion: UInt53!
}

Fields​

ProtocolConfigs.config ● ProtocolConfig object​

Query for the value of the configuration with name key.

ProtocolConfigs.config.key ● String! non-null scalar​

ProtocolConfigs.configs ● [ProtocolConfig!]! non-null object​

List all available configurations and their values.

ProtocolConfigs.featureFlag ● FeatureFlag object​

Query for the state of the feature flag with name key.

ProtocolConfigs.featureFlag.key ● String! non-null scalar​

ProtocolConfigs.featureFlags ● [FeatureFlag!]! non-null object​

List all available feature flags and their values.

ProtocolConfigs.protocolVersion ● UInt53! non-null scalar​

Returned By​

protocolConfigs query

Member Of​

ChangeEpochTransaction object ● Epoch object