83trust / 100

Receipt

by 767-2676.com in Other

x402 APIPassing, checked 36 min ago

Signed time-bounded witness of an agent-carried payload digest; the payload stays with the agent

POST https://767-2676.com/v1/receipt

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://767-2676.com/v1/receipt" \
  -H "content-type: application/json" \
  -d '{"nonce":"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA","payload_digest":{"algorithm":"sha-256","value":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"previous_attestation_digest":null}'
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%2F767-2676.com%2Fv1%2Freceipt
const res = await pay("https://767-2676.com/v1/receipt", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"nonce":"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA","payload_digest":{"algorithm":"sha-256","value":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"previous_attestation_digest":null}),
});
console.log(await res.json());

Example input

{
  "nonce": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA",
  "payload_digest": {
    "algorithm": "sha-256",
    "value": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  },
  "previous_attestation_digest": null
}

Example output

{
  "payment_status": "settled",
  "witness_receipt": {
    "commitment": {
      "nonce": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA",
      "payload_digest": {
        "algorithm": "sha-256",
        "value": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
      },
      "previous_attestation_digest": null
    },
    "evidence_scope": {
      "action_execution_proven": false,
      "authorization_granted": false,
      "caller_identity_proven": false,
      "clock_accuracy_independently_verified": false,
      "external_atomic_clock_alignment_proven": false,
      "nonce_uniqueness_enforced": false,
      "payer_authorization_bound_to_commitment": false,
      "payload_disclosed": false,
      "recipient_delivery_proven": false,
      "replay_prevented": false,
      "type": "payload_commitment_witness"
    },
    "node_id": "767-2676.com",
    "protocol_id": "POPCORN-WITNESS/1.0",
    "receipt_id": "pwr_example"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
36 min agoPassed402169 ms$0.001
6 h agoPassed402346 ms$0.001