get Indexer Last Success Version
Queries the indexer for the last ledger version it has successfully processed.
This is useful for checking if the indexer is up-to-date with the fullnodes.
Usage
val resolution = aptos.getIndexerLastSuccessVersion()
when (resolution) {
is Result.Ok -> {
val version = resolution.value
println("Indexer is synced to version: $version")
}
is Result.Err -> {
println("Error querying indexer status: ${resolution.error.message}")
}
}Content copied to clipboard
Return
A Result which is either Result.Ok containing the last indexed version as a Long, or Result.Err containing an AptosIndexerError.