Screen before you pay
БесплатноБез исполняемых скриптовНе проверенBefore your agent sends USDC to an x402 payTo, screen that address with LION's $0.001 OFAC wallet screen. PASS proceeds. WARN or BLOCK aborts. The same wallet…
от 8dp6brm9hp-svg316 установок в других каталогахОб этом скилле
lion-screen-before-pay
x402 verifies the payment, never who you are paying. An agent will happily send USDC to a payTo that belongs to a sanctioned, fraudulent, or honeypot counterparty. Screen first, pay second.
When to use
Whenever the agent is about to pay an x402 resource — or onboard/transact with any wallet, domain, or company. Screen the payTo before signing the payment.
The gate (one keyless call, $0.001 USDC on Base)
GET https://lionx402.com/api/x402/wallet-screen-json?address=<PAYTO>
address= the wallet you are about to pay.- Response:
{ "verdict": "PASS" | "WARN" | "BLOCK", "ofac": { "snapshot_as_of", "total_listed_addresses" }, "attestation" }. - Proceed on
PASS. Abort onWARNorBLOCK. Do not look forCLEAR. - The $0.05 compliance bundle is optional, and only when this screen is not enough:
GET https://lionx402.com/api/x402/compliance-bundle-json?address=<PAYTO>&receipt=1.
Workflow
- Hit the target resource without paying. On
402, readpayTofrom thePAYMENT-REQUIREDheader (base64 JSON,accepts[0].payTo). Use the JSON body only if that header is absent. - Screen it — pay the $0.001 wallet screen for that
payTo(it is itself an x402 call; pay it with thecdp-x402buyer flow below). - Decide:
verdict == "PASS"→ proceed to pay the target.WARNorBLOCK→ ABORT. - Keep the signed body. It verifies offline (no callback) against LION's published key.
Screening the gate (reuses the cdp-x402 buyer flow)
PAYTO=0x... # the counterparty you're about to pay
LION="https://lionx402.com/api/x402/wallet-screen-json?address=$PAYTO"
# The challenge is the PAYMENT-REQUIRED header. Use the JSON body only when that header is absent.
HDR=$(curl -sD - -o /tmp/lion_screen_body.json "$LION" | awk 'tolower($1)=="payment-required:" { gsub(/\r/,""); print $2; exit }')
if [ -n "$HDR" ]; then
REQ=$(printf '%s' "$HDR" | python3 -c 'import sys,base64,json; s=sys.stdin.read().strip().replace("-","+").replace("_","/"); s+="="*((4-len(s)%4)%4); print(json.dumps(json.loads(base64.b64decode(s))["accepts"][0], separators=(",", ":")))')
else
REQ=$(jq -c '.accepts[0]' /tmp/lion_screen_body.json)
fi
addr=$(cdp evm accounts by-name name=$ACCOUNT | jq -r .address)
payload=$(cdp util x402 build --from $addr --payment-requirements "$REQ")
D=$(echo "$payload" | jq -c .domain); T=$(echo "$payload" | jq -c .types)
P=$(echo "$payload" | jq -r .primaryType); M=$(echo "$payload" | jq -c .message)
sig=$(cdp evm accounts sign typed-data $addr \
"domain:=$D" "types:=$T" "primaryType=$P" "message:=$M" | jq -r .signature)
header=$(cdp util x402 encode --payment-requirements "$REQ" \
--signature "$sig" --authorization "$M" --x402-version 2)
RESULT=$(curl -s -H "X-PAYMENT: $header" -H "PAYMENT-SIGNATURE: $header" "$LION")
verdict=$(echo "$RESULT" | jq -r '.verdict // .receipt.verdict')
if [ "$verdict" != "PASS" ]; then
echo "BLOCKED ($verdict): $(echo "$RESULT" | jq -c '.flags')"; exit 1 # fail-closed: do NOT pay
fi
echo "$RESULT" | jq -c '.' > last_wallet_screen.json # keep the proof
# verdict PASS -> now pay the original target resource.
Second call — did the verdict flip? ($0.01)
The $0.001 screen is one-shot. The next time this agent pays the same counterparty, recheck instead of buying another dossier. The receipt includes the Treasury OFAC snapshot date (ofac.snapshot_as_of) and the address count (ofac.addresses_in_snapshot). Entity names are a curated index, not the full SDN name file. The response also says whether the verdict changed since the last signed recheck.
GET https://lionx402.com/api/x402/counterparty-recheck-json?address=<PAYTO>
GET https://lionx402.com/api/x402/counterparty-recheck-json?address=<PAYTO>&domain=<DOMAIN>
action:GO|HOLD|STOP. STOP when the verdict is BLOCK. HOLD when the verdict is WARN orchangedis true. GO only when PASS andchangedis not true.ofac.snapshot_as_ofandofac.addresses_in_snapshot: the Treasury publication date of the digital-currency address list, and how many addresses are in it. Read these from the receipt. Do not take a count from this skill.verdict:PASS|WARN|BLOCK(same branch as the wallet screen).changed:falseon the first stored check,truewhen the verdict or hit flags flipped.prior_receipt_id: the previous receipt, or null.receipt_id+attestation: the new Ed25519 receipt. Keep it. The next recheck compares against it.
Abort on STOP or HOLD. Proceed only on GO. Do not cache a PASS forever without this call.
Drop-in alternatives
- Wrapper:
npm i @lionx402/guard.withLionGuard(payFetch)readspayTofrom the header, pays the $0.001 screen, and throwsLionGuardBlockedErrorunless the verdict isPASS. The same address again, including after the process exits, pays the $0.01 recheck and proceeds only onGO. Remembered addresses
Установить Screen before you pay в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Screen before you pay?
Before your agent sends USDC to an x402 payTo, screen that address with LION's $0.001 OFAC wallet screen. PASS proceeds. WARN or BLOCK aborts. The same wallet again is the $0.01 recheck. GO proceeds. HOLD or STOP aborts.
Как установить скилл Screen before you pay?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Screen before you pay запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic