Add Service Endpoint
This tutorial explains how to add service endpoints to a DID registered with InfraDID.
Before you begin
Before you begin, Make sure you have the following:
Adding Service Endpoints to InfraDID
To make a list of service endpoints available for a specific DID and store it on the chain, making it public for others to inspect the Document of a specific DID, follow these steps:
Visit the InfraBlockchain Explorer and follow the steps below.
Go to
Developer
-Extrinsic
and select theaddServices
extrinsic of thedidModule
palette.Configure it as shown below and trigger the extrinsic:
Removing Service Endpoints from InfraDID
To remove service endpoints from InfraDID, follow these steps:
Visit the InfraBlockchain Explorer and follow the steps below.
Go to
Developer
-Extrinsic
and select theremoveServices
extrinsic of thedidModule
palette.Configure it as shown below and trigger the extrinsic:
Adding and Removing Service Endpoints from InfraDID Using the infra-did-js
Library
infra-did-js
LibraryTo add and remove service endpoints from InfraDID using the infra-did-js
library:
Install the
infra-did-js
library.Write code to set up the basic configuration code for accessing InfraDID chain, as shown below:
Write code to add service endpoints to InfraDID:
Alternatively, write code to remove service endpoints from InfraDID:
Last updated