Agent skill

Eip7702

by Nethereum in Nethereum/Nethereum

Delegate smart contract code to EOAs with EIP-7702 using Nethereum (.NET).

MITAuto-check passedBackend & APIs

Install Eip7702

skills CLI
$ npx skills add Nethereum/Nethereum --skill eip7702 -a claude-code

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

GitHub CLI
$ gh skill install Nethereum/Nethereum eip7702 --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/eip7702 .claude/skills/eip7702 && 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
eip7702
GitHub stars
2.3k
Token cost
~1.4k tokens
SKILL.md length
157 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
MIT

At a glance

Delegate smart contract code to EOAs with EIP-7702 using Nethereum (.NET).

  • The user asks about EOA delegation
  • SKILL.md covers High-Level: Self-Delegation, Query Delegation State, Remove Delegation and Sponsored Delegation, plus 6 more sections
  • Reaches mainnet.infura.io
  • Type 4 transactions

What it does

Eip7702 is an agent skill from Nethereum/Nethereum. Delegate smart contract code to EOAs with EIP-7702 using Nethereum (.NET). Use when the user asks about EOA delegation, EIP-7702, Type 4 transactions, SetCode transactions, delegating smart account logic to an EOA, sponsored delegation, batch authorization, smart account upgrades for EOAs, or combining EIP-7702 with ERC-4337 account abstraction.

Its SKILL.md is about 1.4k 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, covering Smart contracts and Authorization and RBAC. It works with .NET. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.

When your agent uses it

  • The user asks about EOA delegation
  • Type 4 transactions
  • SetCode transactions
  • Delegating smart account logic to an EOA

Example prompts

  • “/eip7702”

Requirements

  • A credential in YOUR_KEY

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csharp).

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • mainnet.infura.io

    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

Eip7702 loads about 1.4k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 157 words of instructions outside code blocks.

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

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). 157 words, ~1,371 tokens.

