Skip to content

Latest commit

 

History

History
86 lines (61 loc) · 4.28 KB

File metadata and controls

86 lines (61 loc) · 4.28 KB
description This documentation is intended to provide information on the available methods to extract data from DECENOMY Explorer using its API.

▪ Explorer API

Being a public API, there is no need to use any kind of authentication.


API v1 reports plain text.

API v2 reports more info in detail.

API v1 Endpoint URL

https://explorer.decenomy.net/api/v1/coins/coin/

Path parameters v1

NameTypeDescriptionInfo
coinstringshould be replaced by the coin ticker, always in capsRequired

Query parameters v1

NameTypeDescriptionInfo
getblockcountstringPlain block count, just the block number valueOptional
getmoneysupplystringCirculating supply - It will output just the number value of the total supply minus the locked supplyOptional
getlockedsupplystringLocked supply - It will output just the number value of the locked/burned supplyOptional
gettotalsupplystringTotal supply - It will output just the number value of the circulation supply plus the locked supplyOptional

Example query v1

https://explorer.decenomy.net/api/v1/coins/SAPP/getblockcount

Example response v1

1987842

API v2 Endpoint URL

https://explorer.decenomy.net/api/v2/coin/

Path parameters v2

NameTypeDescriptionInfo
coinstringshould be replaced by the coin ticker, always in capsRequired

Query parameters v2

NameTypeDescriptionInfo
blocksstringLast 30 blocks - blockhash tx /
/ blocktime / height / confirmations
Optional
transactionsstringLast 30 blocks - blockhash / blocktime / height / tx /
confirmations / recipients / amount
Optional
peersstringFull information of peers availableOptional
masternodesstringFull information of each masternode in the networkOptional
infostringWallet and blockchain informationOptional
masternode/countstringTotal number of masternodes connected in the networkOptional
statusstringStatus of blockchain based in last block receivedOptional
burnaddressesstringBurn address InformationOptional

Example query v2

https://explorer.decenomy.net/api/v2/SAPP/info

Example response v2

{
  "response": {
    "connections": 171,
    "errors": "",
    "blocks": 1987846,
    "paytxfee": 0,
    "moneysupply": 1224915018.8013475,
    "difficulty": 527924.3523641471,
    "keypoolsize": 100,
    "keypoololdest": 1627317470,
    "walletversion": 169900,
    "timeoffset": 0,
    "testnet": false,
    "version": 1050100,
    "staking status": "Staking Inactive",
    "protocolversion": 70931,
    "services": "NETWORK/BLOOM/",
    "balance": 0,
    "relayfee": 0.0001,
    "proxy": ""
  },
  "success": true
}