API

Introduction

It's very important that you set the the header Accept to application/json or append .json to your URL.

Otherwise the system will return an HTML response.

Main Net

Returns the Main Net status.

Example with extension:

https://nosoexplorer.yz317.com/api/v1/mainnet.json

Example using cURL:

$ curl \
-H 'Accept: application/json' \
"https://nosoexplorer.yz317.com/api/v1/mainnet"

Resturns:

{
    "code": 200,
    "message": "Ok",
    "mainnet": {
        "lastBlock": 13236,
        "pending": 6,
        "supply": 67210390730000,
        "lastBlockHash": "564E0BA10FA265FEBFCB51AF9310A940",
        "headersHash": "235E6AF9B671E1AA3A8B7D25604FD4B4",
        "summaryHash": "2861856B17FCAC8E4A4157E5C24ECB20"
    }
}

Block

Returns a block on the blockchain.

Example with extension:

https://nosoexplorer.yz317.com/api/v1/block/666.json

Example using cURL:

$ curl \
-H 'Accept: application/json' \
"https://nosoexplorer.yz317.com/api/v1/block/666"

Resturns:

{
  "code": 200,
  "message": "Ok",
  "block": {
    "number": 666,
    "timeStart": 1615539692,
    "timeEnd": 1615540374,
    "timeTotal": 682,
    "last20": 587,
    "totalTransactions": 0,
    "difficulty": 84,
    "target": "F6FCE7108",
    "solution": "!!!!!!!!!530887901{...};!!!651726821!!!!\";!!!65",
    "lastBlockHash": "F6FCE71081EB7A05133A2F7214582FAA",
    "nextDifficulty": 84,
    "miner": "NEgcLA1epRw5HgbBGNFiWCLMMWmSCX",
    "feesPaid": 0,
    "reward": 5000000000,
    "hash": "780E4A7F9D5AAA1E94E2CFCECA2D9500"
  }
}

Errors:

{
  "code": 400,
  "message": "Need to provide a block"
}
{
  "code": 404,
  "message": "Need to provide a valid block"
}

Block Orders

Returns the orders contained in a block of the blockchain.

Example with extension:

https://nosoexplorer.yz317.com/api/v1/blockorders/12000.json

Example using cURL:

$ curl \
-H 'Accept: application/json' \
"https://nosoexplorer.yz317.com/api/v1/blockorders/12000"

Resturns:

{
  "code": 200,
  "message": "Ok",
  "block": 12000,
  "orders": [
    {
      "orderID": "OR3w6l3g3i349eaaqkra8gmcxg0du92jxc7t0y5otp7hsjyxb5b2",
      "block": 12000,
      "pending": false,
      "type": "TRFR",
      "transfers": 1,
      "timestamp": 1622839520,
      "reference": "POOLPAYMENT_DevNosoEU",
      "receiver": "N264UuquNSAUb2EaUis9Znxb6SteKES",
      "fee": 74201,
      "amount": 742018885
    },
    {
      "orderID": "OR51win5vx6b5zpqcqqzvh01liv3vixyxkn8my79796x2yiuj32w",
      "block": 12000,
      "pending": false,
      "type": "TRFR",
      "transfers": 1,
      "timestamp": 1622839520,
      "reference": "POOLPAYMENT_DevNosoEU",
      "receiver": "N3zL5pbJoYwJ28dRhuZGo5pmzL7xcFd",
      "fee": 66713,
      "amount": 667131643
    },
    {
      "orderID": "OR522sxqg2vy4dql4178prt22epupmb37s7bxsrc8t0b55bhd31w",
      "block": 12000,
      "pending": false,
      "type": "TRFR",
      "transfers": 1,
      "timestamp": 1622839520,
      "reference": "POOLPAYMENT_DevNosoEU",
      "receiver": "N2KLx886FLbZMMhFqHAFrgxKqxXvWEF",
      "fee": 23768,
      "amount": 237688938
    }
  ]
}

Errors:

{
  "code": 400,
  "message": "Need to provide a block"
}
{
  "code": 404,
  "message": "Need to provide a valid block"
}

Order

Returns an order on the blockchain.

Example with extension:

https://nosoexplorer.yz317.com/api/v1/order/OR3w6l3g3i349eaaqkra8gmcxg0du92jxc7t0y5otp7hsjyxb5b2.json

Example using cURL:

$ curl \
-H 'Accept: application/json' \
"https://nosoexplorer.yz317.com/api/v1/order/OR3w6l3g3i349eaaqkra8gmcxg0du92jxc7t0y5otp7hsjyxb5b2"

Resturns:

{
  "code": 200,
  "message": "Ok",
  "order": {
    "orderID": "OR3w6l3g3i349eaaqkra8gmcxg0du92jxc7t0y5otp7hsjyxb5b2",
    "block": 12000,
    "pending": false,
    "type": "TRFR",
    "transfers": 1,
    "timestamp": 1622839520,
    "reference": "POOLPAYMENT_DevNosoEU",
    "receiver": "N264UuquNSAUb2EaUis9Znxb6SteKES",
    "fee": 74201,
    "amount": 742018885
  }
}

Errors:

{
  "code": 400,
  "message": "Need to provide an order"
}
{
  "code": 404,
  "message": "Need to provide a valid order"
}

Address

Returns an address on the blockchain.

Example with extension:

https://nosoexplorer.yz317.com/api/v1/address/N2RKVvyf254FFSR7BZgduCkNEbzizE2.json

Example using cURL:

$ curl \
-H 'Accept: application/json' \
"https://nosoexplorer.yz317.com/api/v1/address/N2RKVvyf254FFSR7BZgduCkNEbzizE2"

Resturns:

{
  "code": 200,
  "message": "Ok",
  "address": {
    "address": "N2RKVvyf254FFSR7BZgduCkNEbzizE2",
    "alias": "",
    "balance": 70856219430,
    "incoming": 0,
    "outgoing": 6343695395
  }
}

Errors:

{
  "code": 400,
  "message": "Need to provide an address"
}
{
  "code": 404,
  "message": "Need to provide a valid address"
}
备案号:苏ICP备19014705号-1 苏公网安备32061202001077号