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

getCredentials

abstract fun getCredentials(agent: Agent, query: SearchQuery, count: Int): Single<List<CredentialRecord>>

Retrieves a list of CredentialRecord items for the given search criteria from the agent's wallet.

Parameters

agent - to list the records for.

query - to filter records using WQL.

count - the number of items to return, 100 by default

Return
the list of retrieved CredentialRecord instances

abstract fun getCredentials(agent: Agent): Single<List<CredentialRecord>>

Retrieves a list of CredentialRecord items without any query conditions with max size 100 from the agent's wallet.

Parameters

agent - to list the records for.

Return
the list of retrieved CredentialRecord instances