71trust / 100

Pre Sign Conformance

by trashpanda-pre-sign-conformance in Onchain & crypto

x402 APIPassing, checked 5 h ago

Deterministically evaluates one unsigned Base transaction against the buyer's exact policy and immutable block anchor before signing, returning a replayable clause-by-clause PASS, FAIL, or ESCALATE receipt. No keys, signatures, custody, signing, or broadcast authority are accepted.

POST
https://market.561.group/v1/pre-sign/conformance
Price
$0.03
per call in USDC
Uptime
100%
last 30 days
Response time
937 ms
1.4 s slowest 5%
Last check
Passed
5 h 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://market.561.group/v1/pre-sign/conformance

Each call costs $0.03 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://market.561.group/v1/pre-sign/conformance
content-type: application/json

{
  "anchor": {
    "blockHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "blockNumber": "1",
    "chainId": 8453,
    "type": "ImmutableBaseBlockAnchor"
  },
  "evidence": [],
  "policy": {
    "clauses": [
      {
        "chainId": 8453,
        "id": "a-chain",
        "type": "ChainIdEquals"
      }
    ],
    "type": "BasePreSignPolicy",
    "version": 1
  },
  "receiptProfile": "full-v1",
  "transaction": {
    "chainId": 8453,
    "data": "0x",
    "gasLimit": "21000",
    "nonce": "0",
    "sender": "0x1111111111111111111111111111111111111111",
    "to": "0x2222222222222222222222222222222222222222",
    "type": "UnsignedBaseTransaction",
    "valueWei": "0"
  },
  "type": "BasePreSignConformanceRequest",
  "version": 1
}

Parameters

ParameterTypeRequiredDescription
anchorobjectYesOne immutable Base block number and hash.
evidencearrayYesDeterministic evidence objects cited by policy clauses.
policyobjectYesThe exact deterministic policy clauses to evaluate.
receiptProfileanyYes
transactionobjectYesOne unsigned Base transaction; credentials, signatures, signed transactions, custody, signing, and broadcast grants are refused.
typeanyYes
versionanyYes

Example response

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

Example response, 82 lines
{
  "anchorAssurance": "customer-declared-unverified",
  "block": {
    "hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "number": "1"
  },
  "chain": {
    "caip2": "eip155:8453",
    "chainId": 8453
  },
  "clauseResults": [
    {
      "actual": 8453,
      "clauseId": "a-chain",
      "clauseType": "ChainIdEquals",
      "disposition": "PASS",
      "evidenceReferences": [],
      "expected": 8453
    }
  ],
  "engine": {
    "id": "ni:///sha-256;Hb2S8iZrnwzh6Alj7lo0iYRXy25ByoNwbHi-gwatRhU",
    "version": 2
  },
  "evidenceAssurance": "customer-declared-unverified",
  "evidenceReferences": [],
  "forbiddenEffects": {
    "broadcast": false,
    "credentials": false,
    "custody": false,
    "signing": false,
    "stateMutation": false
  },
  "id": "ni:///sha-256;NYqiNcrA_5bH1ysrXsy7hO0PzeX2NclTFkn85KCfvVk",
  "policyDigest": "ni:///sha-256;KZjmKuiZr5WC3oHkQcG3xQmP0ZqOt22H1dmYTBxaPG0",
  "replay": {
    "engineId": "ni:///sha-256;Hb2S8iZrnwzh6Alj7lo0iYRXy25ByoNwbHi-gwatRhU",
    "expectedReceiptProfile": "full-v1",
    "export": "evaluateBasePreSignPolicy",
    "module": "@red-cup-engineering/[email protected]",
    "normalizedRequest": {
      "anchor": {
        "blockHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "blockNumber": "1",
        "chainId": 8453,
        "type": "ImmutableBaseBlockAnchor"
      },
      "evidence": [],
      "policy": {
        "clauses": [
          {
            "chainId": 8453,
            "id": "a-chain",
            "type": "ChainIdEquals"
          }
        ],
        "type": "BasePreSignPolicy",
        "version": 1
      },
      "receiptProfile": "full-v1",
      "transaction": {
        "chainId": 8453,
        "data": "0x",
        "gasLimit": "21000",
        "nonce": "0",
        "sender": "0x1111111111111111111111111111111111111111",
        "to": "0x2222222222222222222222222222222222222222",
        "type": "UnsignedBaseTransaction",
        "valueWei": "0"
      },
      "type": "BasePreSignConformanceRequest",
      "version": 1
    },
    "operation": "evaluateBasePreSignPolicy",
    "runtime": "node>=22.18"
  },
  "requestDigest": "ni:///sha-256;a11hNQXJ34rZfGk823_e-4h2EOO-PF6POfwyMceH22Y",
  "transactionDigest": "ni:///sha-256;Gv7Dsz1qLH7bADxe1632n4apGzl8x9EHNBrylpXi1UA",
  "type": "BasePreSignPolicyConformanceReceipt",
  "verdict": "PASS",
  "version": 1
}

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.03.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://market.561.group/v1/pre-sign/conformance' \
  -H 'content-type: application/json' \
  --data-raw '{"anchor":{"blockHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","blockNumber":"1","chainId":8453,"type":"ImmutableBaseBlockAnchor"},"evidence":[],"policy":{"clauses":[{"chainId":8453,"id":"a-chain","type":"ChainIdEquals"}],"type":"BasePreSignPolicy","version":1},"receiptProfile":"full-v1","transaction":{"chainId":8453,"data":"0x","gasLimit":"21000","nonce":"0","sender":"0x1111111111111111111111111111111111111111","to":"0x2222222222222222222222222222222222222222","type":"UnsignedBaseTransaction","valueWei":"0"},"type":"BasePreSignConformanceRequest","version":1}'

