Skip to main content
Accept gasless and standard payments using the MPP SDK on SKALE. These payment methods work on SKALE Base chains using USDC.e—ideal for applications that need fast, low-cost transactions with optional gasless UX.

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
  • Never expose private keys client-side
  • Validate amounts server-side
  • Test thoroughly on testnet first

Resources