Class ServerFeatures
Inheritance
object
ServerFeatures
Assembly: Xrpl.dll
Syntax
[JsonConverter(typeof(ServerFeaturesConverter))]
public class ServerFeatures
Properties
|
Edit this page
View Source
Features
Declaration
public Dictionary<string, FeatureInfo> Features { get; set; }
Property Value
|
Edit this page
View Source
LedgerHash
The identifying hash of the ledger version that was closed.
Declaration
[JsonPropertyName("ledger_hash")]
public string LedgerHash { get; set; }
Property Value
|
Edit this page
View Source
LedgerIndex
The ledger index of the ledger that was closed.
Declaration
[JsonPropertyName("ledger_index")]
public ulong LedgerIndex { get; set; }
Property Value
|
Edit this page
View Source
Validated
Declaration
public bool Validated { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetActivated()
Returns features that are already activated (enabled in the ledger).
Declaration
public Dictionary<string, FeatureInfo> GetActivated()
Returns
|
Edit this page
View Source
GetByName(string)
Declaration
public KeyValuePair<string, FeatureInfo>? GetByName(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
|
Edit this page
View Source
GetByNameContains(string)
Returns features whose name contains the given substring (case-insensitive).
Useful for search boxes and fuzzy matching in UI.
Declaration
public Dictionary<string, FeatureInfo> GetByNameContains(string part)
Parameters
| Type |
Name |
Description |
| string |
part |
|
Returns
|
Edit this page
View Source
GetCanBeEnabled()
Returns features that are eligible to be enabled:
- not enabled
- supported by the node
- not vetoed
- quorum reached (if voting data is available)
Declaration
public Dictionary<string, FeatureInfo> GetCanBeEnabled()
Returns
|
Edit this page
View Source
GetObsolete()
Returns features that are marked as obsolete ("vetoed": "Obsolete").
This is a strict subset of vetoed features.
Declaration
public Dictionary<string, FeatureInfo> GetObsolete()
Returns
|
Edit this page
View Source
GetSupported()
Returns features supported by the connected node.
Declaration
public Dictionary<string, FeatureInfo> GetSupported()
Returns
|
Edit this page
View Source
GetVetoed()
Returns features that are vetoed.
Handles both "vetoed": true and "vetoed": "Reason".
Declaration
public Dictionary<string, FeatureInfo> GetVetoed()
Returns
|
Edit this page
View Source
GetVoting()
Returns features that are currently in voting state
(not enabled yet, but voting-related fields are present).
Declaration
public Dictionary<string, FeatureInfo> GetVoting()
Returns
|
Edit this page
View Source
GetWithQuorum()
Returns features that have reached quorum
(Count >= Threshold, when both are present).
Declaration
public Dictionary<string, FeatureInfo> GetWithQuorum()
Returns