Build on the PyBLØCK Market: list and rent BLAKE2b rigs, follow orders, and set up miner payouts from your own app, bot or site. JSON over HTTPS, no accounts, no API keys, CORS open.
Base URL: https://b.pyblock.xyz:8443/api/market/v1.php · OpenAPI 3 (JSON) · Market →
mid (16 hex), never by their mining address.ok; errors come as {"ok":false,"error":"…"} with the HTTP status. Rate limits are per IP; 429 means wait a minute.# 1) available rigs
curl -s https://b.pyblock.xyz:8443/api/market/v1.php/rigs | jq '.rigs[] | select(.state=="available") | {mid, rig, ths, price}'
# 2) quote
curl -s "https://b.pyblock.xyz:8443/api/market/v1.php/quote?rigs=<mid>:<rig>&hours=6"
# 3) order (pay the invoice within 15 min)
curl -s -X POST https://b.pyblock.xyz:8443/api/market/v1.php/orders -H 'Content-Type: application/json' -d '{
"rigs": [{"mid": "<mid>", "rig": "<rig>"}], "hours": 6,
"host": "your.pool.example", "port": 3333, "user": "<your address>.worker", "pass": "x",
"host2": "backup.pool.example", "port2": 3333,
"refund_to": "[email protected]", "accept": 1 }'
# 4) follow it
curl -s https://b.pyblock.xyz:8443/api/market/v1.php/orders/<secret> accept: 1 = you accept that PyBLØCK is not responsible for availability, stability or disconnection of rented machines; what your pool does not receive is refunded.host2/port2: if your pool does not answer, rigs move there; if both are down, the rental pauses and that time is added at the end.refund_to, refunds are a LNURL-withdraw coupon in /orders/{secret} → refund.lnurl.stratum+tcp://pool.pyblock.xyz:23200, user <your XBT address>.<rig>, password x. After 2 h of verification it appears in /rigs.curl -s "https://b.pyblock.xyz:8443/api/market/v1.php/payout/challenge?address=<addr>&[email protected]&price=50000&backup=wavicles"
# sign .message with your wallet (BIP-137), then:
curl -s -X POST https://b.pyblock.xyz:8443/api/market/v1.php/payout -H 'Content-Type: application/json' \
-d '{"address":"<addr>","message":"<message>","signature":"<base64>"}'