Show / Hide Table of Contents

Class FeatureInfo

Describes a single XRPL amendment (feature).

Depending on rippled version and node mode (validator / non-validator), the server may return either a minimal or an extended set of fields. This model is designed to be forward-compatible.

Inheritance
object
FeatureInfo
Namespace: Xrpl.Models.Methods
Assembly: Xrpl.dll
Syntax
public sealed class FeatureInfo

Properties

| Edit this page View Source

CanBeEnabled

A stricter helper: amendment is not enabled, not vetoed, node supports it, and (if voting data exists) it has quorum.

Note: If quorum data is absent, this returns true as long as other conditions hold.

Declaration
[JsonIgnore]
public bool CanBeEnabled { get; }
Property Value
Type Description
bool
| Edit this page View Source

Count

Current number of validations or votes for this amendment. Present only in extended responses.

Declaration
[JsonPropertyName("count")]
public int? Count { get; set; }
Property Value
Type Description
int?
| Edit this page View Source

Enabled

Whether this amendment is currently enabled in the latest ledger.

Declaration
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

HasQuorum

Whether the amendment meets the known quorum/threshold condition (when both values are present). Returns false if data is not present.

Declaration
[JsonIgnore]
public bool HasQuorum { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsVetoed

Normalized flag: amendment is vetoed (regardless of whether the server returned bool or string).

Declaration
[JsonIgnore]
public bool IsVetoed { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsVoting

Indicates that the server returned voting-related fields for this amendment. Typically present when the amendment is not enabled yet (or was tracked historically).

Declaration
[JsonIgnore]
public bool IsVoting { get; }
Property Value
Type Description
bool
| Edit this page View Source

Name

(May be omitted) The human-readable name for this amendment, if known.

Declaration
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Supported

Whether the server knows how to apply this amendment.
If this field is set to false (the server does not know how to apply this amendment) and enabled is set to true (this amendment is enabled in the latest ledger), this amendment may cause your server to be amendment blocked.

Declaration
[JsonPropertyName("supported")]
public bool Supported { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Threshold

Required number of validations for this amendment to pass voting. Present only in extended responses.

Declaration
[JsonPropertyName("threshold")]
public int? Threshold { get; set; }
Property Value
Type Description
int?
| Edit this page View Source

Validations

Total number of validator validations observed for this amendment. May differ from Count depending on rippled version.

Declaration
[JsonPropertyName("validations")]
public int? Validations { get; set; }
Property Value
Type Description
int?
| Edit this page View Source

VetoedRaw

Raw "vetoed" value as returned by rippled. Can be: boolean (true/false) or string reason (e.g. "Obsolete").

Declaration
[JsonPropertyName("vetoed")]
public JsonNode? VetoedRaw { get; set; }
Property Value
Type Description
JsonNode
| Edit this page View Source

VetoedReason

Normalized veto reason when server returns a string (e.g. "Obsolete"). Returns null if server only returned a boolean.

Declaration
[JsonIgnore]
public string? VetoedReason { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX