pox - Stacks

Returns Proof-of-Transfer (PoX) details: the active PoX contract, cycle lengths, total liquid supply, and the current and next reward cycles with their stacking thresholds.

Endpoint

httpGET /v2/pox

Example

bashexport STACKS_RPC=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${STACKS_RPC}v2/pox"

Response

json{
    "contract_id": "SP000000000000000000002Q6VF78.pox-4",
    "pox_activation_threshold_ustx": 68038426328817,
    "first_burnchain_block_height": 666050,
    "current_burnchain_block_height": 867890,
    "prepare_phase_block_length": 100,
    "reward_phase_block_length": 2000,
    "reward_slots": 4000,
    "total_liquid_supply_ustx": 1360768526576349,
    "current_cycle": {
        "id": 110,
        "min_threshold_ustx": 90000000000,
        "stacked_ustx": 500000000000000,
        "is_pox_active": true
    },
    "next_cycle": {
        "id": 111,
        "min_threshold_ustx": 90000000000,
        "blocks_until_prepare_phase": 150
    }
}

Response Fields

FieldTypeDescription
contract_idstringThe active PoX contract (e.g. pox-4)
current_burnchain_block_heightnumberCurrent Bitcoin block height
reward_phase_block_lengthnumberLength of the reward phase in burn blocks
total_liquid_supply_ustxnumberTotal liquid STX supply, in microSTX
current_cycleobjectThe current reward cycle: id, threshold, stacked amount, active flag
next_cycleobjectThe next reward cycle and blocks until its prepare phase

Use Cases

  • Stacking UX: Show the current cycle, threshold, and time to the next cycle
  • Reward math: Read cycle lengths to schedule stacking operations

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid or the transaction was rejected
404 / Not foundNot foundThe account, contract, map entry, variable, or constant does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect