aries / net.globalid.aries.features.issuecredential / CredentialService / createCredentialRequest

createCredentialRequest

abstract fun createCredentialRequest(agent: Agent, recordId: String): Single<Pair<SentRequest, CredentialRequestMessage>>

Creates a credential request from a CredentialRecord with the given ID. The record can be in the "sent request" (recreate the request) or "received offer" state (create the request and transition to "sent request" state).

Parameters

agent - to create the request for.

recordId - is the ID of a CredentialRecord to create the request from.

Return
Single of a Pair of CredentialRecord.SentRequest (the existing or updated record) and CredentialRequestMessage (the created request message).