/agentic-awesome-skills:nano-settlement-verifyfrom agentic-awesome-skills
Verifies Nano (XNO) payment settlement by checking a block hash against a public node before serving a paid call. Read-only, no seed or wallet required.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A buyer who pays a pay-per-call endpoint in Nano (XNO) hands the seller a block hash. This skill checks one necessary condition before serving: did that block pay this account exactly the quoted amount, and has the network confirmed it? It reads the public ledger and nothing else. It holds no seed, signs nothing and sends nothing.
Nearby skills: x402-express-wrapper describes taking USDC on Base; no skill here checks a Nano settlement. To hold
or spend Nano, use a wallet skill; this one is the seller side.
Python 3 standard library and network access to one Nano node RPC. The script below is the whole tool; there is
nothing to download. The only data sent is the block hash, to the node you choose (default https://rpc.nano.to).
Save this as verify.py (read it first: it makes one block_info request and does integer comparisons):
import json, sys, urllib.request, urllib.error
def verdict(block, expect_raw, account, rpc="https://rpc.nano.to"):
"""Return (exit_code, dict). Integers only; 'could not ask' is never 'invalid'."""
if not (len(block) == 64 and all(c in "0123456789abcdefABCDEF" for c in block)):
return 3, {"settled": False, "verdict": "invalid_block"}
if not expect_raw or not all(c in "0123456789" for c in expect_raw) or int(expect_raw) <= 0:
return 3, {"settled": False, "verdict": "invalid_amount"}
body = json.dumps({"action": "block_info", "json_block": "true", "hash": block}).encode()
req = urllib.request.Request(rpc, body, {"Content-Type": "application/json", "User-Agent": "nano-verify-inline"})
try:
with urllib.request.urlopen(req, timeout=15) as r:
info = json.load(r)
except (urllib.error.URLError, OSError, ValueError):
return 4, {"settled": False, "verdict": "node_unreachable"}
if not isinstance(info, dict):
return 4, {"settled": False, "verdict": "invalid_node_response"}
if "error" in info:
return 3, {"settled": False, "verdict": "no_such_block"}
c = info.get("contents", {})
amount = info.get("amount")
if not isinstance(c, dict) or not isinstance(amount, str) or not amount or not all(ch in "0123456789" for ch in amount):
return 4, {"settled": False, "verdict": "invalid_node_response"}
ok = (c.get("type") == "state" and info.get("subtype", c.get("subtype")) == "send"
and c.get("link_as_account") == account and int(amount) == int(expect_raw))
if not ok:
return 3, {"settled": False, "verdict": "mismatch"}
if info.get("confirmed") != "true":
return 2, {"settled": False, "verdict": "unconfirmed"}
return 0, {"settled": True, "verdict": "settled", "block": block.upper()}
if __name__ == "__main__":
if len(sys.argv) < 4:
print("usage: verify.py BLOCK_HASH EXPECT_RAW ACCOUNT [RPC_URL]", file=sys.stderr); sys.exit(64)
code, out = verdict(*sys.argv[1:5])
print(json.dumps(out)); sys.exit(code)
python3 verify.py BLOCK_HASH EXPECT_RAW ACCOUNT [RPC_URL]
BLOCK_HASH: the 64-hex send block the buyer gave you.EXPECT_RAW: the amount you quoted, in raw, as an integer. 1 XNO is 10^30 raw, so 0.001 XNO is
1000000000000000000000000000. Never use a decimal or float: it has about 15 significant digits and a raw amount
has 30, so the low digits, where an underpayment hides, would be lost. Decimals are refused as invalid_amount.ACCOUNT: the nano_ account you expected to be paid (the block's destination, not the chain it sits on).| exit | verdict | what to do |
|---|---|---|
| 0 | settled | continue to the order binding and atomic replay check below |
| 2 | unconfirmed | the node has the block but it is not confirmed: wait briefly, ask again |
| 3 | mismatch, no_such_block, invalid_amount, invalid_block | do not serve |
| 4 | node_unreachable, invalid_node_response | verification failed: do not serve; investigate or retry with a trusted RPC |
| 64 | usage | fix the call |
Exit 4 is not a bad payment. Treating it as a refusal cheats an honest buyer; treating it as success serves for free.
A settled verdict alone is never permission to serve. Bind the payment to the intended order and buyer, then atomically reserve the normalized block hash in durable shared storage with a unique constraint before fulfilling. A duplicate, an uncertain reservation, or an unbound order must fail closed; coordinate fulfillment and retries with the application’s existing transaction/idempotency design. A unique quoted amount alone does not prevent replay. This script does not implement order binding, replay protection, or fulfillment.
Only a send block settles anything: receive, open and change blocks are refused however well the amount matches.
User request: "A caller says they paid 0.0005 XNO for /api/summary, block hash B749B757EE750FC9AEA72F33CB429EACCD2ABEC9F2CCF59BF17AFAC304C9A58F. Serve it?"
Inputs: expected raw 500000000000000000000000000 (0.0005 XNO) to nano_1yo6c1t64ahfjdw1dxizmbbnpdmbrckwhw9phbg5pdkeubrizga4qhnjmnx7
Expected result (measured 2026-11-02 against rpc.nano.to): {"settled": true, "verdict": "settled", ...} and exit 0.
Changing the last digit of the amount gives {"verdict": "mismatch"} and exit 3.
The checker is read-only and cannot make a fulfillment decision alone. One HTTPS POST to the RPC you name, containing the block hash. No file writes, no secrets, no state changes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krishnakanthb13/antigravity-awesome-skills --plugin agentic-awesome-skills2,799 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.Other plugins' skills for the same job