Agent skill

Aa Batching Paymasters

by Nethereum in Nethereum/Nethereum

Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.

MITAuto-check passedBackend & APIs

Install Aa Batching Paymasters

skills CLI
$ npx skills add Nethereum/Nethereum --skill aa-batching-paymasters -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Nethereum/Nethereum aa-batching-paymasters --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/nethereum-skills/skills/aa-batching-paymasters .claude/skills/aa-batching-paymasters && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aa-batching-paymasters
GitHub stars
2.3k
Token cost
~1.5k tokens
SKILL.md length
309 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
MIT

At a glance

Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.

  • The user mentions batching transactions
  • SKILL.md covers When to Use This, Packages, Batch Multiple Calls and ERC-7579 Batch via…, plus 3 more sections
  • Calls dotnet
  • Atomic multi-call

What it does

Aa Batching Paymasters is an agent skill from Nethereum/Nethereum. Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction. Use when the user mentions batching transactions, atomic multi-call, approve-then-swap in one tx, gas sponsorship, paymasters, gasless transactions, verifying paymaster, deposit paymaster, or PaymasterConfig in .NET/C with ERC-4337.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs. It works with C# and .NET. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.

When your agent uses it

  • The user mentions batching transactions
  • Atomic multi-call
  • Approve-then-swap in one tx
  • Gas sponsorship

Example prompts

  • “/aa-batching-paymasters”

What it can do on your machine

Read from SKILL.md and the folder at commit 229f278. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.nethereum.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aa Batching Paymasters loads about 1.5k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 309 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Nethereum/Nethereum at commit 229f278, republished under its MIT licence (© Nethereum). 309 words, ~1,481 tokens.

