CRONSCAN API

API Endpoint
https://explorer.cron.global

Main API for accessing data from the explorer. All data is provided through GET requests in /api/main_net/v1.

API v1

Get address transactions summary

GET /api/main_net/v1/get_address_abstracts/address/page
Responses200400
Body
{
  "errors": [
    "page is not a valid integer",
    "address is not a valid base58"
  ]
}

Get address transactions summary
GET/api/main_net/v1/get_address_abstracts/{address}/{page}

Returns transaction summary an address from its hash, paginated

URI Parameters
HideShow
address
string (required) 

base 58 address

page
integer (required) 

page


Get address pair transactions summary

GET /api/main_net/v1/get_address_to_address_abstracts/address1/address2/page
Responses200400
Body
{
  "total_pages": 1,
  "total_entries": 2,
  "page_size": 15,
  "page_number": 1,
  "entries": [
    {
      "txid": "0bac8b2c497d44f9ba0ed2d8882bc4b1dfec37da7b81d65f672e610093a9fb8f",
      "time": 1549007461,
      "block_height": 674,
      "asset": "01289fc3654e619e32b1c96a70f631ac656bb055fbf8af42e961ac334110b17e",
      "amount": "5",
      "address_to": "DVYpgajwvSCBgz6gqikaumacZvkdgBpFPVrbyw7Lw4ec",
      "address_from": "GXPgd1MBDrb5u6FxiQV5FJssU7LxRHdwUkYC1zJe2GXo"
    },
    {
      "txid": "0fc5c8c4f33522c48c8540f1c515523d125b5a16f4f9640dc81d418ab817fa6f",
      "time": 1549007461,
      "block_height": 658,
      "asset": "01289fc3654e619e32b1c96a70f631ac656bb055fbf8af42e961ac334110b17e",
      "amount": "5",
      "address_to": "GXPgd1MBDrb5u6FxiQV5FJssU7LxRHdwUkYC1zJe2GXo",
      "address_from": "DVYpgajwvSCBgz6gqikaumacZvkdgBpFPVrbyw7Lw4ec"
    }
  ]
}

Get address pair transactions summary
GET/api/main_net/v1/get_address_to_address_abstracts/{address1}/{address2}/{page}

Returns transaction summary between two address from their hash, paginated

URI Parameters
HideShow
address1
string (required) 

base 58 address

address2
string (required) 

base 58 address

page
integer (required) 

page


Get all cron nodes

GET /api/main_net/v1/get_all_nodes
Responses200
Body
[
  {
    "url": "https://seed1.cron.global",
    "height": 2399999
  },
  {
    "url": "https://seed2.cron.global",
    "height": 2399999
  },
  {
    "url": "https://seed3.cron.global",
    "height": 2399999
  },
  {
    "url": "https://seed4.cron.global",
    "height": 2399999
  },
  {
    "url": "https://seed5.cron.global",
    "height": 2399999
  }
]

Get all cron nodes
GET/api/main_net/v1/get_all_nodes

Returns all working nodes and their respective heights. Information is updated each minute.


Get address balance

GET /api/main_net/v1/get_balance/address
Responses200400
Body
{
  "balance": [
    {
      "unspent": [
        {
          "value": 5,
          "txid": "0aaf99ad644f7ae3e66e7766d53f900dcf634d9d9190c227aadf4c7d4fc3d07e",
          "n": 745
        },
        {
          "value": 2,
          "txid": "d94ee20af041b5093bfdbcc5a08b77d80f367ae90bf723bc72f2896cb5cd29d4",
          "n": 735
        }
      ],
      "asset_symbol": "CRONIUM",
      "asset_hash": "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
      "asset": "CRONIUM",
      "amount": 7
    },
    {
      "unspent": [],
      "asset_symbol": "TKN",
      "asset_hash": "040506",
      "asset": "My Token",
      "amount": 2
    }
  ],
  "address": "6DEqwyHYC3KjBqYzzDzbcmwV7Ga9jqc1SebFjybbrQBo"
}

Get address balance
GET/api/main_net/v1/get_balance/{address}

Returns the balance for an address including NEP5 Tokens.

URI Parameters
HideShow
address
string (required) 

base 58 address


Get block

