Function: useIssuer()
typescript
1
useIssuer(): AgentContextType & object
Defined in: hooks/index.ts:325
Hook for accessing credential issuance context and operations.
Provides functionality for creating and issuing verifiable credentials to holders. This hook must be used within an IssuerProvider and requires a running agent.
Returns
Issuer context containing:
agent
: Current Agent instance or null if not runningstart
: Async function to start the agent for issuing operationsstop
: Async function to stop the agentstate
: Current agent state stringcreateOOBOffer
: Create out-of-band credential offer for holdersissueCredential
: Issue a verifiable credential to a specific holder
Throws
When used outside of IssuerProvider