sendAndStore

abstract suspend fun sendAndStore(accessToken: String, vct: String, batchSize: Int = 1, settings: WalletCreateDocumentSettings = WalletCreateDocumentSettings()): IssuedDocumentHandle

Runs issuance end-to-end and stores the resulting credential in the wallet.

The returned IssuedDocumentHandle follows the same enrichment rules as storeIssuedDocument: if trusted type metadata registries are configured, the SDK attempts to fetch and cache VCT metadata plus localized rendered SVG templates for later reuse.


abstract suspend fun sendAndStore(accessToken: String, requests: List<CredentialIssuanceRequest>, authenticate: suspend () -> Boolean): List<IssuedDocumentHandle>

Issues multiple credential types in a single operation under one user-verification prompt.

All key pairs are created first; then authenticate is invoked exactly once (mint the Keystore time-window auth token), and every credential's proof is signed within that window — no per-credential prompt. Use this to issue, e.g., an identity credential and a one-time-use pack together with a single prompt.

Requires the credential keys to use a window timeout (userAuthenticationRequired = true, timeout > 0); per-use keys are not supported here. Returns one IssuedDocumentHandle per request, in order.