getCredentialNFTFromLocator(Retrieves a Verifiable Credential NFT from a locator. This function performs the following steps:locator
):Promise
<object
>
Parameter | Type | Description |
---|---|---|
locator | string | The locator string of the credential, formatted as “chain:contractAddress:tokenId” (e.g., “polygon:0x1B887669437644aA348c518844660ef8d63bd643:1”). |
Promise
<object
>
An object containing:
collection
: The collection that the NFT belongs to, including the credential metadata.nft
: The NFT with its metadata.
collection: CredentialsCollection
nft:NftWithMetadata
=vcNft