Open source · Onchain policies
Perch: a policy layer for Stellar smart accounts
Perch says what each key on a Stellar smart account may do, in a policy document anyone can review, and enforces it onchain. Spending caps, session keys, scoped app access and recovery compile onto OpenZeppelin’s smart-account rules. Every Nido wallet runs on it.
- Network
-
Stellar
- Our role
- Built and maintained by our team
- Built on
- OpenZeppelin stellar-accounts
- Status
- On mainnet since October 2026
- Published through
- The Stellar Registry
- Package
- @stellar-registry/perch
const doc = policy()
.signer('owner', external(WEBAUTHN_VERIFIER, passkey))
.signer('session', external(ED25519_VERIFIER, sessionKey))
.rule('daily-spend', r => r
.callContract(USDC)
.signedBy('session')
.func('transfer')
.cap({ limit: 1_000_000_000n, periodLedgers: 17280 }))
.build(); What it does
A smart account can hold several signers: a passkey on a phone, a session key an app holds for a while, a guardian for recovery. Perch decides what each of them may do. A policy is a reviewable, content-hashed document; Perch compiles it onto OpenZeppelin’s context rules onchain, where the account enforces it on every call.
- Spending caps, per asset and per period
- Session keys scoped to one contract and one function
- Scoped access for each app
- Recovery by guardians, a zero-knowledge proof, or both
On mainnet
Perch’s contracts went live on mainnet between October 24 and 26, 2026, published and deployed through the Stellar Registry. Every Nido mainnet wallet runs on a Perch account.
Agama (SCF #45), Darwin and LumenSplit run their users on Perch session rules, so an app can act within limits the user set. During HackMeridian 2026, Perch enforced spending limits for 27 wallets on testnet.
The repo ships its own audit manifest: the commit in scope for review, the deployed build and its known limitations.
On builders’ roadmaps
ancora, from HackMeridian 2026, models its treasury policies on Perch’s document format, and Sidekey lists Perch as its next step.