78trust / 100

Legacy Celestial Position Snapshot

by Maha Celestial Calculations in Onchain & crypto

x402 APIPassing, checked 43 min ago

Build an astronomy or astrology tool with seven classical-body geocentric longitudes at one UTC instant, Tropical and versioned Lahiri Sidereal frames, conventions and a deterministic Supplied-record analysis, not independent certification. Full contract at the free describe URL.

POST
https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot
Price
$0.02
per call in USDC
Uptime
100%
last 30 days
Response time
238 ms
307 ms slowest 5%
Last check
Passed
43 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot

Each call costs $0.020001 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot
content-type: application/json

{
  "dataClass": "synthetic",
  "nonpersonalMetadata": true,
  "request": {
    "dataClass": "synthetic",
    "instantUtc": "2000-01-01T12:00:00.000Z"
  }
}

Parameters

ParameterTypeRequiredDescription
dataClassstringYes One of: public, synthetic.
nonpersonalMetadatabooleanYes
requestobjectYes

Example response

The provider's example. We can't check it without paying.

Example response, 54 lines
{
  "data": {
    "chargedAmount": "20001",
    "inputHash": "sha256:ee1a19e67a8b4d2924f7d49f952969e311670209dfe15139aa3510d19…",
    "limitations": [
      "Public or synthetic nonpersonal input only; caller labels are no…"
    ],
    "productId": "celestial-position-snapshot",
    "result": {
      "boundaries": [
        "Calculation and convention evidence only; no forecasting narrati…"
      ],
      "conventions": {
        "ayanamsa": "maha-lahiri-j2000-iau2006/1",
        "birthBalance": "actual-nakshatra-stay-time",
        "chartVersion": "natal-chart/0.3",
        "elevationMeters": 0,
        "ephemeris": "astronomy-engine-2.1.19",
        "frames": [
          "tropical",
          "lahiri-sidereal"
        ],
        "houses": "sidereal-whole-sign",
        "inputTime": "UTC; caller resolves local time and DST",
        "nodes": "mean",
        "origin": "geocentric",
        "panchangaVersion": "panchanga/0.1",
        "timingVersion": "natal-timing/0.1",
        "yearLengthDays": 365.2425
      },
      "inputDigest": "sha256:649c719b2a97cde3110b7625358d29a1439d4ebd56326f01473819c19…",
      "offerId": "celestial-position-snapshot",
      "receiptDigest": "sha256:838e1852a4b95990faf2d44f94c075510e9a82c53aa4e7c7ac0668dfc…",
      "result": {
        "ayanamsaDegrees": 23.85297,
        "instantUtc": "2000-01-01T12:00:00.000Z",
        "positions": [
          {
            "body": "Sun",
            "siderealLongitude": 256.5156701608761,
            "tropicalLongitude": 280.36864016087605
          }
        ]
      },
      "version": "maha-celestial-calculations/0.1"
    },
    "resultHash": "sha256:3171e01556cc1e00bdee0d9900d911e8fdad2173bfd595b23d18f57c1…",
    "version": "maha-reviewed-legacy-port/1"
  },
  "proof": {
    "settlement_id": "0x00000000000000000000000000000000000000000000000000000000000000…"
  },
  "success": true
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.020001.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot' \
  -H 'content-type: application/json' \
  --data-raw '{"dataClass":"synthetic","nonpersonalMetadata":true,"request":{"dataClass":"synthetic","instantUtc":"2000-01-01T12:00:00.000Z"}}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot' \
  -H 'content-type: application/json' \
  --data-raw '{"dataClass":"synthetic","nonpersonalMetadata":true,"request":{"dataClass":"synthetic","instantUtc":"2000-01-01T12:00:00.000Z"}}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.020001 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.020001" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.020001 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.mahastrategies.com%2Fapi%2Fv1%2Fcelestial%2Flegacy%2Fcelestial-position-snapshot&method=POST
const res = await pay("https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "dataClass": "synthetic",
    "nonpersonalMetadata": true,
    "request": {
      "dataClass": "synthetic",
      "instantUtc": "2000-01-01T12:00:00.000Z"
    }
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.020001 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.020001"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://www.mahastrategies.com/api/v1/celestial/legacy/celestial-position-snapshot",
        json={
            "dataClass": "synthetic",
            "nonpersonalMetadata": True,
            "request": {
                "dataClass": "synthetic",
                "instantUtc": "2000-01-01T12:00:00.000Z",
            },
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
43 min agoPassed402307 ms$0.02
5 h agoPassed402238 ms$0.02
10 h agoPassed402260 ms$0.02
15 h agoPassed402284 ms$0.02
19 h agoPassed402221 ms$0.02
Show 2 older checks
24 h agoPassed402195 ms$0.02
33 h agoPassed402237 ms$0.02