Skip to main content
On testnets, gas sponsorship is enabled by default — no dashboard configuration, no API key with sponsorship enabled, and no billing setup required. Just point your client at the staging MEE node and set sponsorship: true.
For general testnet setup (staging node URL, supported chains, limitations), see Working with Testnets.

How It Works

import {
  createMeeClient,
  toMultichainNexusAccount,
  getDefaultMEENetworkUrl,
  getDefaultMEENetworkApiKey,
  getMEEVersion,
  MEEVersion
} from "@biconomy/abstractjs";
import { http } from "viem";
import { baseSepolia } from "viem/chains";

const account = await toMultichainNexusAccount({
  signer,
  chainConfigurations: [
    { chain: baseSepolia, transport: http(), version: getMEEVersion(MEEVersion.V2_1_0) }
  ]
});

const meeClient = await createMeeClient({
  account,
  url: getDefaultMEENetworkUrl(true),
  apiKey: getDefaultMEENetworkApiKey(true)
});

// Sponsorship just works — no dashboard setup needed
const quote = await meeClient.getQuote({
  sponsorship: true,
  instructions: [/* your instructions */]
});

const { hash } = await meeClient.executeQuote({ quote });

Moving to Production

When you’re ready for mainnet, sponsorship does require dashboard setup. See Sponsor Gas for the full production configuration steps.