Price board
Every slot on the page, sorted by what it would cost to take right now. This is the simplest useful thing the API does, and the code underneath is the whole program.
const res = await fetch("https://notawebsite.fun/api/v1/site");
const { slots } = await res.json();
// Prices are decimal strings, not numbers — 2^53 wei is only ~0.009 ETH,
// so anything else silently rounds real money away.
slots
.sort((a, b) => (BigInt(a.price.current) < BigInt(b.price.current) ? 1 : -1))
.forEach((s) => console.log(s.key, s.price.current, s.owner));Loading…