General API information
- We are happy to offer you our comprehensive API for your own app building. If you need more data, please contact support at dashcentral.org
- Data returned is JSON
- Units are given in brackets []
- Please be polite to our API and avoid hammering. Limit requests to max. 1 request each 30 seconds. Shoutbox poll to 6 seconds.
- We recommend to integrate a QR code scanner into your app and tell users to scan their API key from "Account settings" -> "Mobile app"
Download DashCentral image pack to enhance your app with high quality DashCentral logo and background:
Overview
1. Public API: general DashCentral information2. Private user API "getappdata": get detailed information about masternode status and earnings
3. Private user API "setappdata": add and remove masternodes / verify masternode ownership / post message to shoutbox
4. Public shoutbox API: get shoutbox messages
5. Budget proposals: budget proposal description and comments (DBIN)
Public Api
General public DashCentral information.
https://www.dashcentral.org/api/v1/public
Group | Values |
---|---|
general [array] |
|
exchange_rates [array] |
|
Private user Api (getappdata)
The DashCentral API provides you with all data you need for your app in only one request.
https://www.dashcentral.org/api/v1/getappdata?api_key=<user_api_key>
Group | Values |
---|---|
general [array] |
|
exchange_rates [array] |
|
user [array] |
|
earnings [array] |
|
earnings_daily [array] (last 60 days) |
|
masternodes [array] |
The following data is only available, if user setup and enabled remote data pushing (user->remote_data = enabled):
|
Private user Api (setappdata)
The API key can be found on /account/mobile. Please use this endpoint to make changes to an DashCentral account.
https://www.dashcentral.org/api/v1/setappdata?api_key=<user_api_key>&do=<do_parameter>
do parameter | further parameter | response |
---|---|---|
add_masternode | name (user chosen masternode name, max. 50 chars) collateral_hash (1000 DASH collateral hash) collateral_index (1000 DASH collateral index) |
|
remove_masternode | collateral_hash (1000 DASH collateral hash) collateral_index (1000 DASH collateral index) |
|
get_verification_string | address (masternode coin address holding the 1000 DASH) |
|
verify_ownership | address (masternode coin address holding the 1000 DASH) signature (signature of verification_string / IMPORTANT: signature has to be urlencoded!) Perform signing using your command line wallet: dash-cli signmessage "MASTERDODE_ADDRESS" "VERIFICATION_STRING" |
|
shout | message (256 chars) lastid (last shoutbox message id your app has displayed). Parameter can be POST or GET. |
|
post_proposal_comment | comment (text) proposal_hash (proposal hash). comment_identifier (can be either "none" to post a new comment or can contain the comment_identifier hash provided by the /api/v1/proposal API endpoint, to post the comment in reply to an existing comment). Parameter have to be POST. |
|
Example: add a masternode
https://www.dashcentral.org/api/v1/setappdata?api_key=<user_api_key>&do=add_masternode&name=MN1&collateral_hash=X&collateral_index=X
Public shoutbox API
Implement DashCentral shoutbox to your app to benefit from interesting cryptocurrency related live chat!
You can pull current shoutbox messages using this URL:
https://www.dashcentral.org/shouts/<lastid>
parameter | get started | response [array] |
---|---|---|
lastid |
1. set lastid=0 on your first data pull to get 50 lastest message 2. display all messages from the JSON array in your app and save the "id" of the last message you displayed 3. use the saved "id" as "lastid" for subsequent requests, to pull only messages you did not have displayed already 4. poll for new messages every 6 seconds 5. post new messages to shoutbox using setappdata (shout) API |
|
Example (setappdata): post new message to shoutbox
https://www.dashcentral.org/api/v1/setappdata?api_key=<user_api_key>&do=shout&lastid=0&message=test
DASH budget information network (DBIN)
Check out our separate page covering the budget proposal APIs!