get Chain Top User Transactions
open suspend override fun getChainTopUserTransactions(limit: Int): Result<GetChainTopUserTransactionsQuery.Data?, AptosIndexerError>
Queries the indexer for the top user transactions by gas unit.
Usage
val resolution = aptos.getChainTopUserTransactions(limit = 5)
when (resolution) {
is Result.Ok -> {
val data = resolution.value
println("Retrieved top user transactions data: $data")
}
is Result.Err -> {
println("Error querying transactions: ${resolution.error.message}")
}
}Content copied to clipboard
Return
A Result which is either Result.Ok containing the query data, or Result.Err containing an AptosIndexerError.
Parameters
limit
The number of transactions to return.