78trust / 100

Cryptovar Risk Verify

by securaw.com in Security & trust

x402 APIPassing, checked 33 min ago

Verify a CryptoVar Black-Scholes VaR artifact by replaying its parameters, result and audit proof. 0.10 USDC. Returns valid true/false and the expected SHA-256 proof. An invalid artifact is a completed verification, not a service failure. CryptoVar artifacts only; no certification of model assumptions or future losses. Automatic delivery, 30-minute SLA. Idempotency-Key required.

POST https://www.securaw.com/cryptovar/x402/risk_verify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
160 ms typical, 183 ms slowest 5%
Last check
33 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.securaw.com/cryptovar/x402/risk_verify" \
  -H "content-type: application/json" \
  -d '{"parameters":{"audit":{"engine":"black_scholes","engine_params":{},"expected_shortfall":{"0.99":8064.971024063419},"loss_quantiles":{"0.99":7087.614491273314},"loss_variable":"L=-PnL","mean":-25.51015015937265,"quantiles":{"0.01":-7452.703592879662,"0.05":-5243.516648728367,"0.50":-16.38879064419598,"0.95":5031.827352997384,"0.99":7087.614491273314},"seed":123,"std":3129.324991860125,"var_side":"left"},"audit_proof":"0000000000000000000000000000000000000000000000000000000000000000","parameters":{"N":10000,"S0":100000,"T":0.0027397260273972603,"alpha":0.99,"engine":"black_scholes","mu":0,"seed":123,"sigma":0.6},"var":7087.614491273314},"service":"risk_verify"}'
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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.securaw.com%2Fcryptovar%2Fx402%2Frisk_verify
const res = await pay("https://www.securaw.com/cryptovar/x402/risk_verify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"parameters":{"audit":{"engine":"black_scholes","engine_params":{},"expected_shortfall":{"0.99":8064.971024063419},"loss_quantiles":{"0.99":7087.614491273314},"loss_variable":"L=-PnL","mean":-25.51015015937265,"quantiles":{"0.01":-7452.703592879662,"0.05":-5243.516648728367,"0.50":-16.38879064419598,"0.95":5031.827352997384,"0.99":7087.614491273314},"seed":123,"std":3129.324991860125,"var_side":"left"},"audit_proof":"0000000000000000000000000000000000000000000000000000000000000000","parameters":{"N":10000,"S0":100000,"T":0.0027397260273972603,"alpha":0.99,"engine":"black_scholes","mu":0,"seed":123,"sigma":0.6},"var":7087.614491273314},"service":"risk_verify"}),
});
console.log(await res.json());

Example input

{
  "parameters": {
    "audit": {
      "engine": "black_scholes",
      "engine_params": {},
      "expected_shortfall": {
        "0.99": 8064.971024063419
      },
      "loss_quantiles": {
        "0.99": 7087.614491273314
      },
      "loss_variable": "L=-PnL",
      "mean": -25.51015015937265,
      "quantiles": {
        "0.01": -7452.703592879662,
        "0.05": -5243.516648728367,
        "0.50": -16.38879064419598,
        "0.95": 5031.827352997384,
        "0.99": 7087.614491273314
      },
      "seed": 123,
      "std": 3129.324991860125,
      "var_side": "left"
    },
    "audit_proof": "0000000000000000000000000000000000000000000000000000000000000000",
    "parameters": {
      "N": 10000,
      "S0": 100000,
      "T": 0.0027397260273972603,
      "alpha": 0.99,
      "engine": "black_scholes",
      "mu": 0,
      "seed": 123,
      "sigma": 0.6
    },
    "var": 7087.614491273314
  },
  "service": "risk_verify"
}

Example output

{
  "result": {
    "expected_proof": "1a1ae1433cc731ae6c5937d32f60552534e028f535072b58cf94eaa75f33d06e",
    "valid": false
  },
  "service": "risk_verify"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
33 min agoPassed402170 ms$0.1
4 h agoPassed402160 ms$0.1
8 h agoPassed40238 ms$0.1
11 h agoPassed402162 ms$0.1
15 h agoPassed402160 ms$0.1
18 h agoPassed402140 ms$0.1
22 h agoPassed402183 ms$0.1
26 h agoPassed402166 ms$0.1
29 h agoPassed402158 ms$0.1
34 h agoPassed402157 ms$0.1
37 h agoPassed402161 ms$0.1
42 h agoPassed402270 ms$0.1