Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.52 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.52 KB

KRYPTON

KRYPTON is a Smart Contract and ecosystem to provide SIP registration on the NEO blockchain using a KRYPTON compatible SIP provider. With KRYPTON you can decentralize SIP trunking and provide real-time payments per call. As a bonus feature NEO users can call and message each other directly on their public address.

Return

KRYPTON.live public web-service

The public web-service will provide as a marketplace where users and providers will connect. We are still in a very early stage of developing the web-service.

API

The API provides a REST API to query the KRYPTON.live smart contract back-end.

Installation

Designed to be working in the following environment:

  • Ubuntu Linux 16.04 LTS
  • NodeJS 8.9.1
  • NPM 5.5.1
git clone https://github.com/MediaServe/KRYPTON.git
cd KRYPTON/KRYPTON.live/api/
npm install
cp config.js.example config.js
nodejs index.js

The API is designed to run in the background, you may use GNU Screen for example, behind a HTTP proxy like Apache2 or nginx.

Usage

Query the API to get real-time information from the smart contract storage back-end.

Basic usage of the API (result is a JSON object):

https://krypton.live/api/query/TYPE/USER
  • query The function to be triggered, with additional parameters
    • query/TYPE/USER Query a user on the network
      • type Query the user uuid, location or provider value
      • user The public NEO address of the user

Example: https://krypton.live/api/query/location/AGs7dP8tX1KgjXopLELdmZed85GnEkFPRh