Package-level declarations
Functions
Link copied to clipboard
suspend fun get(options: RequestOptions.AptosRequestOptions, apiType: AptosApiType = AptosApiType.FULLNODE): Result<AptosResponse, AptosSdkError>
Executes a GET request to an Aptos API endpoint using a configurable Ktor client.
Link copied to clipboard
inline suspend fun <T> getAptosFullNode(options: RequestOptions.GetAptosRequestOptions): Result<T, AptosSdkError>
A high-level generic function to execute a GET request against an Aptos FullNode.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getPageWithObfuscatedCursor(options: RequestOptions.GetAptosRequestOptions): Result<Pair<AptosResponse, String?>, AptosSdkError>
Link copied to clipboard
Create a new Ktor client with the given configuration.
Create a new Ktor client with the given configuration.
Link copied to clipboard
inline suspend fun <T> paginateWithCursor(options: RequestOptions.AptosRequestOptions): Result<List<T>, AptosSdkError>
Fetches and aggregates all pages of a paginated API resource using a cursor.
Link copied to clipboard
inline suspend fun <V> post(options: RequestOptions.PostRequestOptions<V>): Result<AptosResponse, AptosSdkError>
Link copied to clipboard
inline suspend fun <T> postAptosFaucet(options: RequestOptions.PostAptosRequestOptions<T>): Result<FaucetResponse, AptosSdkError>
Submits a request to the Aptos Faucet.
Link copied to clipboard
inline suspend fun <T, V> postAptosFullNode(options: RequestOptions.PostAptosRequestOptions<V>): Result<Pair<AptosResponse, T>, AptosSdkError>
Link copied to clipboard
inline suspend fun <T, V> postAptosFullNodeAndGetData(options: RequestOptions.PostAptosRequestOptions<V>): Result<T, AptosSdkError>
A convenience wrapper for postAptosFullNode that only returns the deserialized data on success.
Link copied to clipboard
Checks an HTTP response, returning a Result that is either the successful response or a structured error.