The polygon resolver library is used for resolving DID’s in Polygon Method Space. The module is supposed to be used as an integeration to polygon library.
npm install
In combination with the DID-Resolver:
import { resolveDID } from "polygon-did-resolver";
const didDocument = await resolveDID(did, privateKey, url?, contractAddress?);
The function returns a DID Document.
For testing use the command
npm run test