Skip to content
Fourohtwo

detect.halowerk.com/v1/F-A-NEXT-MVCC_SNAPSHOT/postgres-mvcc-snapshot-tuple-visib

Returns which supplied physical tuple versions a PostgreSQL MVCC snapshot can see, including current command boundaries and a deletion that remains active in that snapshot, for an offline database-history agent.

BaseAnswering
POSThttps://detect.halowerk.com/v1/F-A-NEXT-MVCC_SNAPSHOT/postgres-mvcc-snapshot-tuple-visibility

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://detect.halowerk.com/v1/F-A-NEXT-MVCC_SNAPSHOT/postgres-mvcc-snapshot-tuple-visibility", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"mvcc_snapshot":{"claim":1,"snapshot":{"curcid":2,"current":35,"xip":[12,18],"xmax":30,"xmin":10},"transactions":[{"id":5,"status":"committed"},{"id":8,"status":"committed"}],"tuples":[{"cmax":0,"cmin":0,"frozen":false,"locked":false,"xmax":0,"xmin":5}]}}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "mvcc_snapshot": {
      "claim": 1,
      "snapshot": {
        "curcid": 2,
        "current": 35,
        "xip": [
          12,
          18
        ],
        "xmax": 30,
        "xmin": 10
      },
      "transactions": [
        {
          "id": 5,
          "status": "committed"
        },
        {
          "id": 8,
          "status": "committed"
        }
      ],
      "tuples": [
        {
          "cmax": 0,
          "cmin": 0,
          "frozen": false,
          "locked": false,
          "xmax": 0,
          "xmin": 5
        }
      ]
    }
  }
}