diff --git a/bindings/wasm/docs/api-reference.md b/bindings/wasm/docs/api-reference.md
index 84ebb8eb0c..94ce0f3385 100644
--- a/bindings/wasm/docs/api-reference.md
+++ b/bindings/wasm/docs/api-reference.md
@@ -1414,7 +1414,7 @@ E.g. https://explorer.iota.org/mainnet/identity-resolver/{did}
| Param | Type |
| --- | --- |
-| did | string
|
+| did | [DID
](#DID) \| string
|
diff --git a/bindings/wasm/examples/src/create_did.js b/bindings/wasm/examples/src/create_did.js
index c127d2e05a..ad71b2f2bf 100644
--- a/bindings/wasm/examples/src/create_did.js
+++ b/bindings/wasm/examples/src/create_did.js
@@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
import {Client, Config, Document, KeyPair, KeyType} from '@iota/identity-wasm';
-import {logExplorerUrl, logResolverUrl} from './utils';
/**
This example shows a basic introduction on how to create a basic DID Document and upload it to the Tangle.
@@ -32,8 +31,8 @@ async function createIdentity(clientConfig) {
const receipt = await client.publishDocument(doc);
// Log the results.
- logExplorerUrl("DID Document Transaction:", clientConfig.explorer, receipt.messageId);
- logResolverUrl("Explore the DID Document:", clientConfig.explorer, doc.id.toString());
+ console.log(`DID Document Transaction: ${clientConfig.explorer.messageUrl(receipt.messageId)}`);
+ console.log(`Explore the DID Document: ${clientConfig.explorer.resolverUrl(doc.id)}`);
// Return the results.
return {key, doc, receipt};
diff --git a/bindings/wasm/examples/src/diff_chain.js b/bindings/wasm/examples/src/diff_chain.js
index e25973b224..954d80748d 100644
--- a/bindings/wasm/examples/src/diff_chain.js
+++ b/bindings/wasm/examples/src/diff_chain.js
@@ -3,7 +3,6 @@
import {Client, Config, Document, Service, Timestamp} from '@iota/identity-wasm';
import {createIdentity} from "./create_did";
-import {logExplorerUrl, logResolverUrl} from "./utils";
/**
This example is a basic introduction to creating a diff message and publishing it to the tangle.
@@ -44,8 +43,8 @@ async function createDiff(clientConfig) {
// Publish diff to the Tangle
const diffReceipt = await client.publishDiff(receipt.messageId, diff);
console.log(diffReceipt);
- logExplorerUrl("Diff Chain Transaction:", clientConfig.explorer, diffReceipt.messageId);
- logResolverUrl("Explore the DID Document:", clientConfig.explorer, doc.id.toString());
+ console.log(`Diff Chain Transaction: ${clientConfig.explorer.messageUrl(diffReceipt.messageId)}`);
+ console.log(`Explore the DID Document: ${clientConfig.explorer.resolverUrl(doc.id)}`);
return {updatedDoc, key, diffMessageId: diffReceipt.messageId};
}
diff --git a/bindings/wasm/examples/src/index.html b/bindings/wasm/examples/src/index.html
index d63620ad1b..b379ad2f52 100644
--- a/bindings/wasm/examples/src/index.html
+++ b/bindings/wasm/examples/src/index.html
@@ -71,6 +71,6 @@