NKN Docs

NKN Docs

  • Docs
  • 文档
  • GitHub
  • NKN
  • Help

›Protocol

Home

  • Welcome
  • Get Started

API Reference

  • JsonRPC API Reference
  • Command Line Wallet

Protocol

  • NKN Session Protocol
  • NKN Client Address Scheme
  • NKN Wallet Address Scheme
  • NKN Wallet JSON Format (v2)
  • Serialization Scheme
  • Signature Chain
  • NKN D-Chat Message Scheme
  • NKN SDK resolver protocol
  • NKN Client Authorization

SDK

  • JavaScript SDK
  • Go SDK
  • iOS/Android SDK
  • Java SDK

nConnect

  • Overview
  • Get Started
  • Install nConnect Binary Release
  • Build nConnect from Source
  • nConnect Knowledge Base
  • nConnect over Tuna, Getting Faster
  • Remote Desktop
  • nConnect for NAS
  • nConnect FAQ

NKN D-Chat Message Scheme

struct Message

  • Fields
VariableTypeDescription
idStringrandom uuid
contentType*enumthe type of content. values are: text/image/audio/video/event[:custom_action]/customize, you can replace customize with any custom type. [:custom_action] is an option, you can change it as needed.
contentString(JSON)message content in json format
topicStringnull/''/undefined for PRIVATE chat, ${arbitrary identifier}.${64 length hex pubkey} for PRIVATE GROUP chat, else PUBLIC GROUP chat.
timestamplongdigital representation of time in milliseconds. for conversion to specific time in time zones around the world.
  • (*)Indicates that the definition has been modified.
  • (+)Indicates that the fields is newly added.
  • (-)Indicates that the fields has been removed.

Related

PRIVATE GROUP chat has a permission control, see NKP-0016.

← Signature ChainNKN SDK resolver protocol →
  • struct Message
  • Related
BowlerNKNTwitterGitHubForum
Copyright © 2023 NKN | All rights reserved