Download SKILL.mdSave it as .claude/skills/eip7702/SKILL.md (or your agent's skills folder).
name
eip7702
description
Delegate smart contract code to EOAs with EIP-7702 using Nethereum (.NET). Use when the user asks about EOA delegation, EIP-7702, Type 4 transactions, SetCode transactions, delegating smart account logic to an EOA, sponsored delegation, batch authorization, smart account upgrades for EOAs, or combining EIP-7702 with ERC-4337 account abstraction.
user-invocable
true

EIP-7702: EOA Code Delegation

NuGet: Nethereum.Web3, Nethereum.Accounts

EIP-7702 lets an EOA temporarily delegate its execution to a smart contract. Calls to the EOA run the delegate contract's code in the EOA's context (same address, balance, storage).

High-Level: Self-Delegation

csharp
using Nethereum.Web3;
using Nethereum.Web3.Accounts;

var account = new Account("0xYOUR_PRIVATE_KEY", Chain.MainNet);
var web3 = new Web3(account, "https://mainnet.infura.io/v3/YOUR_KEY");

var authorisationService = web3.Eth.GetEIP7022AuthorisationService();

// Delegate your EOA to a smart contract
var receipt = await authorisationService
    .AuthoriseRequestAndWaitForReceiptAsync("0xDelegateContractAddress");

// Universal authorization (chainId=0, valid on any chain)
var receipt = await authorisationService
    .AuthoriseRequestAndWaitForReceiptAsync("0xDelegateContract", useUniversalZeroChainId: true);

Query Delegation State

csharp
bool isDelegated = await authorisationService.IsDelegatedAccountAsync(address);
string delegateAddress = await authorisationService.GetDelegatedAccountAddressAsync(address);

Checks if account code starts with 0xef0100 (delegation prefix).

Remove Delegation

csharp
var receipt = await authorisationService
    .RemoveAuthorisationRequestAndWaitForReceiptAsync();

Sponsored Delegation

Sponsor pays gas, sponsored account signs only the authorization:

csharp
using Nethereum.Accounts;
using Nethereum.Signer;

var sponsor = new Account("0xSPONSOR_KEY", Chain.MainNet);
var web3 = new Web3(sponsor, "https://mainnet.infura.io/v3/YOUR_KEY");

var sponsoredKey = new EthECKey("0xSPONSORED_PRIVATE_KEY");

var sponsorService = new EIP7022SponsorAuthorisationService(
    web3.TransactionManager, web3.Eth);

var receipt = await sponsorService
    .AuthoriseSponsoredRequestAndWaitForReceiptAsync(
        sponsoredKey,
        "0xDelegateContractAddress",
        useUniversalZeroChainId: true,
        brandNewAccount: true);
Batch Sponsorship
csharp
var keys = new EthECKey[] { key1, key2, key3 };
var receipt = await sponsorService
    .AuthoriseBatchSponsoredRequestAndWaitForReceiptAsync(
        keys, "0xDelegateContract", useUniversalZeroChainId: true, brandNewAccount: true);

Low-Level: Manual Authorization

csharp
using Nethereum.Model;
using Nethereum.Signer;

// 1. Create authorization
var authorisation = new Authorisation7702
{
    ChainId = 1,                          // 0 for universal
    Address = "0xDelegateContractAddress",
    Nonce = 0                              // must match EOA's current nonce
};

// 2. Sign authorization
var ecKey = new EthECKey("0xYOUR_PRIVATE_KEY");
var authSigner = new Authorisation7702Signer();
var signedAuth = authSigner.SignAuthorisation(ecKey, authorisation);

// 3. Build Type 4 transaction
var tx = new Transaction7702(
    chainId: 1, nonce: 0,
    maxPriorityFeePerGas: BigInteger.Parse("2000000000"),
    maxFeePerGas: BigInteger.Parse("100000000000"),
    gasLimit: 100000,
    receiverAddress: ecKey.GetPublicAddress(),
    amount: BigInteger.Zero, data: null,
    accessList: new List<AccessListItem>(),
    authorisationList: new List<Authorisation7702Signed> { signedAuth });

// 4. Sign and broadcast
var txSigner = new Transaction7702Signer();
var signedTxHex = txSigner.SignTransaction(ecKey, tx);
await web3.Eth.Transactions.SendRawTransaction.SendRequestAsync("0x" + signedTxHex);

Inline Authorization (with Contract Calls)

Attach authorization to the same transaction that calls the delegate:

csharp
var executeFunction = new ExecuteFunction
{
    Calls = batchCalls,
    Gas = 1000000,  // must set gas manually
    AuthorisationList = new List<Authorisation>
    {
        new Authorisation { Address = "0xDelegateContractAddress" }
    }
};
var receipt = await contractService.ExecuteRequestAndWaitForReceiptAsync(executeFunction);

Unsigned Authorisation is signed automatically by the transaction manager.

Recover Signer from Authorization

csharp
var signerAddress = EthECKeyBuilderFromSignedAuthorisation.RecoverSignerAddress(signedAuth);

Gas Costs

  • Per authorization base: 12,500 gas
  • Per account (new or existing): 25,000 gas
csharp
int extraGas = AuthorisationGasCalculator.CalculateGasForAuthorisationDelegation(
    numberOfNew: 3, numberOfExisting: 1);

Key Facts

  • Type byte: 0x04
  • Delegation prefix in account code: 0xef0100 + 20-byte address
  • Uses EIP-1559 fee model (maxFeePerGas + maxPriorityFeePerGas)
  • Delegation persists across transactions until explicitly removed
  • No delegation chaining (only first level resolved)
  • Hardware wallets (Ledger, Trezor) and cloud KMS (AWS, Azure) all support SignAsync(Transaction7702)

Required Usings

csharp
using Nethereum.Web3;
using Nethereum.Web3.Accounts;
using Nethereum.Accounts;
using Nethereum.Model;
using Nethereum.Signer;
using Nethereum.RPC.Eth.DTOs;
using Nethereum.RPC.TransactionManagers;
using System.Collections.Generic;
using System.Numerics;

© 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/eip7702 of Nethereum/Nethereum.

Open the folder on GitHubat commit 229f278

Compare with similar skills

Eip7702 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.

Eip7702 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Eip7702 this skillNethereum/Nethereum2.3k—~1.4kAutomated safety check: PassMIT
Entry Point Analyzeralt-research2/SolidityGuard104—~959Automated safety check: PassCustom licence
Azure Resource Manager Cosmosdb Dotnetmicrosoft/skills3.1k5 repos~2.1kAutomated safety check: PassMIT
Semantic Guard Analysisquillai-network/quillshield_skills129—~2.2kAutomated safety check: WarnMIT
Solidity Vulnerability Scanneralt-research2/SolidityGuard104—~1.6kAutomated safety check: NotesCustom licence
Erc7702 Patternsccashwell/evm-cortex131—~1.7kAutomated safety check: PassMIT

Similar skills

  • Entry Point Analyzer

    alt-research2/SolidityGuard

    Analyzes Solidity contract entry points to map attack surface.

    104 GitHub stars~959 tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Official

    Azure Resource Manager SDK for Cosmos DB in .NET. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 5 repos~2.1k tokens
    Backend & APIsAuto-check passed
  • Semantic Guard Analysis

    quillai-network/quillshield_skills

    Detects logic vulnerabilities in smart contracts by analyzing guard-state consistency patterns.

    129 GitHub stars~2.2k tokensUpdated 6 mo ago
    Backend & APIsAuto-check: warnings
  • Solidity Vulnerability Scanner

    alt-research2/SolidityGuard

    Comprehensive Solidity contract security scanner detecting 104 vulnerability patterns across reentrancy, access control, arithmetic, DeFi, proxy, and token categories.

    104 GitHub stars~1.6k tokensUpdated 3 mo ago
    Backend & APIsAuto-check: notes
  • Erc7702 Patterns

    ccashwell/evm-cortex

    A skill your agent uses when building with EIP-7702 account abstraction.

    131 GitHub stars~1.7k tokensUpdated 9 days ago
    Backend & APIsAuto-check passed
  • Pashov Audit Pipeline

    ccashwell/evm-cortex

    A skill your agent uses when performing a comprehensive smart contract security audit.

    131 GitHub stars~5.5k tokensUpdated 9 days ago
    Backend & APIsAuto-check passed

More from Nethereum/Nethereum

All 71 skills in this repo
  • Aa Batching Paymasters

    Nethereum/Nethereum

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

    2.3k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • 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

Works with

Categories

Questions about Eip7702

What does Eip7702 do?

Delegate smart contract code to EOAs with EIP-7702 using Nethereum (.NET). Eip7702 is an agent skill from Nethereum/Nethereum.NET).

