Butterfly Public API
A listing of public API endpoints for retrieving Butterfly coin data from the network without the need for a local wallet
API Documentation
API Calls
Return data from coind
- getdifficultyReturns the current difficulty.explorer.butterflyc.tech/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.explorer.butterflyc.tech/api/getconnectioncount
- getblockcountReturns the current block index.explorer.butterflyc.tech/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.explorer.butterflyc.tech/api/getblockhash?index=24152
- getblock [hash]Returns information about the block with the given hash.explorer.butterflyc.tech/api/getblock?hash=0000000000003a90b14c8455a17f61adaec5982a3cdb84540440cf1f44266dc7
- getrawtransaction [txid] [decrypt]Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
- getnetworkhashpsReturns the current network hashrate. (hash/s)explorer.butterflyc.tech/api/getnetworkhashps
- getvotelistReturns the current vote list.explorer.butterflyc.tech/api/getvotelist
- getmasternodecountReturns the total number of masternodes on the network.explorer.butterflyc.tech/api/getmasternodecount
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplyexplorer.butterflyc.tech/ext/getmoneysupply
- getdistributionReturns wealth distribution statsexplorer.butterflyc.tech/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given addressexplorer.butterflyc.tech/ext/getaddress/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]explorer.butterflyc.tech/ext/getaddresstxs/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashexplorer.butterflyc.tech/ext/gettx/a5640846e97f96442522d5b872a151100087c3949c514bb49f9a23d3646dfbb6
- getbalance (/ext/getbalance/hash)Returns current balance of given addressexplorer.butterflyc.tech/ext/getbalance/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM
- getlasttxs (/ext/getlasttxs/min/start/length)Returns last [length] transactions greater than [min] coins, starting from offset [start]Note: [length] is limited to returning 100 records per query
- getcurrentpriceReturns last known exchange priceexplorer.butterflyc.tech/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hoursexplorer.butterflyc.tech/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, USDT price, # of masternodesexplorer.butterflyc.tech/ext/getbasicstats
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, USDT price, USD price, network connection count, block count, count of online masternodes, count of offline masternodesexplorer.butterflyc.tech/ext/getsummary
- getmasternodelistReturns the complete list of masternodes on the network.explorer.butterflyc.tech/ext/getmasternodelist
- getmasternoderewards (/ext/getmasternoderewards/hash/since)Returns a list of masternode reward transactions for address [hash] that arrived after block height [since]explorer.butterflyc.tech/ext/getmasternoderewards/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM/24152
- getmasternoderewardstotal (/ext/getmasternoderewardstotal/hash/since)Returns the total number of coins earned in masternode rewards for address [hash] that arrived after block height [since]explorer.butterflyc.tech/ext/getmasternoderewardstotal/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM/24152
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)explorer.butterflyc.tech/tx/a5640846e97f96442522d5b872a151100087c3949c514bb49f9a23d3646dfbb6
- block (/block/hash)explorer.butterflyc.tech/block/0000000000003a90b14c8455a17f61adaec5982a3cdb84540440cf1f44266dc7
- address (/address/hash)explorer.butterflyc.tech/address/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM
- qrcode (/qr/hash)explorer.butterflyc.tech/qr/3NkEcqFEqHLYZTLxsZwPGSSQib88BfM7fM