Pepecoin API Documentation
The Peppool.space API provides programmatic access to Pepecoin blockchain data and market information.
All endpoints are rate-limited and return data in plain text or JSON format.
Base URL
https://peppool.space/api
Rate Limiting
All API endpoints are rate-limited to 60 requests per minute per IP address.
/blocks/tip/hash
Returns the hash of the current tip block of the Pepecoin blockchain.
Example
curl https://peppool.space/api/blocks/tip/hash
Response
Content-Type: text/plain
a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456
/blocks/tip/height
Returns the current block height of the Pepecoin blockchain.
Example
curl https://peppool.space/api/blocks/tip/height
Response
Content-Type: text/plain
672216
/api/blocks[/:startHeight]
Returns details on the past 10 blocks.
If :startHeight
is specified, the 10 blocks before (and including) :startHeight
are returned.
Example
curl https://peppool.space/api/blocks
curl https://peppool.space/api/blocks/600069
Response
Content-Type: application/json
[
{
"id": "0000000000000000000384f28cb3...",
"height": 600069,
"version": 536870912,
"timestamp": 1648829449,
"tx_count": 1627,
"size": 1210916,
"difficulty": 28587155.782195,
"nonce": 3580664066,
"merkle_root": "efa344bcd6c0607f93b7..."
},
{
"id": "0000000000000000000a1b2c3d4e...",
"height": 600068,
"version": 536870912,
"timestamp": 1648828850,
"tx_count": 1432,
"size": 1180421,
"difficulty": 28587155.782195,
"nonce": 1532048855,
"merkle_root": "ab12cd34ef56ab78cd90..."
},
...
]
Response Fields
Field | Type | Description |
---|---|---|
id
|
string | Block hash |
height
|
integer | Block height |
version
|
integer | Block version |
timestamp
|
integer | Unix time the block was created |
tx_count
|
integer | Number of transactions in the block |
size
|
integer | Block size in bytes |
difficulty
|
float | Current difficulty value for the block |
nonce
|
integer | Nonce used for the block |
merkle_root
|
string | Merkle root of the block |
/mempool
Returns a summary of the current mempool state, including the number of transactions and total size in bytes.
Example
curl https://peppool.space/api/mempool
Response
Content-Type: application/json
{
"count": 1245,
"bytes": 1234567
}
Response Fields
Field | Type | Description |
---|---|---|
count
|
integer | Number of transactions in the mempool |
bytes
|
integer | Total size of all transactions in the mempool in bytes |
/mempool/txids
Returns an array of transaction IDs currently in the mempool.
Example
curl https://peppool.space/api/mempool/txids
Response
Content-Type: application/json
[
"txid1...",
"txid2...",
"txid3..."
]
/prices
Returns the latest Pepecoin prices.
Example
curl https://peppool.space/api/prices
Response
Content-Type: application/json
{
"time": 1724263564,
"EUR": 0.00000123,
"USD": 0.00000134
}
Response Fields
Field | Type | Description |
---|---|---|
time
|
integer | Unix timestamp indicating when the price data was last refreshed |
EUR
|
float | Latest price in Euro |
USD
|
float | Latest price in US Dollar |
/validate-address/:address
Validates a Pepecoin address and returns metadata.
Example
curl https://peppool.space/api/validate-address/PbvihBLgz6cFJnhYscevB4n3o85faXPG7D
Response
Content-Type: application/json
{
"isvalid": true,
"address": "PbvihBLgz6cFJnhYscevB4n3o85faXPG7D",
"scriptPubKey": "76a914c825a1ecf2a6830c4401620c3a16f1995057c2ab88ac",
"isscript": false
}
Response Fields
Field | Type | Description |
---|---|---|
isvalid
|
boolean | Whether the address is valid |
address
|
string | The normalized address |
scriptPubKey
|
string|null | The scriptPubKey for the address, if available |
isscript
|
boolean | True if the address is a script address |