NEOSCAN API
API Endpoint
https://neoscan-testnet.ioMain API for accessing data from the explorer. All data is provided through GET requests in /api/test_net/v1
.
API v1 ¶
Get address transactions summary ¶
Body
{
"total_pages": 1,
"total_entries": 9,
"page_size": 15,
"page_number": 1,
"entries": [
{
"txid": "86604e1e9fb864817186e168250b429739572f78520a5f30ff19acd0066caa81",
"time": 1569599133,
"block_height": 980,
"asset": "602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
"amount": "5",
"address_to": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ",
"address_from": "network_fees"
},
{
"txid": "f15f640438a9dbca997a850f678a2f8b586fd44a8ca235401c46a348ac9e1e0e",
"time": 1569599133,
"block_height": 970,
"asset": "602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
"amount": "0.2",
"address_to": "fees",
"address_from": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ"
},
{
"txid": "6d4388c9d67ae2e8078d30a655775ad436e8925ead857a70f67f944b732bf83c",
"time": 1569599133,
"block_height": 966,
"asset": "29217681d5a44cb08d29871f350b612f9e51357751298a4a710ac6a75d85bde4",
"amount": "18",
"address_to": "burn",
"address_from": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ"
},
{
"txid": "0ac6e9b9706f968f0d505f5eac9991730bb84fc1a48348fba144d5958fac68d0",
"time": 1569599133,
"block_height": 962,
"asset": "29217681d5a44cb08d29871f350b612f9e51357751298a4a710ac6a75d85bde4",
"amount": "18",
"address_to": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ",
"address_from": "mint"
},
{
"txid": "a470586370ba20f545232e08ff21cf1443d41a8e77ed5a4f8b097f24a5210ac4",
"time": 1569599133,
"block_height": 949,
"asset": "29217681d5a44cb08d29871f350b612f9e51357751298a4a710ac6a75d85bde4",
"amount": "1",
"address_to": "HXWyhT1ncd5cXgmibo1obB7P1ue2yhGLH27kuA2FvXPv",
"address_from": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ"
},
{
"txid": "9d7c6fdee4f2dd14fac16d0071ece909e49ceb1165a2da396f621533b98690bb",
"time": 1569599133,
"block_height": 935,
"asset": "29217681d5a44cb08d29871f350b612f9e51357751298a4a710ac6a75d85bde4",
"amount": "14",
"address_to": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ",
"address_from": "9d7c6fdee4f2dd14fac16d0071ece909e49ceb1165a2da396f621533b98690bb"
},
{
"txid": "110c48b3f600e65aae3e51394d1b942c6e625146a1c7d667e862e24a4b1faea1",
"time": 1569599133,
"block_height": 919,
"asset": "29217681d5a44cb08d29871f350b612f9e51357751298a4a710ac6a75d85bde4",
"amount": "50",
"address_to": "4JDdvXJHUjR7t25vZeQ9ChBLGtx4e31TVWuVhPTiA3oJ",
"address_from": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ"
},
{
"txid": "ee358665d9ab4462d07d13ea3a158f5860017287dfdb3ef514f6b9372fa8a92f",
"time": 1569599133,
"block_height": 903,
"asset": "29217681d5a44cb08d29871f350b612f9e51357751298a4a710ac6a75d85bde4",
"amount": "50",
"address_to": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ",
"address_from": "EfCedgQA5A67touVga9xQh61RWP2SWN8WVg7fmT9cwhD"
},
{
"txid": "1cd6de7a2efc82a67c82b93464a9d52ccf50f59792312f53167d5fe1b173e65c",
"time": 1569599133,
"block_height": 891,
"asset": "602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
"amount": "5.1",
"address_to": "7D746efAyhngHRos3vF2kb6tvb57hQdLzAUdQFsVFCQ",
"address_from": "claim"
}
]
}
Body
{
"errors": [
"page is not a valid integer",
"address is not a valid base58"
]
}
Get address transactions summaryGET/api/test_net/v1/get_address_abstracts/{address}/{page}
Returns transaction summary an address from its hash, paginated
- address
string
(required)base 58 address
- page
integer
(required)page
Get address pair transactions summary ¶
Body
{
"total_pages": 1,
"total_entries": 2,
"page_size": 15,
"page_number": 1,
"entries": [
{
"txid": "72530c2798ca8b2ae3eaae7faaedf726a2b05b28e6c7edf1e723916435a1fc9d",
"time": 1569599133,
"block_height": 861,
"asset": "f6d93bc22c4493de43f860ec718501feffacbde59ef7c8a5010d2a1302353c3a",
"amount": "5",
"address_to": "FENZVxTtw5XNYJxKSMGHPnk1rN5v4mUPim4vb6bDzStV",
"address_from": "57LqigABq7jaVUFQK6jN5LEDYjzMmJeCEr9QeFvTnxGs"
},
{
"txid": "ab8961c55b87577116ef631d0884e23abeaefe80a20f2dfe71fe2cc9e259518d",
"time": 1569599133,
"block_height": 845,
"asset": "f6d93bc22c4493de43f860ec718501feffacbde59ef7c8a5010d2a1302353c3a",
"amount": "5",
"address_to": "57LqigABq7jaVUFQK6jN5LEDYjzMmJeCEr9QeFvTnxGs",
"address_from": "FENZVxTtw5XNYJxKSMGHPnk1rN5v4mUPim4vb6bDzStV"
}
]
}
Body
{
"errors": [
"page is not a valid integer",
"address2 is not a valid base58",
"address1 is not a valid base58"
]
}
Get address pair transactions summaryGET/api/test_net/v1/get_address_to_address_abstracts/{address1}/{address2}/{page}
Returns transaction summary between two address from their hash, paginated
- address1
string
(required)base 58 address
- address2
string
(required)base 58 address
- page
integer
(required)page
Get all neo nodes ¶
Body
[
{
"url": "https://seed1.cityofzion.io",
"height": 2399999
},
{
"url": "https://seed2.cityofzion.io",
"height": 2399999
},
{
"url": "https://seed3.cityofzion.io",
"height": 2399999
},
{
"url": "https://seed4.cityofzion.io",
"height": 2399999
},
{
"url": "https://seed5.cityofzion.io",
"height": 2399999
}
]
Get all neo nodesGET/api/test_net/v1/get_all_nodes
Returns all working nodes and their respective heights. Information is updated each minute.
Get address balance ¶
Body
{
"balance": [
{
"unspent": [
{
"value": 5,
"txid": "9f8ff77ae2d0a19c2aadd895dcb57e0031c1a513c320108718fc0f3f5d013d92",
"n": 793
},
{
"value": 2,
"txid": "1dca94f4d4b46e513e379459641a0ec576e4beeed0d852d99daf88971c4e504e",
"n": 783
}
],
"asset_symbol": "NEO",
"asset_hash": "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
"asset": "NEO",
"amount": 7
},
{
"unspent": [],
"asset_symbol": "TKN",
"asset_hash": "040506",
"asset": "My Token",
"amount": 2
}
],
"address": "4iWoCsEcJqgdsTpWUypFH4A5Ye6Vmr4AMtjAg2yZJbeo"
}
Body
{
"errors": [
"address is not a valid base58"
]
}
Get address balanceGET/api/test_net/v1/get_balance/{address}
Returns the balance for an address including NEP5 Tokens.
- address
string
(required)base 58 address
Get block ¶
Body
{
"version": 2,
"tx_count": 0,
"transfers": [
"86b11f5ebc448e2390d1f0c720571d25b9cdb977f54aa74c8bfcf72b5916c498"
],
"transactions": [
"86b11f5ebc448e2390d1f0c720571d25b9cdb977f54aa74c8bfcf72b5916c498"
],
"time": 1569599133,
"size": 1526,
"script": {
"verification": null,
"invocation": "EC3EDF23E2566D8136CD0743A7D5C031ACA1624B7E05E5345C8E1ED591376ADB",
"id": "6f94bc9e-53cf-4bd4-b856-6aafdc7bac90"
},
"previousblockhash": "",
"nonce": "e548b8a9ec2555c4ed3021ab3c34029e754039db24e983b46b2f6ff2b81a98b4",
"nextconsensus": "5cf172bee9fc4f2db4e26711032f2684d9fbfac103d8349f8c9b608fa0a87a35",
"nextblockhash": "",
"merkleroot": "39ff2ce3b8403a83984a2c4ef5a3d4eba4e5c9a0426ea512c7cf2753a1d0d9ad",
"index": 841,
"hash": "72f411735aa61396cfa05294062e7861840ae63437093e328e4d95d055ee42c8",
"confirmations": 1
}
Body
{
"errors": [
"block_hash is not a valid integer_or_base16"
]
}
Body
{
"errors": [
"object not found"
]
}
Get blockGET/api/test_net/v1/get_block/{block_hash}
Returns the block model from its hash or index
- block_hash
string
(required)base 16 block hash
Get address claimable transactions ¶
Body
{
"unclaimed": 0.00000285,
"claimable": [
{
"value": 5,
"unclaimed": 0.00000195,
"txid": "283f7ae3274aea17301cf88b8a2e4a1762cc5e692e3dd05f1c9dc4c9d1b3df4e",
"sys_fee": 7.5e-7,
"start_height": 3,
"n": 720,
"generated": 0.0000012,
"end_height": 6
},
{
"value": 2,
"unclaimed": 9e-7,
"txid": "21521e70aaa902b6fe85f24ae41651901fa608e2b3452a3787b2b6f2a3f057d3",
"sys_fee": 4.2e-7,
"start_height": 5,
"n": 736,
"generated": 4.8e-7,
"end_height": 8
}
],
"address": "AePSDtqtyhJav59fxQCND3wXHCu5RGpNykNUakgwcE9F"
}
Body
{
"errors": [
"address is not a valid base58"
]
}
Get address claimable transactionsGET/api/test_net/v1/get_claimable/{address}
Returns the AVAILABLE claimable transactions for an address, from its hash.
- address
string
(required)base 58 address
Get address claimed transactions ¶
Body
{
"claimed": [
{
"txids": [
"adf996f3f2ee478b2a0cb8c6eff4956d87a8d878da42a394dbd088991417fc4a"
]
},
{
"txids": [
"c09ba616874042aec5d02046804ca64cab8f62e20226cb42e550d9b4c8286656",
"366d132c9fe6a230bc9c948868add145f3a76951a1aebd5f79330307a52137e4"
]
}
],
"address": "Bu1VB8X4cx9BbUDXEa3H981f1k32PgiChNWbkLMRZCrT"
}
Body
{
"errors": [
"address is not a valid base58"
]
}
Get address claimed transactionsGET/api/test_net/v1/get_claimed/{address}
Returns the claimed transactions for an address, from its hash
- address
string
(required)base 58 address
Get last block index ¶
Body
{
"height": 155
}
Get last block indexGET/api/test_net/v1/get_height
Returns latest block index of the neoscan db.
Get address last transactions ¶
Body
[
{
"vouts": [
{
"value": 1.23,
"txid": "52441170347378920869f290861b8ec22e7da38a2da5db64b34e3ae0cd556071",
"n": 829,
"asset": "b723e169ff9536bcd83f53e1d13ae65a154c63d2d3861c04920d07120748d684",
"address_hash": "AzBqij6JCv4bQLNzTWRPuc27Bm8roNZiNBvuXPWd4X4M"
}
],
"vin": [
{
"value": 1.23,
"txid": "0746f940e4c1e145bbaa80e9d20667f148a1dbb64d2b72a77b2fc1b66a739dbf",
"n": 822,
"asset": "b723e169ff9536bcd83f53e1d13ae65a154c63d2d3861c04920d07120748d684",
"address_hash": "52uUTYdgPKM2agiNjBmRQ6a9YD7ECQZ5roh3cBLWoVUD"
}
],
"version": 0,
"type": "ClaimTransaction",
"txid": "52441170347378920869f290861b8ec22e7da38a2da5db64b34e3ae0cd556071",
"time": 1569599133,
"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": "e19ae49483c3db4770cf3870496663188ead90d5b8391c21d707a62ad542f4b0",
"n": 832,
"asset": "b723e169ff9536bcd83f53e1d13ae65a154c63d2d3861c04920d07120748d684",
"address_hash": "9NYAVt2sx6mdwtNmjsjKmzABN7d8UR2jkQ8BfyndRi3j"
}
],
"block_height": 819,
"block_hash": "484c9aaea834355fef1e8910071eb7e4027b8e2b69c3cad227782b09af1d2a8b",
"attributes": [
{
"usage": "Remark15",
"data": "6e656f2d6f6e65"
}
],
"asset": null
}
]
Body
{
"errors": [
"page is not a valid integer",
"address is not a valid base58"
]
}
Get address last transactionsGET/api/test_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.
- address
string
(required)base 58 address
- page
integer
(optional)page index
Get transaction ¶
Body
{
"vouts": [
{
"value": 1.23,
"txid": "6e886699a222421b27782e350da4c57a7991d9391013cc0742eca99ee23f9c30",
"n": 882,
"asset": "truc",
"address_hash": "4nDMxB3ZxxQXZqrSiAvZBWKvxPzuBm53cMQ3sqiPyF5z"
}
],
"vin": [
{
"value": 1.23,
"txid": "a0c048b6072b662c516e0e26187e945ea016c24911ee2256bab1d706eeace035",
"n": 875,
"asset": "truc",
"address_hash": "9uDrSaiyJZjC6QK6PqxQnyg3yWKPbAgSXj8FRh429Wno"
}
],
"version": 0,
"type": "StateTransaction",
"txid": "6e886699a222421b27782e350da4c57a7991d9391013cc0742eca99ee23f9c30",
"time": 1569599133,
"sys_fee": 0,
"size": 123,
"scripts": [],
"pubkey": null,
"nonce": null,
"net_fee": 0,
"description": null,
"contract": null,
"claims": [
{
"value": 1.23,
"txid": "5f3719e7837bcc22c1f75a209a3372af550b207621cd79d320bc3cbf05394f52",
"n": 885,
"asset": "8fca9cd421135f971e48495c36d444410b0128edc04110b24badd906cdcac81f",
"address_hash": "FzfV8545CECP2DfwHdoKHPNbUcnsiZCUBUUQJ9QRYkAc"
}
],
"block_height": 872,
"block_hash": "f17c280903243e77707d38b3676600a0421af59db977b13d6c6f9ae289a694b7",
"attributes": [],
"asset": null
}
Body
{
"errors": [
"transaction_hash is not a valid base16"
]
}
Body
{
"errors": [
"object not found"
]
}
Get transactionGET/api/test_net/v1/get_transaction/{transaction_hash}
Returns the transaction model from its hash
- transaction_hash
string
(required)base 16 transaction hash
Get address unclaimed gas ¶
Body
{
"unclaimed": 0.0000032,
"address": "8ZXhP7Vif5mpuXXYVdDWXEspDNvvcjaEkpcDF7HoQ7Hq"
}
Body
{
"errors": [
"address is not a valid base58"
]
}
Get address unclaimed gasGET/api/test_net/v1/get_unclaimed/{address}
Returns the unclaimed gas for an address from its hash.
- address
string
(required)base 58 address
Generated by aglio on 27 Sep 2019