Skip to main content

Overview

Use Dynamic Server Wallets with ZeroDev to sponsor gas for server-initiated EVM transactions. This guide covers both authenticated server wallets (Node EVM) and delegated access flows.
This works exactly like end‑user sponsorship: ZeroDev paymaster/bundler settings are read from your Dynamic Dashboard configuration. No extra server‑side configuration is required beyond enabling Zerodev and setting project IDs in the dashboard.
Make sure you have configured Zerodev project IDs and gas policies, and enabled sponsorship in the Dynamic Dashboard under Sponsor Gas.

Prerequisites

  • Zerodev project(s) and gas policy per network
  • Dynamic Dashboard → Sponsor Gas → enable Zerodev and add project IDs (same as for end users)
  • Environment variables for your Dynamic environment and server credentials

Node EVM: Sponsor gas for a server wallet

1) Authenticate and create a server wallet (or use an existing one)

2) Create a ZeroDev client and kernel client with sponsorship

3) Send a sponsored transaction

Delegated Access: Sponsor gas for an end-user wallet from your server

Use delegated credentials (walletId, walletApiKey, keyShare) to act on behalf of a user who granted permission.

1) Create a delegated EVM client

2) Create a ZeroDev client and kernel client with delegated signing and sponsorship

3) Send a sponsored transaction

Tips

  • Ensure your Zerodev project IDs and gas policies are configured for each target network.
  • Use environment variables for all secrets. Never log or expose wallet key shares or per‑wallet API keys.
  • If a sponsorship policy denies a transaction, you can retry without sponsorship by creating the kernel client with withSponsorship: false.
Last modified on June 26, 2026