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 coin supply.
- /ext/getmoneysupply
- getcurrentprice
- Returns the last known exchange price.
- /ext/getcurrentprice
- getsummary
- Returns a summary of coin data including: 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/Pd4Ee73nvvymgiGKMouC1GYZpQCrgMmCjd
- 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