GET /api/main_net/v1/get_block/block_hash
Responses200400404
Body
{
  "version": 2,
  "tx_count": 0,
  "transfers": [
    "4456bbef47c370baff2e5f28fbf73de9c6555c278c2105a5ff35df39abdabf83"
  ],
  "transactions": [
    "4456bbef47c370baff2e5f28fbf73de9c6555c278c2105a5ff35df39abdabf83"
  ],
  "time": 1549007461,
  "size": 1526,
  "script": {
    "verification": null,
    "invocation": "D9777474E350B287BA4EE763A289E7623543AD623453D9E299F2589E17202BA9",
    "id": "8fef022f-9ab4-4a31-84f9-978eeb888348"
  },
  "previousblockhash": "",
  "nonce": "ac29799af02569dcd0b3dcd033b5b47f68ed8bddf7c5321f55800d14df577549",
  "nextconsensus": "ce67657a5855c8d3f632fbbcff4c3f297eeae44607a7c3f98f6871139ca93436",
  "nextblockhash": "",
  "merkleroot": "ff0a599ae7353bd39769fbc07dd3bc78d803adf6b705a9fcc6b07029868619c3",
  "index": 753,
  "hash": "80458dd75ebc61107df4bce3640279849b9792fc4f45460a4c31a7f1ee83e967",
  "confirmations": 1
}

Get block
GET/api/main_net/v1/get_block/{block_hash}

Returns the block model from its hash or index

URI Parameters
HideShow
block_hash
string (required) 

base 16 block hash


Get address claimable transactions

GET /api/main_net/v1/get_claimable/address
Responses200400
Body
{
  "unclaimed": 0.00000285,
  "claimable": [
    {
      "value": 5,
      "unclaimed": 0.00000195,
      "txid": "77fb84721fac0d97733edf635301b0b4ad9b028729de5be781cc65932fcb6f26",
      "sys_fee": 7.5e-7,
      "start_height": 3,
      "n": 624,
      "generated": 0.0000012,
      "end_height": 6
    },
    {
      "value": 2,
      "unclaimed": 9e-7,
      "txid": "0438b83e1ca10275729bc071f46501582ef295623f868b0d7b5d51be351c27b4",
      "sys_fee": 4.2e-7,
      "start_height": 5,
      "n": 640,
      "generated": 4.8e-7,
      "end_height": 8
    }
  ],
  "address": "AvMMcWjXrPji3hUVtnFa8b39sW7ukWyQrvEV9swvJTwb"
}

Get address claimable transactions
GET/api/main_net/v1/get_claimable/{address}

Returns the AVAILABLE claimable transactions for an address, from its hash.

URI Parameters
HideShow
address
string (required) 

base 58 address


Get address claimed transactions

GET /api/main_net/v1/get_claimed/address
Responses200400
Body
{
  "claimed": [
    {
      "txids": [
        "41933ded108a19f02ed6fc34d4b18312377a7d9d87194cd9e3c30bf0e8b7b248"
      ]
    },
    {
      "txids": [
        "96f97f5c94ec3cdbb6c93e98aaefdbedd2c7ee2e821faf417bd49a39896190c2",
        "a6647e8538ed091127c38150a7658cf6b72042758f2e5a6396cdf8b40cb7e74a"
      ]
    }
  ],
  "address": "6xiNeXw8RRhpfWXKBJxCDKCUpv994dMUzFZraXNvjpFq"
}

Get address claimed transactions
GET/api/main_net/v1/get_claimed/{address}

Returns the claimed transactions for an address, from its hash

URI Parameters
HideShow
address
string (required) 

base 58 address


Get last block index

GET /api/main_net/v1/get_height
Responses200
Body
{
  "height": 155
}

Get last block index
GET/api/main_net/v1/get_height

Returns latest block index of the cronscan db.


Get address last transactions

