A FIAT ERC20 Onramp where users can purchase ERC-20 tokens using credit cards via the Stripe CLI. The platform integrates ThirdWeb's embedded wallets and Engine.
Create and deploy an ERC20 token using the Thirdweb dashboard.
docker run \
-e ENCRYPTION_PASSWORD="..." \
-e THIRDWEB_API_SECRET_KEY="..." \
-e ADMIN_WALLET_ADDRESS="0x..." \
-e POSTGRES_CONNECTION_URL="postgresql://postgres:[email protected]:5432/postgres?sslmode=disable" \
-e ENABLE_HTTPS=true \
-p 3005:3005 \
--pull=always \
--cpus="0.5" \
thirdweb/engine:latest
Connect to the engine using the Thirdweb Dashboard and create a backend wallet. Give this backend wallet minting rights to your ERC20 token and send some native token for gas.
Download Stripe CLI and run it.
stripe listen --forward-to localhost:3000/api/stripe-webhook
Create a .env file and fill it with the parameters.
npm run dev
Open http://localhost:3000 with your browser to see the result.