Prerequisites
- Node.js, Bun, or pnpm installed
- A SKALE Base chain endpoint
- USDC.e tokens for testing
Overview
Available payment strategies:- Standard transfers – Users need the native gas token (CREDIT on SKALE Base), pay with USDC.e
- Gasless payments – Users pay without holding any gas tokens (EIP-3009)
- Encrypted amounts – Hide transaction amounts during submission and mempool; amounts become visible after execution (optional)
Environment Setup
Create a.env file:
Standard Payment
Users need the native gas token (CREDIT on SKALE Base) to send transactions:Gasless Payment
Users pay without holding CREDIT — fees deducted from USDC.e:Encrypted Payments (Optional)
Hide transaction amounts during submission and consensus:Gasless + Encrypted
Combine both features:Server Integration
Backend payment processing:Testing
Use SKALE Base Sepolia testnet:Error Handling
Best Practices
- Standard: Use when users already have the native gas token (fastest)
- Gasless: Best UX for new users (no gas token needed)
- Encrypted: Add for sensitive transaction amounts
Resources
- MPP SDK Reference
- Confidential Payments – For eUSDC
- GitHub
