Contract account examples
Use these projects as references or starting points. They are community-built; review and test before reusing in production.
Zafegard
A smart wallet that demonstrates the use of stateful policy signers.
- View the code
- Watch the demo video
Do Math
A smart wallet that demonstrates the use of multi-sig and policy signers to, surprisingly, do math without needing to input a passkey for every interaction.
- View the code
- Watch the demo video
Soroban by example
An app that uses passkeys to sign Stellar smart contract transactions.
- View the demo
- View the code
- Watch the demo video
- Watch the discussion
- Read the blog
Super Peach
A passkey-powered multi-signer abstract account contract example.
- View the demo
- View the code
- Watch the demo video
Ye Olde Guestbook
A passkey-powered internet guestbook from yesteryear built with smart contracts and frontend code.
Guides in this category:
📄️ Smart wallets
Smart wallets are contract accounts that act as user wallets. They hold assets and enforce authorization in check_auth instead of a single secret key. Passkeys (WebAuthn) are common, but you can also use Ed25519 keys, policy signers, session keys or anything the contract can verify.
📄️ Advanced contract account patterns
Layer spend limits, allow lists, time rules, and other guardrails onto contract accounts.
📄️ Contract account examples
Real projects that showcase policy signers, passkeys, and contract-account UX on Stellar.