DID

Step 1. Check if the address has a DID.

DidListResponse getResponse = request.getDidList(node,address);

Parameters:

Returns:

DidListResponse:

Step 2. Choose DID or log in with an wallet address

Use the address for login when the interface array is empty; otherwise, use the first element of the array as the DID parameter.

PreloginResponse postResponse = request.prelogin(node, preloginRequest.toString());

Parameters:

Returns:

PreloginResponse:

3. Sign the return value in step 2.

LoginResponse loginResponse = request.didlogin(node, loginRequest.toString());

Parameters:

LoginRequest:

IdentifierModel type:

Returns:

LoginResponse:

Last updated