Pixtopia

Pixa witness
price feed

Every hour, @elmerlin publishes how many PIXA buy one PXS, using trades in the WPIXA pool and the US price of a Big Mac.

Feed preview
US Big Mac
$6.22
Pool price · 24h trades
0.76513 HIVE / PIXA
Hive median
$0.036 / HIVE
PIXA price
≈ $0.027545
1.000 PXS225.815 PIXA

How the feed works

Price one PIXA

The script reads swaps in the WPIXA / SWAP.HIVE pool over the last 24 hours. Dividing total HIVE traded by total WPIXA traded gives the volume-weighted price. Below $2 in daily volume, it uses the pool’s current price.

Inspect the pool data ↗

Convert to PXS

Multiply the pool price by Hive’s median HBD per HIVE, counting one HBD as one US dollar. Then divide the latest US Big Mac price by the dollar price of one PIXA. The result is the target in PIXA per PXS.

The Economist’s Big Mac data ↗

Publish the witness rate

Each hourly update can rise to the previous ratio times 1.10, or fall to the previous ratio divided by 1.10. A witness with no feed, or one older than seven days, starts at the target. Pixa calculates the network median separately.

Inspect the publisher ↗

Try it locally

Starting with a new server? Set up your first Pixa witness.

Extract the ZIP and open its folder in a terminal with Node.js 24 and npm. The preview uses public data and the witness’s public key.

npm ci --ignore-scripts
node --test tests/feed-price.test.mjs
node scripts/pixagram/price-feed.mjs --preview elmerlin

Replace elmerlin with a registered witness name to check its next update. The result shows the market inputs, the target rate and the unsigned price update checked against the node. The included README covers signing and hourly operation on your own witness machine.