Skip to content

Commit 8fc4d8f

Browse files
committed
respond to comments
1 parent c68bc53 commit 8fc4d8f

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

docs/references/protocol/ledger-data/ledger-entry-types/feesettings.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@ The `FeeSettings` entry contains the current base [transaction cost](../../../..
1111

1212
## Example {% $frontmatter.seo.title %} JSON
1313

14+
This ledger entry has two formats, depending on whether the [XRPFees amendment][] was enabled at the time:
15+
16+
{% tabs %}
17+
{% tab label="Current Format" %}
18+
```json
19+
{
20+
"BaseFeeDrops": "10",
21+
"Flags": 0,
22+
"LedgerEntryType": "FeeSettings",
23+
"PreviousTxnID": "4EEDB01BB943CE32E97BB468AC179ABF933B272D6FF990E76B6721FB48E069FC",
24+
"PreviousTxnLgrSeq": 92508417,
25+
"ReserveBaseDrops": "1000000",
26+
"ReserveIncrementDrops": "200000",
27+
"index": "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651"
28+
}
29+
```
30+
{% /tab %}
31+
32+
{% tab label="Legacy Format" %}
1433
```json
1534
{
1635
"BaseFee": "000000000000000A",
@@ -22,11 +41,17 @@ The `FeeSettings` entry contains the current base [transaction cost](../../../..
2241
"index": "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651"
2342
}
2443
```
44+
{% /tab %}
45+
{% /tabs %}
2546

2647
## {% $frontmatter.seo.title %} Fields
2748

2849
In addition to the [common fields](../common-fields.md), the {% code-page-name /%} ledger entry has the following fields:
2950

51+
The fields of a SetFee pseudo-transaction depend on whether the [XRPFees amendment][] was enabled at the time. In addition to the [common fields](./pseudo-transaction-types.md), they can use the following:
52+
53+
{% tabs %}
54+
{% tab label="Current Format" %}
3055
| Name | JSON Type | [Internal Type][] | Required? | Description |
3156
|:------------------------|:----------|:------------------|:----------|:-----------------------|
3257
| `BaseFeeDrops` | String | Amount | Yes | The [transaction cost](../../../../concepts/transactions/transaction-cost.md) of the "reference transaction" in drops of XRP. |
@@ -35,7 +60,25 @@ In addition to the [common fields](../common-fields.md), the {% code-page-name /
3560
| `ReserveBaseDrops` | String | Amount | Yes | The [base reserve](../../../../concepts/accounts/reserves.md#base-reserve-and-owner-reserve) for an account in the XRP Ledger, as drops of XRP. |
3661
| `ReserveIncrementDrops` | String | Amount | Yes | The incremental [owner reserve](../../../../concepts/accounts/reserves.md#base-reserve-and-owner-reserve) for owning objects, as drops of XRP. |
3762
| `PreviousTxnID` | String | UInt256 | No | The identifying hash of the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_ |
38-
| `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]
63+
| `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][].)_ |
64+
{% /tab %}
65+
66+
{% tab label="Legacy Format" %}
67+
| Name | JSON Type | [Internal Type][] | Required? | Description |
68+
|:--------------------|:----------|:------------------|:----------|:-----------------------|
69+
| `BaseFee` | String | UInt64 | Yes | The [transaction cost](../../../../concepts/transactions/transaction-cost.md) of the "reference transaction" in drops of XRP as hexadecimal. |
70+
| `Flags` | Number | UInt32 | Yes | A bit-map of boolean flags enabled for this object. Currently, the protocol defines no flags for `FeeSettings` objects. The value is always `0`. |
71+
| `LedgerEntryType` | String | UInt16 | Yes | The value `0x0073`, mapped to the string `FeeSettings`, indicates that this object contains the ledger's fee settings. |
72+
| `ReferenceFeeUnits` | Number | UInt32 | Yes | The `BaseFee` translated into "fee units". |
73+
| `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. |
74+
| `ReserveIncrement` | Number | UInt32 | Yes | The incremental [owner reserve](../../../../concepts/accounts/reserves.md#base-reserve-and-owner-reserve) for owning objects, as drops of XRP. |
75+
| `PreviousTxnID` | String | UInt256 | No | The identifying hash of the transaction that most recently modified this entry. _(Added by the [fixPreviousTxnID amendment][].)_ |
76+
| `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][].)_ |
77+
78+
{% 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 %}
79+
80+
{% /tab %}
81+
{% /tabs %}
3982

4083

4184
## {% $frontmatter.seo.title %} Flags

0 commit comments

Comments
 (0)