identityOffer

suspend fun identityOffer(call: ApplicationCall)

Generates credential offer(s) for the given identity and record.

Request format:

{
"token": "...",
"scope": "...", // record type (or "core")
"instance": "...", // record instance (ignored for "core")
"tx_kind": "...", // transaction code kind
"tx_prompt": "..." // transaction code prompt
}

Credential offer is generated for all credential types that reference the given scope.

Response:

[
{
credential_id: "...",
display: { ... }, // openid4vci display structure
offer: "...", // credential offer url
tx_code: "..." // generated transaction code if any
},
...
]