mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
24 lines
468 B
Plaintext
24 lines
468 B
Plaintext
## getFee
|
|
|
|
`getFee(): Promise<string>`
|
|
|
|
Returns the estimated transaction fee for the rippled server the RippleAPI instance is connected to.
|
|
|
|
### Parameters
|
|
|
|
This method has no parameters.
|
|
|
|
### Return Value
|
|
|
|
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
|
|
|
|
```javascript
|
|
return api.getFee().then(fee => {/* ... */});
|
|
```
|
|
|
|
```json
|
|
"0.012"
|
|
```
|