Download SKILL.mdSave it as .claude/skills/aa-batching-paymasters/SKILL.md (or your agent's skills folder).
name
aa-batching-paymasters
description
Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction. Use when the user mentions batching transactions, atomic multi-call, approve-then-swap in one tx, gas sponsorship, paymasters, gasless transactions, verifying paymaster, deposit paymaster, or PaymasterConfig in .NET/C# with ERC-4337.
user-invocable
true

Batching & Paymasters

Execute multiple contract calls atomically in a single UserOperation, and sponsor gas fees with paymasters so users don't need ETH.

When to Use This

  • User wants to batch multiple calls (approve + swap, multi-transfer) in one atomic operation
  • User needs gas sponsorship — a paymaster pays gas instead of the user
  • User is building gasless UX for their dApp
  • User mentions BatchExecuteAsync, ToBatchCall, WithPaymaster, or PaymasterConfig

Packages

bash
dotnet add package Nethereum.Web3
dotnet add package Nethereum.AccountAbstraction

Batch Multiple Calls

Typed Batch (Same Contract)
csharp
var transfer1 = new TransferFunction { To = "0xRecipient1", Value = Web3.Convert.ToWei(50) };
var transfer2 = new TransferFunction { To = "0xRecipient2", Value = Web3.Convert.ToWei(25) };

var receipt = await handler.BatchExecuteAsync<TransferFunction>(transfer1, transfer2);
Mixed Batch (Different Contracts)

Use ToBatchCall() to convert typed messages:

csharp
var approve = new ApproveFunction { Spender = dexAddress, Value = Web3.Convert.ToWei(1000) };
var swap = new SwapFunction { AmountIn = Web3.Convert.ToWei(1000) };

var receipt = await handler.BatchExecuteAsync(
    approve.ToBatchCall(),
    swap.ToBatchCall());
Batch with ETH Value
csharp
var depositCall = new DepositFunction().ToBatchCall(Web3.Convert.ToWei(1));
Raw Calldata Batch
csharp
var receipt = await handler.BatchExecuteAsync(encodedCallData1, encodedCallData2);

ERC-7579 Batch via NethereumAccountService

For a modular NethereumAccount, ExecuteBatchAsync sends the batch as a direct account transaction (not a UserOperation) using the account's own ERC-7579 execute entry point:

csharp
using Nethereum.AccountAbstraction.Structs;
using Nethereum.AccountAbstraction.Contracts.Core.NethereumAccount;

var accountService = new NethereumAccountService(web3, accountAddress);

var calls = new[]
{
    new Call { Target = tokenAddress, Value = 0, Data = approveCallData },
    new Call { Target = dexAddress, Value = 0, Data = swapCallData }
};

var receipt = await accountService.ExecuteBatchAsync(calls);

Paymasters

Simple Paymaster
csharp
handler.WithPaymaster(paymasterAddress);
// All subsequent operations use this paymaster for gas
With Static Data
csharp
handler.WithPaymaster(paymasterAddress, paymasterData);
Verifying Paymaster (Off-Chain Signature)

VerifyingPaymasterManager.SponsorUserOperationAsync signs a validity window and returns a SponsorResult whose PaymasterAndData is address(20 bytes) ‖ data. It takes a PackedUserOperation, not the UserOperation the DataProvider receives, so pack the op first with UserOperationBuilder.PackUserOperation - the paymaster signs over the FINAL gas values, which is exactly why this must happen inside the DataProvider (it only runs once gas is known). PaymasterConfig's DataProvider only needs the data half - WithPaymaster's address is set separately - so strip the 20-byte address prefix:

csharp
var paymaster = await web3.GetVerifyingPaymasterAsync(paymasterAddress, paymasterSignerKey);

handler.WithPaymaster(new PaymasterConfig(paymasterAddress, async userOp =>
{
    var packed = UserOperationBuilder.PackUserOperation(userOp);
    packed.InitCode ??= Array.Empty<byte>();
    packed.CallData ??= Array.Empty<byte>();
    packed.PaymasterAndData ??= Array.Empty<byte>();
    packed.Signature ??= Array.Empty<byte>();

    var sponsorResult = await paymaster.SponsorUserOperationAsync(packed);
    return sponsorResult.PaymasterAndData.Skip(20).ToArray();
}));
Deposit Paymaster (Pre-Funded)

A deposit paymaster charges the account's own pre-funded EntryPoint deposit, so no signed data is needed per operation - just fund the account once:

csharp
var depositPaymaster = await web3.GetDepositPaymasterAsync(paymasterAddress);
await depositPaymaster.DepositForAsync(accountAddress, Web3.Convert.ToWei(0.1m));

handler.WithPaymaster(paymasterAddress);
Dynamic Paymaster Data
csharp
handler.WithPaymaster(new PaymasterConfig(paymasterAddress, async userOp =>
{
    // Call external paymaster API at submission time
    var response = await httpClient.PostAsJsonAsync("https://paymaster.example.com/sign",
        new { userOp });
    var result = await response.Content.ReadFromJsonAsync<PaymasterResponse>();
    return result.PaymasterData.HexToByteArray();
}));

Decision Guide

ScenarioApproach
Same-contract multi-callBatchExecuteAsync<T>(msg1, msg2)
Cross-contract atomic opsBatchExecuteAsync(msg1.ToBatchCall(), msg2.ToBatchCall())
Raw calldataBatchExecuteAsync(bytes1, bytes2)
ERC-7579 modular accountaccount.ExecuteBatchAsync(Call[])
Simple gas sponsorshiphandler.WithPaymaster(address)
Per-operation signaturePaymasterConfig with async callback
Pre-funded sponsorshipDeposit paymaster + static address

Common Mistakes

  • Paymaster not funded — EntryPoint checks paymaster deposit, returns AA31/AA32 errors
  • Paymaster data expired — verifying paymasters include validity windows; use dynamic data
  • Wrong batch approach — use ToBatchCall() for cross-contract, generic <T> for same-contract

For full documentation, see: https://docs.nethereum.com/docs/account-abstraction/guide-batching-and-paymasters

© Nethereum, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/nethereum-skills/skills/aa-batching-paymasters of Nethereum/Nethereum.

Open the folder on GitHubat commit 229f278

Compare with similar skills

Aa Batching Paymasters next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aa Batching Paymasters compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aa Batching Paymasters this skillNethereum/Nethereum2.3k—~1.5kAutomated safety check: PassMIT
.NET API Compatibility DesignAaronontheweb/dotnet-skills1.2k2 repos~2.7kAutomated safety check: PassMIT
Tsp Csharpquerylenshq/ef-querylens225—~1.3kAutomated safety check: PassMIT
XML DocumentationVonage/vonage-dotnet-sdk118—~2.7kAutomated safety check: PassApache-2.0
Dotnet 10 Csharp 14sketch7/FluentlyHttpClient121—~2.2kAutomated safety check: PassMIT
DisCatSharp Discord DevelopmentAiko-IT-Systems/DisCatSharp140—~1.2kAutomated safety check: PassMIT

Similar skills

  • .NET API Compatibility Design

    Aaronontheweb/dotnet-skills

    Applies extend-only design rules to NuGet packages and distributed systems, covering source, binary and wire compatibility and how to deprecate members safely.

    1.2k GitHub starsUsed in 2 repos~2.7k tokens
    Backend & APIsAuto-check passed
  • Tsp Csharp

    querylenshq/ef-querylens

    Comprehensive C and .NET development skill for TSP projects.

    225 GitHub stars~1.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • XML Documentation

    Vonage/vonage-dotnet-sdk

    Improve XML documentation in the Vonage .NET SDK. An agent skill from Vonage/vonage-dotnet-sdk.

    118 GitHub stars~2.7k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Dotnet 10 Csharp 14

    sketch7/FluentlyHttpClient

    A skill your agent uses when building .NET 10 or C 14 applications; when using minimal APIs, modular monolith patterns, or feature folders; when implementing HTTP resilience, Options pattern…

    121 GitHub stars~2.2k tokensUpdated 20 days ago
    Backend & APIsAuto-check passed
  • DisCatSharp Discord Development

    Aiko-IT-Systems/DisCatSharp

    Helps build, explain and troubleshoot C# Discord apps on DisCatSharp, answering from the project's installed version and the library's documentation rather than guesses.

    140 GitHub stars~1.2k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Foundationdb Advanced Layers

    SnowBankSDK/foundationdb-dotnet-client

    Advanced engineering for sophisticated FoundationDB layers with the .NET client (FoundationDB.Client / SnowBank) — the cluster model and transaction lifecycle (proxies, resolvers, tlogs, storage…

    158 GitHub stars~3.4k tokensUpdated today
    Backend & APIsAuto-check passed

More from Nethereum/Nethereum

All 71 skills in this repo
  • Aa Bundler

    Nethereum/Nethereum

    Help users run an ERC-4337 bundler using Nethereum — set up in-process or standalone bundlers with mempool, validation, reputation, and JSON-RPC server.

    2.3k GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • Abi Encoding

    Nethereum/Nethereum

    Encode and decode Ethereum ABI data with Nethereum. An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Abi Retrieval

    Nethereum/Nethereum

    Fetch contract ABIs from Sourcify, Etherscan, and 4Byte Directory using the composite ABIInfoStorage pattern (.NET/C).

    2.3k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Account Abstraction

    Nethereum/Nethereum

    Help users implement ERC-4337 Account Abstraction with Nethereum — send UserOperations, use smart accounts, route contract calls through a bundler, enable gasless transactions, or work with AA in…

    2.3k GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Address Utils

    Nethereum/Nethereum

    Validate and format Ethereum addresses with Nethereum. An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • Appchain Quickstart

    Nethereum/Nethereum

    Help users launch and configure Nethereum AppChains — domain-specific Ethereum extension layers with full EVM, sequencer, follower sync, RocksDB storage.

    2.3k GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed

Works with

Categories

Questions about Aa Batching Paymasters

What does Aa Batching Paymasters do?

Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction. Aa Batching Paymasters is an agent skill from Nethereum/Nethereum. Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.

When should I use Aa Batching Paymasters?

Aa Batching Paymasters fits situations like: the user mentions batching transactions; atomic multi-call; approve-then-swap in one tx; gas sponsorship.

How do I install Aa Batching Paymasters in Claude Code?

Run `npx skills add Nethereum/Nethereum --skill aa-batching-paymasters -a claude-code`. Or copy the skill folder (plugins/nethereum-skills/skills/aa-batching-paymasters in Nethereum/Nethereum) into .claude/skills/aa-batching-paymasters in your project. Claude Code loads it when a task matches its description.

How do I install Aa Batching Paymasters in Codex?

Run `npx skills add Nethereum/Nethereum --skill aa-batching-paymasters -a codex`. Or copy the skill folder (plugins/nethereum-skills/skills/aa-batching-paymasters in Nethereum/Nethereum) into .agents/skills/aa-batching-paymasters in your project. Codex loads it when a task matches its description.

Can I use Aa Batching Paymasters in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nethereum/Nethereum --skill aa-batching-paymasters -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aa-batching-paymasters, .gemini/skills/aa-batching-paymasters, .github/skills/aa-batching-paymasters and .opencode/skills/aa-batching-paymasters in your project.

What does Aa Batching Paymasters need to run?

Going by SKILL.md and its folder, Aa Batching Paymasters needs the command-line tools its instructions call (dotnet).

Does Aa Batching Paymasters access the network?

SKILL.md names 1 domain. As links in the text: docs.nethereum.com. This is read from the text; nothing was executed.

Is Aa Batching Paymasters safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Aa Batching Paymasters use?

Aa Batching Paymasters is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aa Batching Paymasters use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Aa Batching Paymasters?

Skills that share tags, products or a category with Aa Batching Paymasters: .NET API Compatibility Design (Aaronontheweb/dotnet-skills, 1.2k stars), Tsp Csharp (querylenshq/ef-querylens, 225 stars), XML Documentation (Vonage/vonage-dotnet-sdk, 118 stars) and Dotnet 10 Csharp 14 (sketch7/FluentlyHttpClient, 121 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aa Batching Paymasters?

Nethereum (a GitHub organization) maintains it in Nethereum/Nethereum, which has 2,260 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on October 5, 2026.

Source: Nethereum/Nethereum on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.