Show / Hide Table of Contents

Class ServerFeatures

Inheritance
object
ServerFeatures
Namespace: Xrpl.Models.Methods
Assembly: Xrpl.dll
Syntax
[JsonConverter(typeof(ServerFeaturesConverter))]
public class ServerFeatures

Properties

| Edit this page View Source

Features

Key = amendment hash

Declaration
public Dictionary<string, FeatureInfo> Features { get; set; }
Property Value
Type Description
Dictionary<string, FeatureInfo>
| 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
Type Description
string
| 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
Type Description
ulong
| Edit this page View Source

Validated

Declaration
public bool Validated { get; set; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

GetActivated()

Returns features that are already activated (enabled in the ledger).

Declaration
public Dictionary<string, FeatureInfo> GetActivated()
Returns
Type Description
Dictionary<string, FeatureInfo>
| Edit this page View Source

GetByName(string)

Declaration
public KeyValuePair<string, FeatureInfo>? GetByName(string name)
Parameters
Type Name Description
string name
Returns
Type Description
KeyValuePair<string, FeatureInfo>?
| 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
Type Description
Dictionary<string, FeatureInfo>
| 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
Type Description
Dictionary<string, FeatureInfo>
| 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
Type Description
Dictionary<string, FeatureInfo>
| Edit this page View Source

GetSupported()

Returns features supported by the connected node.

Declaration
public Dictionary<string, FeatureInfo> GetSupported()
Returns
Type Description
Dictionary<string, FeatureInfo>
| 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
Type Description
Dictionary<string, FeatureInfo>
| 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
Type Description
Dictionary<string, FeatureInfo>
| 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
Type Description
Dictionary<string, FeatureInfo>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX