Apis service port is 6420
.
- Simple query apis
- Wallet apis
- Transaction apis
- Block apis
- Explorer apis
- Uxout apis
- Coin supply api
- Richlist api
- Addresscount api
- Log api
URI: /version
Method: GET
example:
curl http://127.0.0.1:6420/version
result:
{
"version": "0.20.0",
"commit": "cc733e9922d85c359f5f183d3a3a6e42c73ccb16"
}
URI: /balance
Method: GET
Args:
addrs: addresses
example:
curl http://127.0.0.1:6420/balance\?addrs\=7cpQ7t3PZZXvjTst8G7Uvs7XH4LeM8fBPD,nu7eSpT6hr5P21uzw7bnbxm83B6ywSjHdq
result:
{
"confirmed": {
"coins": 70000000,
"hours": 28052
},
"predicted": {
"coins": 9000000,
"hours": 8385
}
}
URI: /outputs
Method: GET
Args:
addrs // address list, joined with ","
hashes // hash list, joined with ","
example:
curl http://127.0.0.1:6420/outputs?addrs= 6dkVxyKFbFKg9Vdg6HPg1UANLByYRqkrdY
or
curl http://127.0.0.1:6420/outputs?hashes=7669ff7350d2c70a88093431a7b30d3e69dda2319dcb048aa80fa0d19e12ebe0
result:
{
"head_outputs": [
{
"hash": "7669ff7350d2c70a88093431a7b30d3e69dda2319dcb048aa80fa0d19e12ebe0",
"block_seq": 22,
"src_tx": "b51e1933f286c4f03d73e8966186bafb25f64053db8514327291e690ae8aafa5",
"address": "6dkVxyKFbFKg9Vdg6HPg1UANLByYRqkrdY",
"coins": "2.000000",
"hours": 633
},
],
"outgoing_outputs": [],
"incoming_outputs": []
}
URI: /wallet/newSeed
Method: GET
Args:
entropy: seed entropy [optional]
can either be 128 or 256; 128 = 12 word seed, 256 = 24 word seed
default: 128
example:
curl http://127.0.0.1:6420/wallet/newSeed
result:
{
"seed": "helmet van actor peanut differ icon trial glare member cancel marble rack"
}
URI: /wallet/create
Method: POST
Args:
seed: wallet seed [required]
label: wallet label [required]
scan: the number of addresses to scan ahead for balances [optional, must be > 0]
example:
curl http://127.0.0.1:6420/wallet/create -d "seed=$seed&label=$label&scan=5"
result:
{
"meta": {
"coin": "sky",
"filename": "2017_05_09_d554.wlt",
"label": "",
"lastSeed": "4795eaf6890c0ce1d67daf87d2f85523b1d19245a7a81a38c757fc4a7e3cae3e",
"seed": "dish slide planet night tape stick ask element title sound only typical",
"tm": "1494315855",
"type": "deterministic",
"version": "0.1"
},
"entries": [
{
"address": "y2JeYS4RS8L9GYM7UKdjLRyZanKHXumFoH",
"public_key": "0343581927c12d07582168d6092d06d0a8cefdef47541f804eae33faf027932245",
"secret_key": "6a7215780d7adf26cd697bd5186510f0ecb9e9a1c9d1e17d7f61d703e5087620"
}
]
}
URI: /wallet/newAddress
Method: POST
Args:
id: wallet file name
example:
curl -X POST http://127.0.0.1:6420/wallet/newAddress?id=2017_05_09_d554.wlt
result:
{
"address": "TDdQmMgbEVTwLe8EAiH2AoRc4SjoEFKrHB"
}
URI: /wallet/update
Method: POST
Args:
id: wallet file name
label: wallet label
example:
curl -X POST http://127.0.0.1:6420/wallet/update?id=$id&label=$label
result:
"success"
URI: /wallet/balance
Method: GET
Args:
id: wallet file name
example:
curl http://127.0.0.1:6420/wallet/balance?id=2017_05_09_d554.wlt
result:
{
"confirmed": {
"coins": 0,
"hours": 0
},
"predicted": {
"coins": 0,
"hours": 0
}
}
URI: /wallet/spend
Method: POST
Args:
id: wallet id
dst: recipient address
coins: number of coins to send, in droplets. 1 coin equals 1e6 droplets.
Response:
balance: new balance of the wallet
txn: spent transaction
error: an error that may have occured after broadcast the transaction to the network
if this field is not empty, the spend succeeded, but the response data could not be prepared
Statuses:
200: successful spend. NOTE: the response may include an "error" field. if this occurs, the spend succeeded
but the response data could not be prepared. The client should NOT spend again.
400: Invalid query params, wallet lacks enough coin hours, insufficient balance
404: wallet does not exist
500: other errors
example, send 1 coin to 2iVtHS5ye99Km5PonsB42No3pQRGEURmxyc
from wallet 2017_05_09_ea42.wlt
:
curl -X POST \
'http://127.0.0.1:6420/wallet/spend?id=2017_05_09_ea42.wlt&dst=2iVtHS5ye99Km5PonsB42No3pQRGEURmxyc&coins=1000000'
result:
{
"balance": {
"confirmed": {
"coins": 61000000,
"hours": 19667
},
"predicted": {
"coins": 61000000,
"hours": 19667
}
},
"txn": {
"length": 317,
"type": 0,
"txid": "89578005d8730fe1789288ee7dea036160a9bd43234fb673baa6abd91289a48b",
"inner_hash": "cac977eee019832245724aa643ceff451b9d8b24612b2f6a58177c79e8a4c26f",
"sigs": [
"3f084a0c750731dd985d3137200f9b5fc3de06069e62edea0cdd3a91d88e56b95aff5104a3e797ab4d6d417861af0c343efb0fff2e5ba9e7cf88ab714e10f38101",
"e9a8aa8860d189daf0b1dbfd2a4cc309fc0c7250fa81113aa7258f9603d19727793c1b7533131605db64752aeb9c1f4465198bb1d8dd597213d6406a0a81ed3701"
],
"inputs": [
"bb89d4ed40d0e6e3a82c12e70b01a4bc240d2cd4f252cfac88235abe61bd3ad0",
"170d6fd7be1d722a1969cb3f7d45cdf4d978129c3433915dbaf098d4f075bbfc"
],
"outputs": [
{
"uxid": "ec9cf2f6052bab24ec57847c72cfb377c06958a9e04a077d07b6dd5bf23ec106",
"dst": "nu7eSpT6hr5P21uzw7bnbxm83B6ywSjHdq",
"coins": "60.000000",
"hours": 2458
},
{
"uxid": "be40210601829ba8653bac1d6ecc4049955d97fb490a48c310fd912280422bd9",
"dst": "2iVtHS5ye99Km5PonsB42No3pQRGEURmxyc",
"coins": "1.000000",
"hours": 2458
}
]
},
"error": ""
}
URI: /pendingTxs
Method: GET
example:
curl http://127.0.0.1:6420/pendingTxs
result:
[
{
"transaction": {
"length": 317,
"type": 0,
"txid": "89578005d8730fe1789288ee7dea036160a9bd43234fb673baa6abd91289a48b",
"inner_hash": "cac977eee019832245724aa643ceff451b9d8b24612b2f6a58177c79e8a4c26f",
"sigs": [
"3f084a0c750731dd985d3137200f9b5fc3de06069e62edea0cdd3a91d88e56b95aff5104a3e797ab4d6d417861af0c343efb0fff2e5ba9e7cf88ab714e10f38101",
"e9a8aa8860d189daf0b1dbfd2a4cc309fc0c7250fa81113aa7258f9603d19727793c1b7533131605db64752aeb9c1f4465198bb1d8dd597213d6406a0a81ed3701"
],
"inputs": [
"bb89d4ed40d0e6e3a82c12e70b01a4bc240d2cd4f252cfac88235abe61bd3ad0",
"170d6fd7be1d722a1969cb3f7d45cdf4d978129c3433915dbaf098d4f075bbfc"
],
"outputs": [
{
"uxid": "ec9cf2f6052bab24ec57847c72cfb377c06958a9e04a077d07b6dd5bf23ec106",
"dst": "nu7eSpT6hr5P21uzw7bnbxm83B6ywSjHdq",
"coins": "60.000000",
"hours": 2458
},
{
"uxid": "be40210601829ba8653bac1d6ecc4049955d97fb490a48c310fd912280422bd9",
"dst": "2iVtHS5ye99Km5PonsB42No3pQRGEURmxyc",
"coins": "1.000000",
"hours": 2458
}
]
},
"received": "2017-05-09T10:11:57.14303834+02:00",
"checked": "2017-05-09T10:19:58.801315452+02:00",
"announced": "0001-01-01T00:00:00Z",
"is_valid": true
}
]
URI: /transaction
Method: GET
Args:
txid: transaction id
example:
curl http://127.0.0.1:6420/transaction?txid=a6446654829a4a844add9f181949d12f8291fdd2c0fcb22200361e90e814e2d3
result:
{
"status": {
"confirmed": true,
"unconfirmed": false,
"height": 1,
"block_seq": 1178,
"unknown": false
},
"txn": {
"length": 183,
"type": 0,
"txid": "a6446654829a4a844add9f181949d12f8291fdd2c0fcb22200361e90e814e2d3",
"inner_hash": "075f255d42ddd2fb228fe488b8b468526810db7a144aeed1fd091e3fd404626e",
"timestamp": 1494275231,
"sigs": [
"9b6fae9a70a42464dda089c943fafbf7bae8b8402e6bf4e4077553206eebc2ed4f7630bb1bd92505131cca5bf8bd82a44477ef53058e1995411bdbf1f5dfad1f00"
],
"inputs": [
"5287f390628909dd8c25fad0feb37859c0c1ddcf90da0c040c837c89fefd9191"
],
"outputs": [
{
"uxid": "70fa9dfb887f9ef55beb4e960f60e4703c56f98201acecf2cad729f5d7e84690",
"dst": "7cpQ7t3PZZXvjTst8G7Uvs7XH4LeM8fBPD",
"coins": "8.000000",
"hours": 931
}
]
}
}
URI: /rawtx
Method: GET
example:
curl http://127.0.0.1:6420/rawtx?txid=a6446654829a4a844add9f181949d12f8291fdd2c0fcb22200361e90e814e2d3
result:
"
b700000000075f255d42ddd2fb228fe488b8b468526810db7a144aeed1fd091e3fd404626e010000009b6fae9a70a42464dda089c943fafbf7bae8b8402e6bf4e4077553206eebc2ed4f7630bb1bd92505131cca5bf8bd82a44477ef53058e1995411bdbf1f5dfad1f00010000005287f390628909dd8c25fad0feb37859c0c1ddcf90da0c040c837c89fefd9191010000000010722f061aa262381dce35193d43eceb112373c300127a0000000000a303000000000000"
URI: /injectTransaction
Method: POST
Content-Type: application/json
Body: {
"rawtx":"raw transaction"
}
example:
curl -X POST http://127.0.0.1:6420/injectTransaction -H 'content-type: application/json' -d '{
"rawtx":"dc0000000008b507528697b11340f5a3fcccbff031c487bad59d26c2bdaea0cd8a0199a1720100000017f36c9d8bce784df96a2d6848f1b7a8f5c890986846b7c53489eb310090b91143c98fd233830055b5959f60030b3ca08d95f22f6b96ba8c20e548d62b342b5e0001000000ec9cf2f6052bab24ec57847c72cfb377c06958a9e04a077d07b6dd5bf23ec106020000000072116096fe2207d857d18565e848b403807cd825c044840300000000330100000000000000575e472f8c5295e8fa644e9bc5e06ec10351c65f40420f000000000066020000000000000"
}'
result:
"3615fc23cc12a5cb9190878a2151d1cf54129ff0cd90e5fc4f4e7debebad6868"
URI: /blockchain/progress
Method: GET
example:
curl http://127.0.0.1:6420/blockchain/progress
result:
{
"current": 2760,
"highest": 2760,
"peers": [
{
"address": "35.157.164.126:6000",
"height": 2760
},
{
"address": "63.142.253.76:6000",
"height": 2760
},
]
}
URI: /block
Method: GET
Args:
hash // get block by hash
seq // get block by sequence number
curl http://127.0.0.1:6420/block?hash=6eafd13ab6823223b714246b32c984b56e0043412950faf17defdbb2cbf3fe30
or
curl http://127.0.0.1:6420/block?seq=2760
result:
{
{
"header": {
"seq": 2760,
"block_hash": "6eafd13ab6823223b714246b32c984b56e0043412950faf17defdbb2cbf3fe30",
"previous_block_hash": "eaccd527ef263573c29000dbfb3c782ee175153c63f42abb671588b7071e877f",
"timestamp": 1504220821,
"fee": 196130,
"version": 0,
"tx_body_hash": "825ae95b81ae0ce037cdf9f1cda138bac3f3ed41c51b09e0befb71848e0f3bfd"
},
"body": {
"txns": [
{
"length": 220,
"type": 0,
"txid": "825ae95b81ae0ce037cdf9f1cda138bac3f3ed41c51b09e0befb71848e0f3bfd",
"inner_hash": "312e5dd55e06be5f9a0ee43a00d447f2fea47a7f1fb9669ecb477d2768ab04fd",
"sigs": [
"f0d0eb337e3440af6e8f0c105037ec205f36c83770d26a9e3a0fb4b7ec1a2be64764f4e31cbaf6629933c971613d10d58e6acb592704a7d511f19836441f09fb00"
],
"inputs": [
"e7594379c9a6bb111205cbfa6fac908cac1d136e207960eb0429f15fde09ac8c"
],
"outputs": [
{
"uxid": "840d0ee483c1dc085e6518e1928c68979af61188b809fc74da9fca982e6a61ba",
"dst": "2GgFvqoyk9RjwVzj8tqfcXVXB4orBwoc9qv",
"coins": "998.000000",
"hours": 35390
},
{
"uxid": "38177c437ff42f29dc8d682e2f7c278f2203b6b02f42b1a88f9eb6c2392a7f70",
"dst": "2YHKP9yH7baLvkum3U6HCBiJjnAUCLS5Z9U",
"coins": "2.000000",
"hours": 70780
}
]
}
]
}
}
}
URI: /blocks
Method: GET
Args:
start // start seq
end // end seq
example:
curl http://127.0.0.1:6420/blocks?start=1&end=2
result:
{
"blocks": [
{
"header": {
"seq": 100,
"block_hash": "725e76907998485d367a847b0fb49f08536c592247762279fcdbd9907fee5607",
"previous_block_hash": "5c06896760ace71b02edab01700ff9ca8c32ef1d647e14c3e0d5fa751e47867e",
"timestamp": 1429274636,
"fee": 613712,
"version": 0,
"tx_body_hash": "9f20b52befed2cbaaa4a066de7119b7fdbff09a83d8e2a82628671f51f3f6551"
},
"body": {
"txns": [
{
"length": 183,
"type": 0,
"txid": "9f20b52befed2cbaaa4a066de7119b7fdbff09a83d8e2a82628671f51f3f6551",
"inner_hash": "c2e60dbb6ad5095985d21391cbeb679fd0787c4a20471340d63f8de437d915df",
"sigs": [
"2fefd2da9d3b4af87c4157f87da0b1bf82e3d6c9f6427572bd768cf85900d15d36971ffa17eb3b486f7692584102a7a58d9fb3ef57fa24d9a4ab02eba811ef4f00"
],
"inputs": [
"aee4af7e06c24bccc2f87b16d0708bfea68ac1b420f97914965f4a23ad9e11d6"
],
"outputs": [
{
"uxid": "194cc596d2beda803d8142ddc455872082f84b09a5edd8085082b60d314c1e29",
"dst": "qxmeHkwgAMfwXyaQrwv9jq3qt228xMuoT5",
"coins": "23000.000000",
"hours": 87673
}
]
}
]
}
},
{
"header": {
"seq": 101,
"block_hash": "8156057fc823589288f66c91edb60c11ff004465bcbe3a402b1328be7f0d6ce0",
"previous_block_hash": "725e76907998485d367a847b0fb49f08536c592247762279fcdbd9907fee5607",
"timestamp": 1429274666,
"fee": 720335,
"version": 0,
"tx_body_hash": "e8fe5290afba3933389fd5860dca2cbcc81821028be9c65d0bb7cf4e8d2c4c18"
},
"body": {
"txns": [
{
"length": 183,
"type": 0,
"txid": "e8fe5290afba3933389fd5860dca2cbcc81821028be9c65d0bb7cf4e8d2c4c18",
"inner_hash": "45da31b68748eafdb08ef8bf1ebd1c07c0f14fcb0d66759d6cf4642adc956d06",
"sigs": [
"09bce2c888ceceeb19999005cceb1efdee254cacb60edee118b51ffd740ff6503a8f9cbd60a16c7581bfd64f7529b649d0ecc8adbe913686da97fe8c6543189001"
],
"inputs": [
"6002f3afc7054c0e1161bcf2b4c1d4d1009440751bc1fe806e0eae33291399f4"
],
"outputs": [
{
"uxid": "f9bffdcbe252acb1c3a8a1e8c99829342ba1963860d5692eebaeb9bcfbcaf274",
"dst": "R6aHqKWSQfvpdo2fGSrq4F1RYXkBWR9HHJ",
"coins": "27000.000000",
"hours": 102905
}
]
}
]
}
}
]
}
URI: /last_blocks
Method: GET
Args: num
example:
curl http://127.0.0.1:6420/last_blocks?num=2
result:
{
"blocks": [
{
"header": {
"seq": 2759,
"block_hash": "eaccd527ef263573c29000dbfb3c782ee175153c63f42abb671588b7071e877f",
"previous_block_hash": "ae92e2b3fa12786243c20b5eb94833dfa80919443d676839911571429aad1ba9",
"timestamp": 1504211831,
"fee": 332560,
"version": 0,
"tx_body_hash": "9c5f95902e57b303954ea760df96ff933b6df2b58b58097085ed5fa9fa8a1480"
},
"body": {
"txns": [
{
"length": 317,
"type": 0,
"txid": "9c5f95902e57b303954ea760df96ff933b6df2b58b58097085ed5fa9fa8a1480",
"inner_hash": "9baaf1956aa0cca3e5e4e9d6c247228a99dc718ff507b9b6734bf584479463e5",
"sigs": [
"44e6a0c30b3f55974ff4dccb0f19929ae9f56b2615fce673e37918dd2abb946c2dc6ad3d05aa3b35df35387e90182eed3813d3fd02669449d8bda9a18a4735a201",
"323dfe3c89b8357511483f9faae13ecae23b6f8078a6a475301292799f520c440ebf650cc0795505fcd17ff4bd276c23156c04a39fe1ba23dac0f0e7c1907bee01"
],
"inputs": [
"aa6a295c7197e4660c2e0c26d8dfab4f68d65c3acdb5f611d70f9781abd3c004",
"bdf3a268e177bbc6c4333c7d585ddf30b8fb123667255f90669956c3e61cda9c"
],
"outputs": [
{
"uxid": "448c87cdebfa8ae92f009b961463f650bf23dfc696a381e81d0c64bafebe7847",
"dst": "B9UG4KLggfX9MNcVuMJPm11XXNDU5vkRcY",
"coins": "500.000000",
"hours": 55426
},
{
"uxid": "018b4132ad1f110619ff98074f36028cee082992feb824e5409f013cf61c048c",
"dst": "uTHMcHr3YSEwv3M2ne9B1KfoyVkRwyDYF9",
"coins": "350.000000",
"hours": 55426
}
]
}
]
}
},
{
"header": {
"seq": 2760,
"block_hash": "6eafd13ab6823223b714246b32c984b56e0043412950faf17defdbb2cbf3fe30",
"previous_block_hash": "eaccd527ef263573c29000dbfb3c782ee175153c63f42abb671588b7071e877f",
"timestamp": 1504220821,
"fee": 196130,
"version": 0,
"tx_body_hash": "825ae95b81ae0ce037cdf9f1cda138bac3f3ed41c51b09e0befb71848e0f3bfd"
},
"body": {
"txns": [
{
"length": 220,
"type": 0,
"txid": "825ae95b81ae0ce037cdf9f1cda138bac3f3ed41c51b09e0befb71848e0f3bfd",
"inner_hash": "312e5dd55e06be5f9a0ee43a00d447f2fea47a7f1fb9669ecb477d2768ab04fd",
"sigs": [
"f0d0eb337e3440af6e8f0c105037ec205f36c83770d26a9e3a0fb4b7ec1a2be64764f4e31cbaf6629933c971613d10d58e6acb592704a7d511f19836441f09fb00"
],
"inputs": [
"e7594379c9a6bb111205cbfa6fac908cac1d136e207960eb0429f15fde09ac8c"
],
"outputs": [
{
"uxid": "840d0ee483c1dc085e6518e1928c68979af61188b809fc74da9fca982e6a61ba",
"dst": "2GgFvqoyk9RjwVzj8tqfcXVXB4orBwoc9qv",
"coins": "998.000000",
"hours": 35390
},
{
"uxid": "38177c437ff42f29dc8d682e2f7c278f2203b6b02f42b1a88f9eb6c2392a7f70",
"dst": "2YHKP9yH7baLvkum3U6HCBiJjnAUCLS5Z9U",
"coins": "2.000000",
"hours": 70780
}
]
}
]
}
}
]
}
URI: /explorer/address
Method: GET
Args: address
example:
curl http://127.0.0.1:6420/explorer/address
result:
[
{
"status": {
"confirmed": true,
"unconfirmed": false,
"height": 208,
"block_seq": 2556,
"unknown": false
},
"length": 183,
"type": 0,
"txid": "b51e1933f286c4f03d73e8966186bafb25f64053db8514327291e690ae8aafa5",
"inner_hash": "028f5570bf2725cb76877bb3c4b8dca1620b374a9e55a060a2872d3a87e2da4e",
"timestamp": 1502936862,
"sigs": [
"6e91ef4211be5cd9647a67a175e2c19808f3b6965a2349f5932a385d06bb1db61bbd445396692cd72e6313fb38705deda818a0609236691980829dc86676de3101"
],
"inputs": [
{
"uxid": "8b64d9b058e10472b9457fd2d05a1d89cbbbd78ce1d97b16587d43379271bed1",
"owner": "c9zyTYwgR4n89KyzknpmGaaDarUCPEs9mV"
}
],
"outputs": [
{
"uxid": "7669ff7350d2c70a88093431a7b30d3e69dda2319dcb048aa80fa0d19e12ebe0",
"dst": "6dkVxyKFbFKg9Vdg6HPg1UANLByYRqkrdY",
"coins": "2.000000",
"hours": 633
}
]
}
]
URI: /uxout
Method: GET
Args: uxid
example:
curl http://127.0.0.1:6420/uxout?uxid=8b64d9b058e10472b9457fd2d05a1d89cbbbd78ce1d97b16587d43379271bed1
result:
{
"uxid": "8b64d9b058e10472b9457fd2d05a1d89cbbbd78ce1d97b16587d43379271bed1",
"time": 1502870712,
"src_block_seq": 2545,
"src_tx": "ded9e671510ab300a4ea3ee126fe8e2d50b995021e2db4589c6fb4ac000fe7bb",
"owner_address": "c9zyTYwgR4n89KyzknpmGaaDarUCPEs9mV",
"coins": 2000000,
"hours": 5039,
"spent_block_seq": 2556,
"spent_tx": "b51e1933f286c4f03d73e8966186bafb25f64053db8514327291e690ae8aafa5"
}
URI: /address_uxouts
Method: GET
Args: address
example:
curl http://127.0.0.1:6420/address_uxouts?address=
result:
[
{
"uxid": "7669ff7350d2c70a88093431a7b30d3e69dda2319dcb048aa80fa0d19e12ebe0",
"time": 1502936862,
"src_block_seq": 2556,
"src_tx": "b51e1933f286c4f03d73e8966186bafb25f64053db8514327291e690ae8aafa5",
"owner_address": "6dkVxyKFbFKg9Vdg6HPg1UANLByYRqkrdY",
"coins": 2000000,
"hours": 633,
"spent_block_seq": 0,
"spent_tx": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
URI: /coinSupply
Method: GET
example:
curl http://127.0.0.1:6420/coinSupply
result:
{
"current_supply": "5847530.000000",
"total_supply": "30000000.000000",
"max_supply": "100000000.000000",
"unlocked_distribution_addresses": [
"R6aHqKWSQfvpdo2fGSrq4F1RYXkBWR9HHJ",
"2EYM4WFHe4Dgz6kjAdUkM6Etep7ruz2ia6h",
"25aGyzypSA3T9K6rgPUv1ouR13efNPtWP5m",
"ix44h3cojvN6nqGcdpy62X7Rw6Ahnr3Thk",
"AYV8KEBEAPCg8a59cHgqHMqYHP9nVgQDyW",
"2Nu5Jv5Wp3RYGJU1EkjWFFHnebxMx1GjfkF",
"2THDupTBEo7UqB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wd",
"2bJ32KuGmjmwKyAtzWdLFpXNM6t83CCPLq5",
"2fi8oLC9zfVVGnzzQtu3Y3rffS65Hiz6QHo",
"TKD93RxFr2Am44TntLiJQus4qcEwTtvEEQ",
"zMDywYdGEDtTSvWnCyc3qsYHWwj9ogws74",
"25NbotTka7TwtbXUpSCQD8RMgHKspyDubXJ",
"2ayCELBERubQWH5QxUr3cTxrYpidvUAzsSw",
"RMTCwLiYDKEAiJu5ekHL1NQ8UKHi5ozCPg",
"ejJjiCwp86ykmFr5iTJ8LxQXJ2wJPTYmkm"
]
}
URI: /richlist
Method: GET
Args:
n: top N addresses, [default 20, returns all if <= 0].
include-distribution: include distribution addresses or not, default false.
example:
curl "http://127.0.0.1:6420/richlist?n=4&include-distribution=true"
result:
[
{
"address": "zMDywYdGEDtTSvWnCyc3qsYHWwj9ogws74",
"coins": "1000000.000000",
"locked": true
},
{
"address": "z6CJZfYLvmd41GRVE8HASjRcy5hqbpHZvE",
"coins": "1000000.000000",
"locked": true
},
{
"address": "wyQVmno9aBJZmQ99nDSLoYWwp7YDJCWsrH",
"coins": "1000000.000000",
"locked": true
},
{
"address": "tBaeg9zE2sgmw5ZQENaPPYd6jfwpVpGTzS",
"coins": "1000000.000000",
"locked": true
}
]
URI: /addresscount
Method: GET
example:
curl "http://127.0.0.1:6420/addresscount"
result:
{
"count": 10103
}
URI: /logs
Method: GET
Args:
lines: how many lines to return,It is 1000 by default.
include: the word which must be included in log line.It's empty by default.
exclude: the word which must not be included in log line.It's empty by default.
example:
curl http://127.0.0.1:6420/logs?lines=1000
result:
[
"[skycoin.gui:INFO] Starting web interface on http://127.0.0.1:6420",
"[skycoin.gui:WARNING] HTTPS not in use!",
"[skycoin.gui:INFO] Web resources directory: /Users/hanyouhong/go/src/github.com/skycoin/skycoin/src/gui/static/dist",
"[skycoin.webrpc:INFO] Start webrpc on http://127.0.0.1:6430",
"[skycoin.visor:INFO] Blockchain parser start",
"[skycoin.daemon:INFO] Connect to trusted peers",
"[skycoin.daemon:INFO] daemon.Pool listening on port 6000",
"[skycoin.gnet:INFO] Listening for connections on :6000...",
"[skycoin.daemon:DEBUG] Trying to connect to 121.41.103.148:6000",
"[skycoin.daemon:DEBUG] Trying to connect to 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Trying to connect to 47.88.33.156:6000",
"[skycoin.daemon:DEBUG] Trying to connect to 118.178.135.93:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 118.178.135.93:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 121.41.103.148:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 47.88.33.156:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 120.77.69.188:6000",
"[skycoin.daemon:INFO] Connected to peer: 121.41.103.148:6000 (outgoing)",
"[skycoin.daemon:DEBUG] Sending introduction message to 121.41.103.148:6000, mirror:1033754283",
"[skycoin.daemon:INFO] Connected to peer: 118.178.135.93:6000 (outgoing)",
"[skycoin.daemon:DEBUG] Sending introduction message to 118.178.135.93:6000, mirror:1033754283",
"[skycoin.daemon:INFO] Connected to peer: 120.77.69.188:6000 (outgoing)",
"[skycoin.daemon:DEBUG] Sending introduction message to 120.77.69.188:6000, mirror:1033754283",
"[skycoin.gnet:DEBUG] connection 118.178.135.93:6000 closed",
"[skycoin.daemon:INFO] 118.178.135.93:6000 disconnected because: read data failed: EOF",
"[skycoin.gnet:DEBUG] connection 121.41.103.148:6000 closed",
"[skycoin.daemon:INFO] 121.41.103.148:6000 disconnected because: read data failed: EOF",
"[skycoin.daemon:INFO] 120.77.69.188:6000 verified for version 2",
"[skycoin.pex:DEBUG] Reset retry times of 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Successfully requested blocks from 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Got 0 blocks since 4082",
"[skycoin.main:INFO] Launching System Browser with http://127.0.0.1:6420",
"[skycoin.daemon:CRITICAL] Added new block 4078",
"[skycoin.daemon:CRITICAL] Added new block 4079",
"[skycoin.daemon:CRITICAL] Added new block 4080",
"[skycoin.daemon:CRITICAL] Added new block 4081",
"[skycoin.daemon:CRITICAL] Added new block 4082"
]
curl http://127.0.0.1:6420/logs?lines=100&include=DEBUG
result:
[
"[skycoin.daemon:DEBUG] Trying to connect to 118.178.135.93:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 118.178.135.93:6000",
"[skycoin.daemon:DEBUG] Trying to connect to 121.41.103.148:6000",
"[skycoin.daemon:DEBUG] Trying to connect to 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Trying to connect to 47.88.33.156:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 47.88.33.156:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 121.41.103.148:6000",
"[skycoin.gnet:DEBUG] Making TCP Connection to 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Sending introduction message to 121.41.103.148:6000, mirror:1023099266",
"[skycoin.daemon:DEBUG] Sending introduction message to 118.178.135.93:6000, mirror:1023099266",
"[skycoin.daemon:DEBUG] Sending introduction message to 120.77.69.188:6000, mirror:1023099266",
"[skycoin.pex:DEBUG] Reset retry times of 121.41.103.148:6000",
"[skycoin.gnet:DEBUG] connection 121.41.103.148:6000 closed",
"[skycoin.gnet:DEBUG] connection 118.178.135.93:6000 closed",
"[skycoin.pex:DEBUG] Reset retry times of 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Successfully requested blocks from 120.77.69.188:6000",
"[skycoin.daemon:DEBUG] Got 0 blocks since 4083",
"[skycoin.daemon:DEBUG] Sending introduction message to 47.88.33.156:6000, mirror:1023099266",
"[skycoin.pex:DEBUG] Reset retry times of 47.88.33.156:6000",
"[skycoin.daemon:DEBUG] Successfully requested blocks from 47.88.33.156:6000",
"[skycoin.daemon:DEBUG] Got 0 blocks since 4083"
]
curl http://127.0.0.1:6420/logs?lines=100&include=DEBUG&exclude=ping
result:
[
"[skycoin.pex:DEBUG] Increase retry times of 111.198.225.50:6000: 1",
"[skycoin.daemon:DEBUG] Failed to connect to 91.105.75.60:6000 with error: dial tcp 91.105.75.60:6000: i/o timeout",
"[skycoin.pex:DEBUG] Increase retry times of 91.105.75.60:6000: 1",
"[skycoin.daemon:DEBUG] Received pong from 117.48.197.46:6000",
"[skycoin.daemon:DEBUG] Received pong from 176.9.47.13:6000",
"[skycoin.daemon:DEBUG] Received pong from 139.162.33.154:6000",
"[skycoin.daemon:DEBUG] Reply to ping from 197.97.221.117:6000",
"[skycoin.daemon:DEBUG] Received pong from 197.97.221.117:6000",
"[skycoin.daemon:DEBUG] Received pong from 118.190.40.103:6000",
"[skycoin.daemon:DEBUG] Received pong from 47.88.33.156:6000",
"[skycoin.daemon:DEBUG] Received pong from 35.157.164.126:6000",
"[skycoin.daemon:DEBUG] Received pong from 178.62.225.38:6000",
"[skycoin.daemon:DEBUG] Received pong from 45.32.235.85:6000",
]