You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Note: At time of writing (2024-10-15) fixPreviousTxnID is the most recently enabled amendment, which means that the last time the Amendments entry changed was when it became enabled. Amendments' changes don't apply until the next ledger, so fixPreviousTxnID was not in effect at the time. The PreviousTxnID and PreviousTxnLgrSeq fields will be added to the Amendments entry the next time any amendment gains supermajority support. -->
46
+
38
47
## {% $frontmatter.seo.title %} Fields
39
48
40
49
In addition to the [common fields](../common-fields.md), the {% code-page-name /%} ledger entry has the following fields:
41
50
42
-
| Name | JSON Type |[Internal Type][]| Required? | Description |
|`Amendments`| Array | Vector256 | No | Array of 256-bit [amendment IDs](../../../../concepts/networks-and-servers/amendments.md) for all currently enabled amendments. If omitted, there are no enabled amendments. |
45
-
|`Flags`| Number | UInt32 | Yes | A bit-map of boolean flags enabled for this object. Currently, the protocol defines no flags for `Amendments` objects. The value is always `0`. |
46
-
|`LedgerEntryType`| String | UInt16 | Yes | The value `0x0066`, mapped to the string `Amendments`, indicates that this object describes the status of amendments to the XRP Ledger. |
47
-
|`Majorities`| Array | STArray | No | Array of objects describing the status of amendments that have majority support but are not yet enabled. If omitted, there are no pending amendments with majority support. |
51
+
| Name | JSON Type |[Internal Type][]| Required? | Description |
|`Amendments`| Array | Vector256 | No | Array of 256-bit [amendment IDs](../../../../concepts/networks-and-servers/amendments.md) for all currently enabled amendments. If omitted, there are no enabled amendments. |
54
+
|`Flags`| Number | UInt32 | Yes | A bit-map of boolean flags enabled for this object. Currently, the protocol defines no flags for `Amendments` objects. The value is always `0`. |
55
+
|`LedgerEntryType`| String | UInt16 | Yes | The value `0x0066`, mapped to the string `Amendments`, indicates that this object describes the status of amendments to the XRP Ledger. |
56
+
|`Majorities`| Array | STArray | No | Array of objects describing the status of amendments that have majority support but are not yet enabled. If omitted, there are no pending amendments with majority support. |
57
+
|`PreviousTxnID`| String | Hash256 | No | The identifying hash of the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
58
+
|`PreviousTxnLgrSeq`| Number | UInt32 | No | The [index of the ledger][Ledger Index] that contains the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
48
59
49
60
Each member of the `Majorities` field, if it is present, is an object with one field, `Majority`, whose contents are a nested object with the following fields:
@@ -78,9 +70,12 @@ In addition to the [common fields](../common-fields.md), {% code-page-name /%} e
78
70
|`Account`| String | AccountID | Yes | The address of the [special account](accountroot.md#special-amm-accountroot-entries) that holds this AMM's assets. |
79
71
|`AuctionSlot`| Object | STObject | No | Details of the current owner of the auction slot, as an [Auction Slot object](#auction-slot-object). |
80
72
|`LPTokenBalance`|[Currency Amount][]| Amount | Yes | The total outstanding balance of liquidity provider tokens from this AMM instance. The holders of these tokens can vote on the AMM's trading fee in proportion to their holdings, or redeem the tokens for a share of the AMM's assets which grows with the trading fees collected. |
73
+
|`PreviousTxnID`| String | Hash256 | No | The identifying hash of the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
74
+
|`PreviousTxnLgrSeq`| Number | UInt32 | No | The [index of the ledger][Ledger Index] that contains the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
81
75
|`TradingFee`| Number | UInt16 | Yes | The percentage fee to be charged for trades against this AMM instance, in units of 1/100,000. The maximum value is 1000, for a 1% fee. |
82
76
|`VoteSlots`| Array | STArray | No | A list of vote objects, representing votes on the pool's trading fee. |
83
77
78
+
84
79
### Auction Slot Object
85
80
86
81
The `AuctionSlot` field contains an object with the following nested fields:
@@ -90,18 +101,27 @@ There are three kinds of directory:
90
101
|`IndexNext`| Number | UInt64 | No | If this directory consists of multiple pages, this ID links to the next object in the chain, wrapping around at the end. |
91
102
|`IndexPrevious`| Number | UInt64 | No | If this directory consists of multiple pages, this ID links to the previous object in the chain, wrapping around at the beginning. |
92
103
|`LedgerEntryType`| String | UInt16 | Yes | The value `0x0064`, mapped to the string `DirectoryNode`, indicates that this object is part of a directory. |
93
-
|`NFTokenID`| String |Hash25| No |(NFT offer directories only) ID of the NFT in a buy or sell offer. |
104
+
|`NFTokenID`| String |Hash256| No |(NFT offer directories only) ID of the NFT in a buy or sell offer. |
94
105
|`Owner`| String | AccountID | No | (Owner directories only) The address of the account that owns the objects in this directory. |
106
+
|`PreviousTxnID`| String | Hash256 | No | The identifying hash of the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
107
+
|`PreviousTxnLgrSeq`| Number | UInt32 | No | The [index of the ledger][Ledger Index] that contains the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
95
108
|`RootIndex`| String | Hash256 | Yes | The ID of root object for this directory. |
96
109
|`TakerGetsCurrency`| String | Hash160 | No | (Offer directories only) The currency code of the `TakerGets` amount from the offers in this directory. |
97
110
|`TakerGetsIssuer`| String | Hash160 | No | (Offer directories only) The issuer of the `TakerGets` amount from the offers in this directory. |
98
-
|`TakerPaysCurrency`| String | Hash160 | No |(Offer directories only) The currency code of the `TakerPays` amount from the offers in this directory. |
111
+
|`TakerPaysCurrency`| String | Hash160 | No |(Offer directories only) The currency code of the `TakerPays` amount from the offers in this directory. |
99
112
|`TakerPaysIssuer`| String | Hash160 | No | (Offer directories only) The issuer of the `TakerPays` amount from the offers in this directory. |
100
113
101
114
102
115
## {% $frontmatter.seo.title %} Flags
103
116
104
-
There are no flags defined for {% code-page-name /%} entries.
117
+
{% code-page-name /%} entries can have the following values in the `Flags` field:
118
+
119
+
| Flag Name | Hex Value | Decimal Value | Description |
Copy file name to clipboardExpand all lines: docs/references/protocol/ledger-data/ledger-entry-types/feesettings.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ In addition to the [common fields](../common-fields.md), the {% code-page-name /
37
37
|`ReferenceFeeUnits`| Number | UInt32 | Yes | The `BaseFee` translated into "fee units". |
38
38
|`ReserveBase`| Number | UInt32 | Yes | The [base reserve](../../../../concepts/accounts/reserves.md#base-reserve-and-owner-reserve) for an account in the XRP Ledger, as drops of XRP. |
39
39
|`ReserveIncrement`| Number | UInt32 | Yes | The incremental [owner reserve](../../../../concepts/accounts/reserves.md#base-reserve-and-owner-reserve) for owning objects, as drops of XRP. |
40
+
|`PreviousTxnID`| String | Hash256 | No | The identifying hash of the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
41
+
|`PreviousTxnLgrSeq`| Number | UInt32 | No | The [index of the ledger][Ledger Index] that contains the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_|
40
42
41
43
{% admonition type="danger" name="Warning" %}The JSON format for this ledger entry type is unusual. The `BaseFee`, `ReserveBase`, and `ReserveIncrement` indicate drops of XRP but ***not*** in the usual format for [specifying XRP][Currency Amount].{% /admonition %}
0 commit comments