# 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://market.561.group/v1/pre-sign/conformance' \
  -H 'content-type: application/json' \
  --data-raw '{"anchor":{"blockHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","blockNumber":"1","chainId":8453,"type":"ImmutableBaseBlockAnchor"},"evidence":[],"policy":{"clauses":[{"chainId":8453,"id":"a-chain","type":"ChainIdEquals"}],"type":"BasePreSignPolicy","version":1},"receiptProfile":"full-v1","transaction":{"chainId":8453,"data":"0x","gasLimit":"21000","nonce":"0","sender":"0x1111111111111111111111111111111111111111","to":"0x2222222222222222222222222222222222222222","type":"UnsignedBaseTransaction","valueWei":"0"},"type":"BasePreSignConformanceRequest","version":1}' \
  | 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.03 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.03" });
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.03 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmarket.561.group%2Fv1%2Fpre-sign%2Fconformance&method=POST
const res = await pay("https://market.561.group/v1/pre-sign/conformance", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "anchor": {
      "blockHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "blockNumber": "1",
      "chainId": 8453,
      "type": "ImmutableBaseBlockAnchor"
    },
    "evidence": [],
    "policy": {
      "clauses": [
        {
          "chainId": 8453,
          "id": "a-chain",
          "type": "ChainIdEquals"
        }
      ],
      "type": "BasePreSignPolicy",
      "version": 1
    },
    "receiptProfile": "full-v1",
    "transaction": {
      "chainId": 8453,
      "data": "0x",
      "gasLimit": "21000",
      "nonce": "0",
      "sender": "0x1111111111111111111111111111111111111111",
      "to": "0x2222222222222222222222222222222222222222",
      "type": "UnsignedBaseTransaction",
      "valueWei": "0"
    },
    "type": "BasePreSignConformanceRequest",
    "version": 1
  }),
});
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.03 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.03"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://market.561.group/v1/pre-sign/conformance",
        json={
            "anchor": {
                "blockHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                "blockNumber": "1",
                "chainId": 8453,
                "type": "ImmutableBaseBlockAnchor",
            },
            "evidence": [],
            "policy": {
                "clauses": [
                    {
                        "chainId": 8453,
                        "id": "a-chain",
                        "type": "ChainIdEquals",
                    },
                ],
                "type": "BasePreSignPolicy",
                "version": 1,
            },
            "receiptProfile": "full-v1",
            "transaction": {
                "chainId": 8453,
                "data": "0x",
                "gasLimit": "21000",
                "nonce": "0",
                "sender": "0x1111111111111111111111111111111111111111",
                "to": "0x2222222222222222222222222222222222222222",
                "type": "UnsignedBaseTransaction",
                "valueWei": "0",
            },
            "type": "BasePreSignConformanceRequest",
            "version": 1,
        },
    )
    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
5 h agoPassed40270 ms$0.03
10 h agoPassed402971 ms$0.03
15 h agoPassed402952 ms$0.03
20 h agoPassed4021.5 s$0.03
26 h agoPassed4021.4 s$0.03
Show 10 older checks
31 h agoPassed4021.1 s$0.03
35 h agoPassed402648 ms$0.03
40 h agoPassed4021.4 s$0.03
45 h agoPassed402964 ms$0.03
2 days agoPassed402937 ms$0.03
2 days agoPassed4021.4 s$0.03
2 days agoPassed402926 ms$0.03
3 days agoPassed402246 ms$0.03
3 days agoPassed4021.1 s$0.03
3 days agoPassed402222 ms$0.03