Exchange API
For cryptocurrency and data exchange platforms

Ontology Exchange Docking Document

There are two kinds of assets that are part of the Ontology system: native assets and contract assets.
Native assets are ONT and ONG. Upon integration with exchange platforms they are enabled to process exchange and redeeming of these tokens.

Deploying a Synchronization Node

There are two ways to deploy Ontology synchronization nodes:

Get from source code

Clone ontology repository to $GOPATH/src/github.com/ontio directory
$ git clone https://github.com/ontio/ontology.git
Or
$ go get github.com/ontio/ontology
Use the third-party package management tool glide to manage the dependent libraries
$ cd $GOPATH/src/github.com/ontio/ontology
$ glide install
Compile source code with make
$ make
An executable program will be generated after a successful compilation (using make all command will generate sig server under 'tools' directory )
  • ontology: Node program/node control program provided by command line

Get from release

​release page​

Server deployment

  1. 1.
    Create wallet(not mandatory for sync node)
Create the wallet file wallet.dat that is required for nodes running through the CLI
$ ./ontology account add -d
Use default setting '-t ecdsa -b 256 -s SHA256withECDSA'
signature algorithm: ecdsa
curve: P-256
signature scheme: SHA256withECDSA
Password:
Re-enter Password:
​
Index: 1
Label:
Address: AWVNFw74G8Sx9vcxGbmh4gT54ayuwb3bcm
Public key: 02c17cd91acf618d497f65f1fc4f52de7952c8b2337883f898dda887953cd29dd7
Signature scheme: SHA256withECDSA
​
Create account successfully.
​

Directory Structure

$ tree
└── ontology
├── ontology
└── wallet.dat