Skip to main content
AVNU Paymaster integration hero

Overview

AVNU Paymaster enables two modes of gas payment on Starknet:
  • Gasfree: You sponsor all gas costs for your users
  • Gasless: Users pay gas in any supported token (USDC, USDT, etc.) instead of STRK
AVNU pioneered paymaster on Starknet and powers 50+ dApps. Starkzap integrates seamlessly with AVNU Paymaster for sponsored transactions.
For complete setup instructions and detailed configuration, see the Paymasters Guide which covers both AVNU Paymaster and Cartridge’s built-in paymaster with step-by-step instructions, code examples, and best practices.

Quick Reference

When to Use AVNU Paymaster

  • ✅ Using Privy strategy for wallet connection
  • ✅ Using Private Key strategy (server-side)
  • ✅ Want to sponsor all gas fees for users (gasfree mode)
  • ✅ Want users to pay gas in tokens instead of STRK (gasless mode)

Basic Configuration

import { StarkZap } from "starkzap";

const sdk = new StarkZap({
  network: "mainnet",
  paymaster: {
    nodeUrl: "https://starknet.paymaster.avnu.fi",
    apiKey: "your-api-key-here", // Required for gasfree mode
  },
});

Supported Tokens (Gasless Mode)

USDC, USDT, DAI, ETH, STRK, WBTC, solvBTC, LBTC, EKUBO, NSTR, LORDS, wstETH, and more.

Resources