Overview

Real-world Zafeguard SDK recipes — production patterns for smart accounts, DeFi integrations, and gasless transactions.

Overview

End-to-end SDK examples for real-world use cases. Each example shows the full flow — from key derivation to on-chain confirmation — using the Zafeguard component library.


Wallet Solutions

End-to-end blueprints for production wallet shapes. Pick the section that matches your product tier; each is composed from @zafeguard/mpc-sdk plus the workflow canvas.

SolutionDescription
Embedded Wallet SolutionConsumer-facing wallet — device share + cloud cohort, RecoveryKind clauses, presignature pool. Includes the Smart Account Flow production pattern (LINE LIFF / Telegram / Discord / in-game / email-login): one MPC root key, per-user BIP-44 derivation, counterfactual Gnosis Safe, gas-sponsor workflow.
Custody Whitelabel SolutionInstitutional custody whitelabel — hot (ClusterAgent cluster), warm (server-side EmbeddedAgent online), cold (the cold-wallet flow partial-ferry). Three tiers, each with its own topology and policy posture.

Smart Accounts

ExampleDescription
Gnosis Safe — Lazy Deploy + Gas SponsorshipCreate a smart account per user that auto-deploys on first use. A relayer MPC key sponsors all gas.

DeFi & Token Operations

ExampleDescription
Gasless Transfer with Permit2Transfer ERC-20 tokens without a prior approve() using a Permit2 signature signed by an MPC key.

Every component used in these examples is documented in the Component Library. Click any component name in the examples to jump to its full spec.

On this page