API Documentation

The Dingocoin Explorer provides a RESTful API for accessing blockchain data. All API endpoints return data in JSON format unless otherwise specified.

Coind API

Direct RPC calls to the Dingocoin node.

getdifficulty

Returns the current difficulty.

Endpoint:https://explorer-v2.dingocoin.com/api/getdifficultyExample:https://explorer-v2.dingocoin.com/api/getdifficulty

getconnectioncount

Returns the number of connections the block explorer has to other nodes.

Endpoint:https://explorer-v2.dingocoin.com/api/getconnectioncountExample:https://explorer-v2.dingocoin.com/api/getconnectioncount

getblockcount

Returns the current block index.

Endpoint:https://explorer-v2.dingocoin.com/api/getblockcountExample:https://explorer-v2.dingocoin.com/api/getblockcount

getblockhash [index]

Returns the hash of the block at [index]; index 0 is the genesis block.

Endpoint:https://explorer-v2.dingocoin.com/api/getblockhash?index={index}Example:https://explorer-v2.dingocoin.com/api/getblockhash?index=74

getblock [hash]

Returns information about the block with the given hash.

Endpoint:https://explorer-v2.dingocoin.com/api/getblock?hash={hash}Example:https://explorer-v2.dingocoin.com/api/getblock?hash=...

getrawtransaction [txid] [decrypt]

Returns raw transaction. decrypt: 0(false) or 1(true).

Endpoint:https://explorer-v2.dingocoin.com/api/getrawtransaction?txid={txid}&decrypt={0|1}Examples:decrypt=0decrypt=1

getnetworkhashps

Returns the current network hashrate (hash/s).

Endpoint:https://explorer-v2.dingocoin.com/api/getnetworkhashpsExample:https://explorer-v2.dingocoin.com/api/getnetworkhashps

Extended API

Return data from local indexes.

getmoneysupply

Returns current money supply.

Endpoint:https://explorer-v2.dingocoin.com/ext/getmoneysupplyExample:https://explorer-v2.dingocoin.com/ext/getmoneysupply

getdistribution

Returns wealth distribution stats.

Endpoint:https://explorer-v2.dingocoin.com/ext/getdistributionExample:https://explorer-v2.dingocoin.com/ext/getdistribution

getaddress

Returns information for given address.

Endpoint:https://explorer-v2.dingocoin.com/ext/getaddress/{address}Example:https://explorer-v2.dingocoin.com/ext/getaddress/...

getaddresstxs

Returns last [length] transactions for address, from offset [start].

Endpoint:https://explorer-v2.dingocoin.com/ext/getaddresstxs/{address}/{start}/{length}Example:https://explorer-v2.dingocoin.com/ext/getaddresstxs/.../0/50

gettx

Returns information for given tx hash.

Endpoint:https://explorer-v2.dingocoin.com/ext/gettx/{txid}Example:https://explorer-v2.dingocoin.com/ext/gettx/...

getbalance

Returns current balance of given address.

Endpoint:https://explorer-v2.dingocoin.com/ext/getbalance/{address}Example:https://explorer-v2.dingocoin.com/ext/getbalance/...

getlasttxs

Returns last [length] transactions greater than [min] coins (max 100 per query).

Endpoint:https://explorer-v2.dingocoin.com/ext/getlasttxs/{min}/{start}/{length}Example:https://explorer-v2.dingocoin.com/ext/getlasttxs/100/0/100

getnetworkpeers

Returns network peers connected in the last 24 hours.

Endpoint:https://explorer-v2.dingocoin.com/ext/getnetworkpeersExample:https://explorer-v2.dingocoin.com/ext/getnetworkpeers

getbasicstats

Block count, circulating supply, USD/BTC price.

Endpoint:https://explorer-v2.dingocoin.com/ext/getbasicstatsExample:https://explorer-v2.dingocoin.com/ext/getbasicstats

getsummary

Summary: difficulty, supply, hashrate, prices, connections, block count.

Endpoint:https://explorer-v2.dingocoin.com/ext/getsummaryExample:https://explorer-v2.dingocoin.com/ext/getsummary

Linking (GET)

Explorer pages: /tx/{txid}, /block/{hash}, /address/{address}, /qr/{address}

Rate Limiting
API requests are rate-limited. Implement caching and avoid excessive requests.