Skip to content

Commit 7bf2da6

Browse files
author
Alan Cohen
committed
getFee returns a string not float
> api.connect().then(() => api.getFee().then(fee => console.log(typeof fee))); > string
1 parent 7eae3ce commit 7bf2da6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ This method has no parameters.
740740

741741
### Return Value
742742

743-
This method returns a promise that resolves with a floating point value representing the estimated fee to submit a transaction, expressed in XRP.
743+
This method returns a promise that resolves with a string encoded floating point value representing the estimated fee to submit a transaction, expressed in XRP.
744744

745745
### Example
746746

@@ -749,7 +749,7 @@ return api.getFee().then(fee => {/* ... */});
749749
```
750750

751751
```json
752-
0.012
752+
"0.012"
753753
```
754754

755755
## getLedgerVersion

docs/src/getFee.md.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This method has no parameters.
1010

1111
### Return Value
1212

13-
This method returns a promise that resolves with a floating point value representing the estimated fee to submit a transaction, expressed in XRP.
13+
This method returns a promise that resolves with a string encoded floating point value representing the estimated fee to submit a transaction, expressed in XRP.
1414

1515
### Example
1616

@@ -19,5 +19,5 @@ return api.getFee().then(fee => {/* ... */});
1919
```
2020

2121
```json
22-
0.012
22+
"0.012"
2323
```

0 commit comments

Comments
 (0)