81trust / 100

Token Gini Index

by gov.halowerk.com in Onchain & crypto

x402 APIPassing, checked 3 h ago

Sorts caller-supplied non-negative balances and computes the standard finite-sample Gini coefficient plus top-one and top-ten-percent shares. Results cover only supplied accounts and do not identify common ownership, custodians, vesting, delegation, or off-chain claims.

POST https://gov.halowerk.com/v1/token-gini-index

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
285 ms typical, 285 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://gov.halowerk.com/v1/token-gini-index" \
  -H "content-type: application/json" \
  -d '{"holders":[{"balance":10,"holder_id":"h1"},{"balance":20,"holder_id":"h2"},{"balance":30,"holder_id":"h3"},{"balance":140,"holder_id":"h4"}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgov.halowerk.com%2Fv1%2Ftoken-gini-index
const res = await pay("https://gov.halowerk.com/v1/token-gini-index", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"holders":[{"balance":10,"holder_id":"h1"},{"balance":20,"holder_id":"h2"},{"balance":30,"holder_id":"h3"},{"balance":140,"holder_id":"h4"}]}),
});
console.log(await res.json());

Example input

{
  "holders": [
    {
      "balance": 10,
      "holder_id": "h1"
    },
    {
      "balance": 20,
      "holder_id": "h2"
    },
    {
      "balance": 30,
      "holder_id": "h3"
    },
    {
      "balance": 140,
      "holder_id": "h4"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402285 ms$0.002