Resource Lock Mode
Magic Spend Resource Lock mode is designed for production-scale applications, enabling users to lock their tokens in specialized smart contracts and instantly access ETH across any supported chain through simple message signing.
Overview
Resource Lock mode eliminates the need for developer funding by allowing users to lock their own tokens in specialized contracts (OneBalance or Pimlico Lock). This enables immediate cross-chain liquidity while maintaining user control over their assets.
Key Features
- No Developer Funding Required: Users lock their own tokens
- User-Controlled Assets: Users maintain control over their locked funds
- Instant Cross-Chain Access: Quick access to ETH on any supported chain
- Multiple Lock Types: Choose between Pimlico Lock and OneBalance
- Currently ETH Only: Support for ETH withdrawals across all supported chains
How It Works
-
Initial Setup
- Choose a resource lock type (Pimlico Lock or OneBalance)
- Set up necessary integrations
-
User Flow
- User locks their tokens in the chosen resource lock
- User requests ETH on desired chain
- User signs allowance message
- User receives ETH on target chain
-
Lock Management
- Users can monitor their locked balances
- Pimlico has no custody of the locked funds
- Users can exist resource lock even if the API is down
Resource Lock Types
Pimlico Lock
- Native integration with Pimlico infrastructure
- Optimized for Magic Spend operations
- Simple locking and unlocking mechanism
- Direct ETH locking
OneBalance Lock
- Integration with OneBalance ecosystem
- Additional token support (coming soon)