GET /api/main_net/v1/get_last_transactions_by_address/address/page
Responses200400
Body
[
  {
    "vouts": [
      {
        "value": 1.23,
        "txid": "b92ef8a54812327ba05269797a1f504932351c603d94e74625a88117812a9824",
        "n": 882,
        "asset": "47d1ea53ce68bd2f2a641af73534e5fde9309d6191f03714ceae208e0f78bc55",
        "address_hash": "5Bxk2CYmjE3xCYY7g5H1x9obRS7JYLP8bFQJLtGzncJM"
      }
    ],
    "vin": [
      {
        "value": 1.23,
        "txid": "a95100fb2c0f2243aa63c4bf2562d115f08b8a233b6bbab6fe12aeb01b460c45",
        "n": 875,
        "asset": "47d1ea53ce68bd2f2a641af73534e5fde9309d6191f03714ceae208e0f78bc55",
        "address_hash": "HzwD7rHbWLFNEHsavFVSLMJjYgyNQyLqqmzVBNLFE7no"
      }
    ],
    "version": 0,
    "type": "MinerTransaction",
    "txid": "b92ef8a54812327ba05269797a1f504932351c603d94e74625a88117812a9824",
    "time": 1549007461,
    "sys_fee": 0,
    "size": 123,
    "scripts": [
      {
        "verification": "21021cdb84434d21cd0500d0a2e6f3305e78791cf33b56627f2a43a129a29d9d6920ac",
        "invocation": "407e4305984ec8b7563c9815976e1e5c40347adeb71e3a9fe772253f35cdff42825afac3e39dc88ee7e7728c1f56d2941e998cb95608f946d3a22f4ac1fb0b9034"
      }
    ],
    "pubkey": null,
    "nonce": null,
    "net_fee": 0,
    "description": null,
    "contract": null,
    "claims": [
      {
        "value": 1.23,
        "txid": "bcea819e05d95908a4ce87162229661ccc909434f8cd1778071d777e3a3adc10",
        "n": 885,
        "asset": "47d1ea53ce68bd2f2a641af73534e5fde9309d6191f03714ceae208e0f78bc55",
        "address_hash": "4rSmfEGJn4JYmS988sWvMzAoYPXvD2YRNbp7z2YN2fAP"
      }
    ],
    "block_height": 872,
    "block_hash": "f2b63fc26718154f01707829cef7feb07e9a93e35d6e42ed2f0217357680d559",
    "attributes": [
      {
        "usage": "Remark15",
        "data": "6e656f2d6f6e65"
      }
    ],
    "asset": null
  }
]

Get address last transactions
GET/api/main_net/v1/get_last_transactions_by_address/{address}/{page}

Returns the last 15 transaction models in the chain for the selected address from its hash, paginated.

URI Parameters
HideShow
address
string (required) 

base 58 address

page
integer (optional) 

page index


Get transaction

GET /api/main_net/v1/get_transaction/transaction_hash
Responses200400404
Body
{
  "vouts": [
    {
      "value": 1.23,
      "txid": "08139c40b093572c190b97a101fcbae67961d0963995f316f8d210d685633bf4",
      "n": 697,
      "asset": "truc",
      "address_hash": "G7YwUKkJjwjXHRWctmsKTyHnb35Xk72Qaw6dxrjmtega"
    }
  ],
  "vin": [
    {
      "value": 1.23,
      "txid": "c36f578899cb29c0ec428777f3ac40419f3bdd7b1f6ee4adc5e2fe9d60fa755d",
      "n": 690,
      "asset": "truc",
      "address_hash": "4gRm9JNWP8b6TWwpnKr4s2X8PpaHMffDoJMcTmGnxwNr"
    }
  ],
  "version": 0,
  "type": "StateTransaction",
  "txid": "08139c40b093572c190b97a101fcbae67961d0963995f316f8d210d685633bf4",
  "time": 1549007461,
  "sys_fee": 0,
  "size": 123,
  "scripts": [],
  "pubkey": null,
  "nonce": null,
  "net_fee": 0,
  "description": null,
  "contract": null,
  "claims": [
    {
      "value": 1.23,
      "txid": "f9ed0e0806844954a32a15ad750ff5b80d7c587215add681f82fafcbf091f43d",
      "n": 700,
      "asset": "5957cb391b742031311a88d54d469c00911cdc97e57798729bb883cce42c8029",
      "address_hash": "32HFFh5yV3R86Ddgs4YLoLzYdC1LnjauVY2v5DJvw1Md"
    }
  ],
  "block_height": 687,
  "block_hash": "0647a8007048038e304fc452cb1e033f98f4192c7598a667040cf8cbfcfd2869",
  "attributes": [],
  "asset": null
}

Get transaction
GET/api/main_net/v1/get_transaction/{transaction_hash}

Returns the transaction model from its hash

URI Parameters
HideShow
transaction_hash
string (required) 

base 16 transaction hash


Get address unclaimed cron

GET /api/main_net/v1/get_unclaimed/address
Responses200400
Body
{
  "unclaimed": 0.0000032,
  "address": "awrQ98F36yCoJddRNd76PFWouNqq7387RxtELFrgZue"
}

Get address unclaimed cron
GET/api/main_net/v1/get_unclaimed/{address}

Returns the unclaimed cron for an address from its hash.

URI Parameters
HideShow
address
string (required) 

base 58 address


Generated by aglio on 01 Feb 2019