Skip to Content
KryptWarden Developers
Concepts

Zero-XLM relayer

Why the agent key never needs gas, and what the relayer can and can't do.

On Stellar, whoever submits a transaction pays its fee in XLM. KryptWarden makes sure that's never the agent. The agent key is an ed25519 key with 0 XLM and no Stellar account behind it. It only signs.

Who pays for what

TransactionSigned bySubmitted and paid by
x402 payment (USDC transfer)Agent (auth entry)Facilitator, as part of x402 /settle
request_holdAgent (KW_HOLD1 intent)Relayer, via POST /relayer/hold
record_rejected_attemptAgent (KW_REJ1 intent)Relayer, via POST /relayer/rejection
Deploy, fund, register, approve, withdraw, pauseOwnerOwner, from their wallet extension

The facilitator and the relayer are the same service at pay.kryptwarden.xyz, run by one funded account (GAB2…R6W).

Why it can't steal

The relayer only submits what the agent signed. The wallet contract checks the agent's signature over every field: domain, network, wallet, agent, seller, amount, request ID and an expiry ledger. Changing any of them breaks the signature. The relayer has no key on the wallet and no owner rights, so the worst a misbehaving relayer can do is refuse to submit, and that fails closed.

Abuse limits

A compromised agent could try to spam holds to burn the relayer's XLM. The relayer:

  • verifies the ed25519 signature locally before touching the network,
  • simulates the transaction (free) before sending it,
  • rate-limits each agent: by default 8 hold or rejection requests per minute,
  • caps its own daily XLM spend: by default 50 XLM.

The contract adds its own limit: at most 8 open holds per agent.

Bring your own

The SDK finds the relayer in this order: the relayerUrl option, then the FACILITATOR_URL environment variable, then https://pay.kryptwarden.xyz on Testnet. On any other network you must set it. See Self-hosting to run your own.

On this page