Skip to main content

OnChainResolver class

OnChainIssuer is a class that allows to interact with the onchain contract and build the revocation status.

OnChainIssuer

Signature:

export declare class OnChainResolver implements CredentialStatusResolver 

Implements: CredentialStatusResolver

Constructors

ConstructorModifiersDescription
(constructor)(_configs)Creates an instance of OnChainIssuer.

Methods

MethodModifiersDescription
getRevocationOnChain(credentialStatus, issuer)Gets partial revocation status info from onchain issuer contract.
networkByChainId(chainId)
parseOnChainId(id)Parse credentialStatus id to get contractAddress, chainId and revocationNonce
resolve(credentialStatus, credentialStatusResolveOptions)resolve is a method to resolve a credential status from the blockchain.