Metacenter

GET /intervals

Every pox-5 distribution since cycle 141, with cross-check results.

curl https://metacenter.0xo.in/api/intervals

Each item has the distribution index, cycle, calculation height and txid. It also has gross_pool, obligation, bond_paid, shortfall, stx_only, reserve_deposit, reserve_balance, coverage, headroom, stx_only_yield, stx_only_apy_btc, price and cliff_price, plus crosscheck and risk_feed publication status.

Live response (latest item)

GET https://metacenter.0xo.in/api/intervals · read at block 976,724
{
  "distribution_index": 294,
  "cycle": 147,
  "calculation_height": 975799,
  "txid": "0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c",
  "gross_pool": {
    "value": "430445092",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: gross-accrued-rewards"
  },
  "obligation": {
    "value": "104116159",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: sum of bond-distribution target-yield"
  },
  "bond_paid": {
    "value": "104116159",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: total-bond-rewards"
  },
  "shortfall": {
    "value": "0",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "obligation - bond_paid"
  },
  "stx_only": {
    "value": "277379594",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: total-stx-staker-rewards"
  },
  "reserve_deposit": {
    "value": "48949339",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: reserve-deposit"
  },
  "reserve_balance": {
    "value": "610081544",
    "unit": "sats",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: reserve-balance"
  },
  "coverage": {
    "value": 4.134277485207652,
    "unit": "x",
    "provenance": "mirrored",
    "source": "gross_pool / obligation"
  },
  "headroom": {
    "value": 0.758119767340732,
    "unit": "fraction",
    "provenance": "mirrored",
    "source": "1 - obligation / gross_pool"
  },
  "stx_only_yield": {
    "value": 0.5663632759009278,
    "unit": "sats per STX per interval",
    "provenance": "mirrored",
    "source": "mainnet pox-5 calculate-rewards event, tx 0x3b0c07688b494f22e7bf9d45884c9f4c71fcbba1ca758b135e939b2bf50e843c: total-stx-staker-rewards / cycle-staked-ustx * 1e6"
  },
  "stx_only_apy_btc": {
    "value": 0.06820007720317371,
    "unit": "fraction per year",
    "provenance": "mirrored",
    "source": "stx_only_yield * 50 / price (coingecko:market_chart/range @ 1794662400)"
  },
  "price": {
    "value": 415.221873,
    "unit": "sats per STX",
    "provenance": "mirrored",
    "source": "coingecko:market_chart/range @ 1794662400"
  },
  "cliff_price": {
    "value": 100.43396324645701,
    "unit": "sats per STX",
    "provenance": "mirrored",
    "source": "price * obligation / gross_pool",
    "note": "assumes miner BTC bids scale linearly with the STX price"
  },
  "crosscheck": {
    "ok": true,
    "note": "diff vs event (sats): gross -3, reserve 0, stx -1, bonds -2",
    "method": "recomputed from pox-5 state before/after the calculate-rewards block (call-read ?tip=)",
    "tip_before": "0x552ffec710e6d0ac7d1921f21b4c4b9dab4cd1139c6bd1f4600ef88c23c99661",
    "tip_after": "0x0fdba6998e823bad25fc2590c4807b85750263ff11c48c674627cfb91ca9bc88"
  },
  "risk_feed": {
    "contract": "ST24MYZSDF0TAVZ452R2TJY3RCQAVT3KR0FJHYCAJ.risk-feed",
    "network": "testnet",
    "txid": "0x17873bcb98475255a00dd4c914fcfddd6ad460bf5175d441c091ec95b3dfd6d6",
    "status": "confirmed",
    "note": "testnet feed values mirror mainnet data"
  }
}

Showing the latest item of intervals; the full response has more fields.

Edit on GitHub

On this page