SendingNetwork
  • OVERVIEW
    • Getting Started
    • FAQs
  • Network Instructional Articles
    • Basics
      • Introducing the Edge, WatchDog, and Guardian Nodes
      • Overview
      • Messaging Solution
      • Privacy Solution
      • Rich Communication Solution
      • Multi-Platform Solution
      • Decentralized Identity
      • Multiple Chat Modes
      • How It Works
      • Token Utility
      • The Team
    • Key Concepts
      • Decentralized Identity
      • Social Graphs
      • Edge Node
  • SDK Documentation
    • Glossary
    • JavaScript client SDK
      • DID
      • User
      • Message
      • Room
      • Contact
      • Social Graph
    • iOS client SDK
      • Push
      • DID
      • User
      • Message
      • Room
      • Contact
    • Android client SDK
      • User
      • Room
    • Java SDK
      • DID
      • Room
      • Message
    • Node.js SDK
      • DID
      • Room
      • Message
    • Unreal SDK
      • DID
      • User
      • Message
      • Room
    • Unity SDK
      • DID
      • Room
      • Message
    • Website chat widget SDK
      • Customization
      • DID
      • User
      • Room
      • Message
      • Other
    • Bot SDKs
      • Golang Bot SDK
        • DID
        • User
        • Room
        • Message
    • Extensible Message Interface
    • Push Notifications
    • Flutter SDK
      • DID
      • User
      • Message
      • Room
    • PHP SDK
      • DID
      • Room
      • User
    • Developer Key
  • Acquisition Kit
    • Social Boost Development Instructions
  • WatchDog Agent
    • WatchDog Agent Guide
    • WatchDog Agent Deployment Tutorial
      • Linux Deployment Tutorial
    • One-Click Deployment
  • Edge Node
    • Edge Node Deployment Tutorial
    • VPS Setup Guide
      • Google Cloud Platform (GCP)
      • Amazon Web Services (AWS)
      • Contabo
    • Check Node Stats with Auto-Reply Bot in SendingMe App
    • Alpha-3 Testnet FAQs
  • delegation node
    • Delegation Node Deployment Tutorial
  • Private Delegation Node
  • Use Cases
    • Wallet-to-Wallet Messaging
    • Dapp Notifications
    • Identity Verification
    • Gamer Acquisition
    • Cross-platform Trading
Powered by GitBook
On this page
  • Step 1. Check if the address has a DID.
  • Step 2. Choose DID or log in with an wallet address
  • 3. Sign the return value in step 2.
  1. SDK Documentation
  2. Unreal SDK

DID

Step 1. Check if the address has a DID.

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

Parameters:

Name
Type
Description
Required

node

string

edge node url

true

address

string

wallet address

True

Returns:

DidListResponse:

Name
Type
Description
Required

Array

string array

a list of DID(s)

true

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:

Name
Type
Description
Required

did

string

DID string,DID or address

False

address

string

wallet address, DID or address

False

node

string

edge node url

True

Returns:

PreloginResponse:

Name
Type
Description
Required

did

string

DID (existed or newly created)

true

message

string

message to be signed

true

updated

string

update time

true

3. Sign the return value in step 2.

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

Parameters:

LoginRequest:

Name
Type
Description
Required

type

string

login type(current value is m.login.did.identity)

true

updated

string

time returned by pre_login updated

true

identifier

IdentifierModel

login information

true

device_id

string

device id, not required for new device

false

IdentifierModel type:

Name
Type
Description

did

string

DID

token

string

sign the returned message from pre_login, and encode with base16. The signing method is to sign directly using a private key: You can directly call the web3Sign() in the DID class for signing.

Returns:

LoginResponse:

Name
Type
Description
Required

access_token

string

access token

true

user_id

string

user id

true

device_id

string

device id

true

PreviousUnreal SDKNextUser

Last updated 1 year ago