PostRequestOptions

data class PostRequestOptions<T>(val aptosConfig: AptosConfig, var type: AptosApiType, val originMethod: String, val path: String, val contentType: MimeType = MimeType.JSON, val acceptType: MimeType = MimeType.JSON, val params: Map<String, Any?>? = null, var body: T? = null, val overrides: ClientConfig? = null) : RequestOptions

Constructors

Link copied to clipboard
constructor(aptosConfig: AptosConfig, type: AptosApiType, originMethod: String, path: String, contentType: MimeType = MimeType.JSON, acceptType: MimeType = MimeType.JSON, params: Map<String, Any?>? = null, body: T? = null, overrides: ClientConfig? = null)

Properties

Link copied to clipboard
open override val acceptType: MimeType

The accepted content type of the response of the API

Link copied to clipboard
open override val aptosConfig: AptosConfig

The config for the API client

Link copied to clipboard
var body: T?

The body of the request, should match the content type of the request

Link copied to clipboard
open override val contentType: MimeType

The content type of the request body

Link copied to clipboard
open override val originMethod: String

The name of the API method

Link copied to clipboard
open override val overrides: ClientConfig? = null

Specific client overrides for this request to override aptosConfig

Link copied to clipboard
open override val params: Map<String, Any?>? = null

The query parameters for the request

Link copied to clipboard
open override val path: String

The URL path to the API method

Link copied to clipboard

The type of API endpoint to call e.g. fullnode, indexer, etc