Beruflich Dokumente
Kultur Dokumente
1. Introduction
2. Agreement
2.1 Protocol
HTTP protocol
UTF-8
Input: restful
Download:
Unpack:
start node:
4. Configuration Instructions
The description regarding the RPC interface in the following chapter is only
limited to node of NULS to exchange, for SDK and the other interface
definition, see NULS Document for Interface and NULS Document for SDK
Interface.
Access path:http://{server.ip}:{server.port}/api/xxxxx
request
Content-Type:application/json
parameter:
“success”: true,
“data”:{……} //jsonObject
“success”:false,
“data”: {
“code”:”ACT500”,
“message”:”xxxxx…….”
outputJson: {
lockTime: long, --Lock time. For details, please see Data definition in
5.3.2.
Transaction input:inputJson
inputJson: {
Transaction:txJson
txJson: {
outputs:[{outputJson},{outputJson},……]
Block Header:blockHeaderJson
blockHeaderJson: {
}
Account:accountJson
accountJson: {
outputJson.lockTime
lockTime = 0, //available
URL /block/header/height/{height}
Type get
URL /block/header/hash/{hash}
Type get
URL /block/height/{height}
Type get
Output “data”: {
{blockJson},
URL /block/hash/{hash}
Type get
Output “data”: {
{blockJson},
“txList”: [{txJson},{txJson}, ……]
URL /block/newest
Type get
Input none
URL /block/newest/height
Type get
Input none
URL /block/newest/hash
Type get
Input none
Output “data”: {“value”: blockHash, String}
URL /account
Type post
default.
account is blank. It is
the account.
Output “data”: {
“list”: [
address2, String
……
}
5.4.9 Query balance of account
URL /account/balance/{address}
Type get
Output “data”: {
Function Query only the private key from local created or imported
account
URL /account/prikey/{address}
Type post
Output “data”: {
}
5.4.11 Set password
Function set a password for the account without any password before
URL /account/password/{address}
Type post
Output “data”: {
URL /account/password/{address}
Type put
Output “data”: {
}
5.4.13 Transfer transaction
Function transfer
URL /accountledger/transfer/
Type post
account
transferred
account
output “data”: {
wallet)
URL /account/offline
Type post
created,
count: [1,100]
encrypted
Output “data”: {
“list”:[ {accountJson},……]
URL /account/offline/password
Type post
account
Output “data”: {
}
5.4.16 Reset password of offline account (offline mode)
URL /account/offline/password
Type put
private key
Output “data”: {
Type post
output
e.g.
"inputs": [
"fromHash": "002023c66d10cf9047db35ff9c921a2ec22……",
"fromIndex": 4
],
"outputs": [
"address": "2CjPVMKST7h4Q5Dqa8Q9P9CwYSmN7mG",
"lockTime": 0,
"value": 1000000
},
"address": "2CXJEuoXZMajeTEgL6TgiSxTRRMwiMM",
"lockTime": 0,
"value": 999999998000000
],
}
“data”:{
URL /accountledger/transaction/sign
Type post
Output “data”:{
URL /accountledger/transaction/broadcast
Type post
Output “data”:{
Disadvantages:
node wallet.
1. RPC interface
batches while stored in local database. Accounts created in this way will
server
Disadvantages:
6.2.1 Deposit
6.2.2 Withdraw
Transfer transaction
new block. After 12-36 heights are confirmed, the exchange will
accounts.
KB.
If the fee is less than the reasonable range, the transaction will be
transaction fee with node verify while calculating the minimum amount
7. Others
blockchain and the version 1.0 only provides basic interfaces for
address and transaction creation as well as other issues that are closely