S

Sslip · Market Data Attestation

by Sslip

POSTBase

$0.01

per call · USD Coin on Base

Market Data Integrity Attestation. The caller supplies the observations. Tradebot checks causal timing, freshness, gaps, sequencing, identity consistency, and cryptographic record hashes. The response contains a PASS/FAIL verdict, safe_to_use, named checks, and a deterministic attestation identity. It provides no trade recommendation and no market-data redistribution; it performs no market-data acquisition.

Endpoint

POST https://base.46-225-15-169.sslip.io/v1/market-data-attestation

1

Calls / 30d

1

Unique payers / 30d

Aug 17

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://base.46-225-15-169.sslip.io/v1/market-data-attestation", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "dataset_id": "decision-input-17",
    "observations": [
      {
        "event_time_ms": 2000000097000,
        "identity": "instrument-A",
        "payload_sha256": "5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9",
        "received_time_ms": 2000000097100,
        "sequence": 1
      },
      {
        "event_time_ms": 2000000098000,
        "identity": "instrument-A",
        "payload_sha256": "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b",
        "received_time_ms": 2000000098100,
        "sequence": 2
      },
      {
        "event_time_ms": 2000000099000,
        "identity": "instrument-A",
        "payload_sha256": "d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35",
        "received_time_ms": 2000000099100,
        "sequence": 3
      }
    ],
    "policy": {
      "allowed_future_clock_skew_ms": 1000,
      "expected_interval_ms": 1000,
      "interval_tolerance_ms": 0,
      "max_age_ms": 2000,
      "max_receive_lag_ms": 500,
      "require_identity_consistency": true,
      "require_sequence": true
    },
    "source_label": "caller-observer-A"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://base.46-225-15-169.sslip.io/v1/market-data-attestation" \
  -H "Content-Type: application/json" \
  -d '{"dataset_id":"decision-input-17","observations":[{"event_time_ms":2000000097000,"identity":"instrument-A","payload_sha256":"5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9","received_time_ms":2000000097100,"sequence":1},{"event_time_ms":2000000098000,"identity":"instrument-A","payload_sha256":"6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b","received_time_ms":2000000098100,"sequence":2},{"event_time_ms":2000000099000,"identity":"instrument-A","payload_sha256":"d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","received_time_ms":2000000099100,"sequence":3}],"policy":{"allowed_future_clock_skew_ms":1000,"expected_interval_ms":1000,"interval_tolerance_ms":0,"max_age_ms":2000,"max_receive_lag_ms":500,"require_identity_consistency":true,"require_sequence":true},"source_label":"caller-observer-A"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "attestation_id": "mda1_a4577ae9f3045428156e6523f910e91651fe463472a3cc2a603818cee12debc1",
  "attested_at_ms": 2000000100000,
  "checks": [
    {
      "check": "schema_and_count_bounds",
      "evidence": {
        "maximum": 512,
        "minimum": 1,
        "observation_count": 3,
        "timestamps_are_bounded_integers": true
      },
      "status": "PASS"
    },
    {
      "check": "causal_event_receive_timing",
      "evidence": {
        "minimum_receive_lag_ms": 100,
        "violations": 0
      },
      "status": "PASS"
    },
    {
      "check": "received_time_not_materially_future",
      "evidence": {
        "allowed_future_clock_skew_ms": 1000,
        "evaluation_time_ms": 2000000100000,
        "maximum_received_time_ms": 2000000099100,
        "violations": 0
      },
      "status": "PASS"
    },
    {
      "check": "receive_lag_limit",
      "evidence": {
        "maximum_allowed_receive_lag_ms": 500,
        "maximum_observed_receive_lag_ms": 100,
        "violations": 0
      },
      "status": "PASS"
    },
    {
      "check": "raw_observation_order",
      "evidence": {
        "event_times_monotonic": true,
        "input_was_sorted": false,
        "received_times_monotonic": true
      },
      "status": "PASS"
    },
    {
      "check": "unique_event_timestamps",
      "evidence": {
        "duplicate_count": 0
      },
      "status": "PASS"
    },
    {
      "check": "unique_sequence_numbers",
      "evidence": {
        "duplicate_count": 0,
        "present_count": 3
      },
      "status": "PASS"
    },
    {
      "check": "sequence_presence",
      "evidence": {
        "mixed_presence_allowed": false,
        "observation_count": 3,
        "present_count": 3,
        "required": true
      },
      "status": "PASS"
    },
    {
      "check": "strict_sequence_order",
      "evidence": {
        "applicable": true,
        "strictly_increasing": true
      },
      "status": "PASS"
    },
    {
      "check": "identity_consistency",
      "evidence": {
        "distinct_present_count": 1,
        "present_count": 3,
        "required": true
      },
      "status": "PASS"
    },
    {
      "check": "payload_hash_presence",
      "evidence": {
        "mixed_presence_allowed": false,
        "observation_count": 3,
        "present_count": 3,
        "syntax_schema_validated": true
      },
      "status": "PASS"
    },
    {
      "check": "latest_observation_freshness",
      "evidence": {
        "age_ms": 900,
        "evaluation_time_ms": 2000000100000,
        "latest_received_time_ms": 2000000099100,
        "maximum_age_ms": 2000
      },
      "status": "PASS"
    },
    {
      "check": "expected_event_interval",
      "evidence": {
        "comparison_count": 2,
        "configured": true,
        "expected_interval_ms": 1000,
        "maximum_allowed_delta_ms": 1000,
        "maximum_observed_delta_ms": 1000,
        "minimum_allowed_delta_ms": 1000,
        "minimum_observed_delta_ms": 1000,
        "tolerance_ms": 0
      },
      "status": "PASS"
    },
    {
      "check": "evidence_time_bounds",
      "evidence": {
        "evaluation_time_ms": 2000000100000,
        "first_event_time_ms": 2000000097000,
        "last_event_time_ms": 2000000099000,
        "latest_received_time_ms": 2000000099100
      },
      "status": "PASS"
    }
  ],
  "dataset_id": "decision-input-17",
  "disclaimer": "Integrity validation of caller-supplied observations only; no market data is acquired or redistributed, and no ownership, licensing, investment, or trading determination is made.",
  "failed_checks": [],
  "first_event_time_ms": 2000000097000,
  "last_event_time_ms": 2000000099000,
  "latest_received_time_ms": 2000000099100,
  "method_version": "market-data-integrity-attestation-v1.0.0",
  "observation_count": 3,
  "observations_sha256": "22da57641145c6e1d090e9e16d4a698c5f4ce3b2b8d061cd24b84430d0f9cc71",
  "policy_sha256": "05f284d3b67ab3a6b9bc8369d13c6b74743a7a66682a517cc79d754cf35b60b6",
  "safe_to_use": true,
  "schema_version": "market-data-attestation-request-v1",
  "source_label": "caller-observer-A",
  "verdict": "PASS"
}

Payment details

Pay to0x1bdd0cf6c2457765afeb717bc1e5d74b27d45a0f
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Sslip & similar services