datenvertrag.halowerk.com/v1/kaprekar-four-digit-basin-census
For base2..10 enumerate the ENTIRE fixed4digit integer state space0..base^4-1, always retaining leadingzeros in digit extraction. Kaprekar transition sorts allfourdigits descending minus ascending, evaluated in that base. Return every attractorcycle in actual transition order rotated to minimum integer first, rows sorted by thatfirstmember; exact basin_size and counts by minimum steps until enteri
POST
https://datenvertrag.halowerk.com/v1/kaprekar-four-digit-basin-censusUptime100% 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://datenvertrag.halowerk.com/v1/kaprekar-four-digit-basin-census", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"base":10,"claimed_basins":[{"basin_size":10,"cycle":[0],"depth_counts":[1,9]},{"basin_size":9990,"cycle":[6174],"depth_counts":[1,383,576,2400,1272,1518,1656,2184]}]}),
});
console.log(await res.json());Example input
{
"base": 10,
"claimed_basins": [
{
"basin_size": 10,
"cycle": [
0
],
"depth_counts": [
1,
9
]
},
{
"basin_size": 9990,
"cycle": [
6174
],
"depth_counts": [
1,
383,
576,
2400,
1272,
1518,
1656,
2184
]
}
]
}