Resolving Name

The Resolver function facilitates the forward and reverse resolution of User DIDs and wallet addresses. It acts as a bridge between the user-friendly naming systems and the native crypto wallet addresses.

Here are some examples:

const { resolver } = new CommunitiesID(options);
await resolver.resolveName('a.did')
await resolver.lookupAddress('0x123')

For DIDs not associated with CID, the Resolver can map to domains of ENS or Space ID. This ensures compatibility with multiple DID systems without the need to integrate multiple DID service provider SDKs.

This functionality is only supported on mainnet. Besides, to resolve name from CID, you should pass Biance and Arbitrum RPC

For more details, please refer to API doc.

Last updated