mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-09 07:15:48 +00:00
27 lines
499 B
Plaintext
27 lines
499 B
Plaintext
## getLedgerVersion
|
|
|
|
`getLedgerVersion(): Promise<number>`
|
|
|
|
Returns the most recent validated ledger version number known to the connected server.
|
|
|
|
### Parameters
|
|
|
|
This method has no parameters.
|
|
|
|
### Return Value
|
|
|
|
This method returns a promise that resolves with a positive integer representing the most recent validated ledger version number known to the connected server.
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
return api.getLedgerVersion().then(ledgerVersion => {
|
|
/* ... */
|
|
});
|
|
```
|
|
|
|
```json
|
|
16869039
|
|
```
|
|
|