PirateCash Public API
A listing of public API endpoints for retrieving PirateCash coin data from the network without the need for a local wallet
API Documentation
API Calls
Return data from coind
- getdifficultyReturns the current difficulty.piratecash.info/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.piratecash.info/api/getconnectioncount
- getblockcountReturns the current block index.piratecash.info/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.piratecash.info/api/getblockhash?index=66666
- getblock [hash]Returns information about the block with the given hash.piratecash.info/api/getblock?hash=04f964076c2864bf56a033aca3b22e2b566a7bec9eac643d108c908c7706392d
- getrawtransaction [txid] [decrypt]Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
- getvotelistReturns the current vote list.piratecash.info/api/getvotelist
- getmasternodecountReturns the total number of masternodes on the network.piratecash.info/api/getmasternodecount
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplypiratecash.info/ext/getmoneysupply
- getdistributionReturns wealth distribution statspiratecash.info/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given addresspiratecash.info/ext/getaddress/PPU2FM7Fw1bZ4SNKsXYWGShHfrrGQp8YX4
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]piratecash.info/ext/getaddresstxs/PPU2FM7Fw1bZ4SNKsXYWGShHfrrGQp8YX4/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashpiratecash.info/ext/gettx/e23bc2307cc967be9e3f32ec4385ff0f775675627293e6f471e6b6d83dc9e3e0
- getbalance (/ext/getbalance/hash)Returns current balance of given addresspiratecash.info/ext/getbalance/PPU2FM7Fw1bZ4SNKsXYWGShHfrrGQp8YX4
- 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
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hourspiratecash.info/ext/getnetworkpeers
- getmasternodelistReturns the complete list of masternodes on the network.piratecash.info/ext/getmasternodelist
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)piratecash.info/tx/e23bc2307cc967be9e3f32ec4385ff0f775675627293e6f471e6b6d83dc9e3e0
- block (/block/hash)piratecash.info/block/04f964076c2864bf56a033aca3b22e2b566a7bec9eac643d108c908c7706392d
- address (/address/hash)piratecash.info/address/PPU2FM7Fw1bZ4SNKsXYWGShHfrrGQp8YX4
- qrcode (/qr/hash)piratecash.info/qr/PPU2FM7Fw1bZ4SNKsXYWGShHfrrGQp8YX4