Purchase Preview is a utility dApp designed to help MetaMask Card users estimate the real cost of crypto purchases before confirming them.
It calculates real-time fiat totals by factoring in:
- 🔁 Exchange rates
- ⛽ Network gas fees
- 🧾 On-chain transaction costs
No more surprises at checkout — just transparency and peace of mind when spending your USDC or other tokens.
If you've ever used your MetaMask Card (or another crypto debit card) and ended up paying more than expected due to exchange rate shifts or gas costs, this tool gives you clarity and confidence before you approve a transaction.
- 🧾 Token-to-Fiat cost estimation
- ⚖️ Live exchange rate tracking
- ⛽ Network gas fee calculation
- 📉 Slippage-aware previews
- 🌐 Support for multiple Linea EVM network
- 💳 Focused on MetaMask Card but can be extended to other crypto cards
- Frontend: Next.js + React + TailwindCSS
- Blockchain: Ethers.js v6 for on-chain data and gas estimations
- Pricing API: Frankfuter & Defillama
- Deployment: Vercel
Purchase Preview is a standalone estimation tool created by Skeletor Labs. It does not initiate, approve, or process any transactions, nor does it interact directly with the MetaMask Card or any third-party payment provider.
This tool is intended solely for informational purposes — to help users preview estimated costs before making a purchase. Always verify values at the point of transaction with your wallet or card provider.
git clone https://github.com/skeletorlabs/purchase-preview.git
cd purchase-previewyarn installYou'll need API keys for price data if using an external pricing API. Create a .env.local file with:
NEXT_PUBLIC_LINEA_NODE_RPC_URL=https://linea-mainnet.public.blastapi.io
NEXT_PUBLIC_LINEA_USDC_ADDRESS=0x176211869cA2b568f2A7D4EE941E073a821EE1ffAdjust based on your pricing source or network.
yarn devApp will be available at http://localhost:3000
yarn buildDeploy using Vercel, Netlify, or your preferred static hosting.
- ✅ USDC price estimation
- 🔄 Real-time gas tracker per chain
- 🌍 Multilingual UI
- 🧩 Plugin architecture for supporting other wallets or cards
- 📱 PWA support
PRs and issues are welcome! Help us make crypto payments smoother for everyone.
Made with ❤️ by Skeletor Labs Inspired by real-world MetaMask Card confusion.
MIT