When should I use Eip7702?

Eip7702 fits situations like: the user asks about EOA delegation; type 4 transactions; setCode transactions; delegating smart account logic to an EOA.

How do I install Eip7702 in Claude Code?

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

How do I install Eip7702 in Codex?

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

Can I use Eip7702 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 eip7702 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/eip7702, .gemini/skills/eip7702, .github/skills/eip7702 and .opencode/skills/eip7702 in your project.

What does Eip7702 need to run?

SKILL.md names no scripts, command-line tools or credentials: Eip7702 is instructions for the agent only. Our summary lists: A credential in YOUR_KEY.

Does Eip7702 access the network?

SKILL.md names 1 domain. In commands or code: mainnet.infura.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Eip7702 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 Eip7702 use?

Eip7702 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 Eip7702 use?

About 1.4k tokens (SKILL.md is roughly 5.5k 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 Eip7702?

Skills that share tags, products or a category with Eip7702: Entry Point Analyzer (alt-research2/SolidityGuard, 104 stars), Azure Resource Manager Cosmosdb Dotnet (microsoft/skills, 3.1k stars), Semantic Guard Analysis (quillai-network/quillshield_skills, 129 stars) and Solidity Vulnerability Scanner (alt-research2/SolidityGuard, 104 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Eip7702?

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.