Public API
Public API endpoints to retrieve coin data from the Pepecoin network.
API Calls
Return data from pepecoind
- getdifficulty
- Returns the current difficulty.
- /api/getdifficulty
- getconnectioncount
- Returns the number of connections the block explorer has to other nodes.
- /api/getconnectioncount
- getblockcount
- Returns the current block index.
- /api/getblockcount
- getblockhash
- Returns the hash of the block at [index]; index 0 is the genesis block.
- /api/getblockhash?index=0
- getblock
- Returns information about the block with the given hash. verbosity can be 0, 1, or 2 (default 1).
- /api/getblock?hash=37981c0c48b8d48965376c8a42ece9a0838daadb93ff975cb091f57f8c2a5faa&verbosity=2
- getrawtransaction
- Returns raw transaction representation for a given transaction id. decrypt can be set to 0 (false) or 1 (true).
- /api/getrawtransaction?txid=0ebbfaaf838cde7cf27b103bfbc15261602188ab63384dac2922c115bea1471f&decrypt=0
- getnetworkhashps
- Returns the current network hashrate (hash/s).
- /api/getnetworkhashps
Extended API
Return data from the indexer
- getmoneysupply
- Returns the current money supply.
- /ext/getmoneysupply
- getdistribution
- Returns wealth distribution stats.
- /ext/getdistribution
- getaddress
- Returns information for the given address.
- /ext/getaddress/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8
- getaddresstxs
- Returns last [length] transactions for address [hash], starting from offset [start].
- /ext/getaddresstxs/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8/0/50
- gettx
- Returns information for the given transaction hash.
- /ext/gettx/0ebbfaaf838cde7cf27b103bfbc15261602188ab63384dac2922c115bea1471f
- getbalance
- Returns the current balance of the given address.
- /ext/getbalance/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8
- getlasttxs
- Returns the last [length] transactions greater than [min] coins, starting from offset [start].
- /ext/getlasttxs/100/0/100
- getcurrentprice
- Returns the last known exchange price.
- /ext/getcurrentprice
- getnetworkpeers
- Returns the list of network peers that have connected to the explorer node in the last 24 hours.
- /ext/getnetworkpeers
- getbasicstats
- Returns basic statistics about the coin, including: block count, circulating supply, USD price, USDT price.
- /ext/getbasicstats
- getsummary
- Returns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, USDT price, USD price, network connection count, block count.
- /ext/getsummary
Pepeblocks API
Return data from pepeblocks
- getaverageblocktime
- Returns the average block time in the last 72 hours (In minutes).
- /api/v3/getaverageblocktime
Blockbook API
Return data from blockbook (Docs)
- status
- Returns current status of Blockbook and connected backend.
- /api/status
- block-index
- Returns block hash from block index.
- /api/v2/block-index/0
- tx
- Returns transaction details.
- /api/v2/tx/0ebbfaaf838cde7cf27b103bfbc15261602188ab63384dac2922c115bea1471f
- tx-specific
- Returns transaction data in the exact format as returned by backend.
- /api/v2/tx-specific/0ebbfaaf838cde7cf27b103bfbc15261602188ab63384dac2922c115bea1471f
- address
- Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.
- /api/v2/address/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8
- utxo
- Returns an array of unspent transaction outputs of an address.
- /api/v2/utxo/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8
- block
- Returns information about block with transactions, subject to paging.
- /api/v2/block/37981c0c48b8d48965376c8a42ece9a0838daadb93ff975cb091f57f8c2a5faa
- sendtx
- Sends a new transaction to the Pepecoin backend.
- /api/v2/sendtx/
- balancehistory
- Returns a balance history for the specified address.
- /api/v2/balancehistory/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)
- /tx/0ebbfaaf838cde7cf27b103bfbc15261602188ab63384dac2922c115bea1471f
- block (/block/hash)
- /block/37981c0c48b8d48965376c8a42ece9a0838daadb93ff975cb091f57f8c2a5faa
- address (/address/hash)
- /address/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8
- qrcode (/qr/hash)
- /qr/Pps2nuEbFRtWeYPpELAdrgvK6QekEayvk8