Skip to content

Add PaySpawn skill — on-chain spending limits for agent wallets#186

Open
adambrainai wants to merge 1 commit intoBankrBot:mainfrom
adambrainai:payspawn/spending-limits
Open

Add PaySpawn skill — on-chain spending limits for agent wallets#186
adambrainai wants to merge 1 commit intoBankrBot:mainfrom
adambrainai:payspawn/spending-limits

Conversation

@adambrainai
Copy link

PaySpawn — Contract-Enforced Spending Controls

PaySpawn adds the spending control layer that Bankr agents are currently missing. Your Bankr wallet holds the funds; PaySpawn's V5.3 contract on Base controls how much any agent can move.

What it does

  • Daily cap — agent cannot exceed X USDC per day, no matter what
  • Per-tx limit — single payment capped at Y USDC
  • Address whitelist — agent can only pay approved addresses
  • Kill switchps.agent.pause() stops all payments instantly, on-chain
  • Fleet mode — one shared pool, multiple agents, each with its own cap

Why it matters

This is the gap that caused the $270k Lobstar drain — software limits failed, on-chain limits wouldn't have. Works alongside any agent wallet including Bankr. One dashboard visit to create a credential, then the agent runs autonomously within hard contract limits.

Skill details

Tested with real on-chain transactions. All demo txs verifiable on Basescan.

PaySpawn adds contract-enforced spending controls on top of any agent wallet
(including Bankr). Daily cap + per-tx limit enforced by V5.3 contract on Base.
No API to bypass. Prevents prompt injection drains like the Lobstar incident.

- Works alongside Bankr wallet (funding layer stays, PaySpawn is the cap layer)
- Fleet mode: one pool, multiple agents, each with its own daily limit
- Kill switch: ps.agent.pause() kills all payments instantly, on-chain
- npm: @payspawn/sdk v5.3+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant