Constructors
new ContractMetadataService()
new ContractMetadataService(Initializes a new instance of the ContractMetadataService.chain):ContractMetadataService
Parameters
Returns
ContractMetadataService
Defined in
verifiableCredentialsSDK/presentation/contractMetadata.ts:20Properties
Methods
getContractMetadata()
getContractMetadata(Retrieves metadata for a given contract.contractAddress):Promise<any>
Parameters
Returns
Promise<any>
The metadata object or null if the contractURI call returns null.
Throws
Will throw an error if the retrieval process fails.Defined in
verifiableCredentialsSDK/presentation/contractMetadata.ts:31getContractsWithCredentialMetadata()
getContractsWithCredentialMetadata(Retrieves metadata for multiple contracts and filters those that are verifiable credentials collections.collections):Promise<CredentialsCollection[]>
Parameters
Returns
Promise<CredentialsCollection[]>
A promise that resolves to an array of collections with valid verifiable credential metadata.

