RailguardRailguard

v0.1.0-alpha · Stellar testnet · Horizon

Verified testnet settlement

What happened: A testnet XLM payment was confirmed on Horizon, and a Soroban contract enforced an agent budget on chain for Circle testnet USDC.

What Railguard checked: That the payment matched its intent, and that the contract rejected duplicates, replays, changed recipients, extra amounts and overspend.

Why it matters: The same rules hold even if the app is bypassed: the contract itself refuses bad payments.

Horizon-based observe/reconcile: a Stellar testnet payment was verified as CONFIRMED and recorded in a reproducible evidence manifest. No sign-in or wallet required — use Horizon and the repo links below.

CONFIRMED · Horizon verify

3dc3225844f711f9f96ead65690d224b7ccfd616d1da5387df6bfc63bfb8e437

Amount
1 XLM · native
Source
GAI6KWY3IPPQSGEXWFARHI7DGPWGQQEXYOB3C7ZRWSTXVMIMIXUGDSXC
Destination
GB2VOBJNNP4ZC3LNJBDJ6CMD3PC2FJFI24MOCE4W6LDMVPSCMYYN6NIG
Memo
PI:pi-testnet-evidence:idem-…
Transaction
3dc3225844f711f9f96ead65690d224b7ccfd616d1da5387df6bfc63bfb8e437
Manifest generated
2026-10-04T12:22:17.727Z

Soroban policy contract (testnet USDC)

The same rules, enforced on-chain. An operator sets a per-agent budget and grants one intent bound to recipient, asset and amount. The contract derives a deterministic request id, lets the agent execute it exactly once, and rejects duplicates, replays and any changed field. Railguard then re-checks the execute transaction on Horizon before calling it CONFIRMED.

CONFIRMED · settlement verified

2e8c13fab4feb88a451ec617dc9c5a129a600e7e6dc62c1868d67336702f8353

Contract
CBUY5JNZEGYR7I3QJEIALF2DR4NNS3OHEBOS7CGEXY2J4VU64IM7ZL5N
Asset
Circle testnet USDC (GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5)
Budget / intent
5 USDC budget · 1.25 USDC granted and executed
Request id
a51ce40f43414f30b131c12b6812200053d1db0d93fa679f004f0a49114268db
Agent
GDX7EBCAC4NVLPBE4TGDNEUEA2TAGOYCKELCQP245YMHA66GV6PIDLP5
Recipient
GATQQK34YWBIHF3KTSFL4EFEPTIFH5UJK347CLKAJGYO437KRKTU22VO
Grant tx
063cfeb9165754d71309bd996ae5b117b34caf1e5d887fc6facbe2bee2be076e
Execute tx
2e8c13fab4feb88a451ec617dc9c5a129a600e7e6dc62c1868d67336702f8353
Rejected
Grant the same intent again → DuplicateRequest
Rejected
Execute to a different recipient → IntentMismatch
Rejected
Execute 1 stroop more than granted → IntentMismatch
Rejected
Execute again after success (replay) → AlreadyExecuted
Rejected
Grant 4 USDC with 1.25 spent of a 5 USDC budget → BudgetExceeded
Recorded
2026-10-23

bun run stellar-soroban-policy-evidence

Reproduce locally

bun run stellar-testnet-evidence

Requires funded Stellar testnet keys in your environment (see docs/P0_TESTNET_COMPLETE.md in the gateway repo).

Inspect on HorizonEvidence manifestAll proofsTry the demo