Package-level declarations

Types

Link copied to clipboard
actual class ClientConfig
actual class ClientConfig
expect class ClientConfig
actual class ClientConfig

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

A high-level generic function to execute a GET request against an Aptos FullNode.

Link copied to clipboard
fun getClient(clientConfig: ClientConfig): HttpClient
Link copied to clipboard
fun getGraphqlClient(config: AptosConfig): ApolloClient
Link copied to clipboard
actual fun httpClient(clientConfig: ClientConfig): HttpClient
actual fun httpClient(clientConfig: ClientConfig): HttpClient
expect fun httpClient(clientConfig: ClientConfig): HttpClient

Create a new Ktor client with the given configuration.

actual fun httpClient(clientConfig: ClientConfig): HttpClient

Create a new Ktor client with the given configuration.

Link copied to clipboard

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

Submits a request to the Aptos Faucet.

Link copied to clipboard
Link copied to clipboard

A convenience wrapper for postAptosFullNode that only returns the deserialized data on success.

Link copied to clipboard
suspend fun responseFitCheck(aptosResponse: AptosResponse): Result<AptosResponse, AptosSdkError>

Checks an HTTP response, returning a Result that is either the successful response or a structured error.