get Processor Status
abstract suspend fun getProcessorStatus(processorType: ProcessorType): Result<GetProcessorStatusQuery.Data?, AptosIndexerError>
Queries the status of a specific indexer processor.
Usage
val resolution = aptos.getProcessorStatus(ProcessorType.ACCOUNT_TRANSACTION_PROCESSOR)
when (resolution) {
is Result.Ok -> {
val data = resolution.value
println("Processor status data: $data")
}
is Result.Err -> {
println("Error querying processor status: ${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
processor Type
The processor type to query.