Auto-Investment
Enable seamless music discovery with automated payments. Listen without interruption while staying in full control of your budget.
What is Auto-Investment?
Auto-Investment is a frictionless payment system that allows you to discover and stream music without signing a transaction for every song. Set your budget once, and the platform handles micropayments automatically as you listen.
This feature transforms the music streaming experience by removing payment friction while maintaining full transparency and control over your spending.
Frictionless
Stream continuously without transaction prompts
Secure
Session keys with spending limits protect your wallet
Budget Control
Set daily and per-track spending limits
How It Works
1Set Your Budget
Configure your auto-investment settings with daily spending limits and per-track maximums. You have complete control over how much you spend.
2Create Session Key
When you activate auto-investment, a temporary session key is generated. This key has limited authority to spend only up to your configured limits and expires after 24 hours.
Your main wallet private key never leaves your device. The session key is stored securely and can only execute pre-authorized actions.
3Stream Music Freely
Discover and play music without interruption. The platform automatically handles X402 micropayments using your session key, staying within your spending limits.
✓ Playing "Midnight Dreams" - Artist Name Payment: $0.015 USDC (auto-paid) ✓ Playing "Electric Soul" - Another Artist Payment: $0.02 USDC (auto-paid) ✓ Daily spending: $2.45 / $10.00 remaining
4Monitor & Revoke Anytime
Track your spending in real-time and revoke your session key at any moment. Sessions automatically expire after 24 hours for added security.
Full transparency: View every micro-transaction in your activity history.
Technical Architecture
Session Key System
Auto-investment uses a secure session key architecture built on top of EIP-3009 (transferWithAuthorization). This enables gasless, pre-authorized USDC transfers without exposing your main wallet.
interface SessionKey {
user_address: string // Your wallet address
session_key: string // Temporary private key
spending_limit: number // Max daily spend
spent_amount: number // Current spending
max_per_transaction: number // Per-track limit
valid_until: timestamp // 24h expiry
is_active: boolean // Revocation status
}Security Features
- •Spending limits enforced at database level
- •24-hour automatic expiration
- •Instant revocation capability
- •Atomic spending updates prevent race conditions
Performance Benefits
- •No wallet popups during streaming
- •Instant payment authorization
- •Seamless music discovery
- •Works with X402 micropayment protocol
Platform Impact
For Listeners
Auto-investment removes the friction of micropayments, making it as easy to discover new music on MyUSIC as it is on traditional streaming platforms—but with the added benefit of directly supporting artists.
- Uninterrupted listening experience
- Discover new artists without commitment
- Full control over budget and spending
- Transparent payment tracking
For Artists
By reducing payment friction, auto-investment increases the likelihood that listeners will stream your tracks. More streams mean more revenue, even with custom per-stream pricing as low as fractions of a cent.
- Higher conversion rates from discovery to streams
- Instant payment settlement on-chain
- Listeners more likely to try new tracks
- Better user experience = more engagement
Platform Growth
Auto-investment makes MyUSIC competitive with Web2 streaming platforms while maintaining Web3 benefits like artist ownership and fair compensation.
- Lowers barrier to entry for new users
- Bridges Web2 UX with Web3 economics
- Increases platform stickiness and retention
- Drives more transaction volume through protocol
Best Practices
Recommended Settings
- • Set daily limits based on your listening habits
- • Start with $5-10 daily for casual listening
- • Per-track limit of $0.50-1.00 is reasonable
- • Enable "Auto-unlock full songs" for favorites
- • Review spending weekly to adjust limits
Safety Tips
- • Never set limits higher than you can afford
- • Revoke sessions when not actively using platform
- • Monitor spending regularly in dashboard
- • Sessions auto-expire after 24 hours
- • Can revoke instantly if needed
Integration with X402
Auto-investment works seamlessly with the X402 micropayment protocol. When you stream a track, the session key authorizes X402 chunk payments automatically without requiring wallet signatures.
Combined Workflow:
- User activates auto-investment session
- User plays a track with custom artist pricing
- X402 protocol streams audio in 30-second chunks
- Session key auto-authorizes each chunk payment
- Payments settle on-chain via EIP-3009
- Artist receives revenue instantly
