GenerateWithEnclaveApiRequest

data class GenerateWithEnclaveApiRequest(val usePreGenerated: Boolean, val metadataStr: String)

Request body for the Enclave MPC API POST /v1/generate endpoint when opting into the pre-generated wallet pool.

Constructors

Link copied to clipboard
constructor(usePreGenerated: Boolean, metadataStr: String)

Properties

Link copied to clipboard
@SerializedName(value = "metadataStr")
val metadataStr: String

The same MPC metadata JSON string we send to the binary.

Link copied to clipboard
@SerializedName(value = "usePreGenerated")
val usePreGenerated: Boolean

When true, the API attempts to claim a pre-generated wallet, falling back to on-the-fly generation server-side when the pool is unavailable.