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
1
$ git clone https://github.com/ontio/ontology.git
Copied!
Or
1
$ go get github.com/ontio/ontology
Copied!
Use the third-party package management tool glide to manage the dependent libraries
1
$ cd $GOPATH/src/github.com/ontio/ontology
2
$ glide install
Copied!
Compile source code with make
1
$ make
Copied!
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

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
1
$ ./ontology account add -d
2
Use default setting '-t ecdsa -b 256 -s SHA256withECDSA'
3
signature algorithm: ecdsa
4
curve: P-256
5
signature scheme: SHA256withECDSA
6
Password:
7
Re-enter Password:
8
9
Index: 1
10
Label:
11
Address: AWVNFw74G8Sx9vcxGbmh4gT54ayuwb3bcm
12
Public key: 02c17cd91acf618d497f65f1fc4f52de7952c8b2337883f898dda887953cd29dd7
13
Signature scheme: SHA256withECDSA
14
15
Create account successfully.
Copied!

Directory Structure

1
$ tree
2
└── ontology
3
├── ontology
4
└── wallet.dat
Copied!
Last modified 1yr ago