mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
getFee returns a string not float
> api.connect().then(() => api.getFee().then(fee => console.log(typeof fee))); > string
This commit is contained in:
@@ -740,7 +740,7 @@ This method has no parameters.
|
|||||||
|
|
||||||
### Return Value
|
### Return Value
|
||||||
|
|
||||||
This method returns a promise that resolves with a floating point value representing the estimated fee to submit a transaction, expressed in XRP.
|
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.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@@ -749,7 +749,7 @@ return api.getFee().then(fee => {/* ... */});
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
0.012
|
"0.012"
|
||||||
```
|
```
|
||||||
|
|
||||||
## getLedgerVersion
|
## getLedgerVersion
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ This method has no parameters.
|
|||||||
|
|
||||||
### Return Value
|
### Return Value
|
||||||
|
|
||||||
This method returns a promise that resolves with a floating point value representing the estimated fee to submit a transaction, expressed in XRP.
|
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.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@@ -19,5 +19,5 @@ return api.getFee().then(fee => {/* ... */});
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
0.012
|
"0.012"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user