Agent skill

Deploy Contract

by Nethereum in Nethereum/Nethereum

Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C).

MITAuto-check passedBackend & APIs

Install Deploy Contract

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

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

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

At a glance

Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C).

  • The user asks about deploying a contract
  • SKILL.md covers Typed Deployment (Recommended), Estimate Gas Before Deploying, Deploy Without Code-Generated… and Multiple Constructor Parameters, plus 2 more sections
  • Calls dotnet
  • Publishing a smart contract

What it does

Deploy Contract is an agent skill from Nethereum/Nethereum. Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C). Use this skill whenever the user asks about deploying a contract, publishing a smart contract, contract deployment, constructor parameters, deployment gas estimation, or getting a contract address after deployment.

Its SKILL.md is about 1.2k 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 Deployment. It works with C#, .NET and Ethereum. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.

When your agent uses it

  • The user asks about deploying a contract
  • Publishing a smart contract
  • Contract deployment
  • Constructor parameters

Example prompts

  • “/deploy-contract”

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

Deploy Contract loads about 1.2k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 269 words of instructions outside code blocks.

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

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). 269 words, ~1,173 tokens.

Download SKILL.mdSave it as .claude/skills/deploy-contract/SKILL.md (or your agent's skills folder).
name
deploy-contract
description
Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C#). Use this skill whenever the user asks about deploying a contract, publishing a smart contract, contract deployment, constructor parameters, deployment gas estimation, or getting a contract address after deployment.
user-invocable
true

Deploy a Contract

Deploying a contract sends a transaction containing the compiled bytecode and encoded constructor parameters. Nethereum's typed deployment handler takes care of gas estimation, nonce management, and receipt tracking — you just define the deployment message and send it.

NuGet: Nethereum.Web3

bash
dotnet add package Nethereum.Web3

Define a deployment message class that inherits from ContractDeploymentMessage. It holds the compiled bytecode and maps constructor parameters as properties with [Parameter] attributes:

csharp
using Nethereum.Web3;
using Nethereum.Web3.Accounts;
using Nethereum.ABI.FunctionEncoding.Attributes;
using Nethereum.Contracts;
using System.Numerics;

public class StandardTokenDeployment : ContractDeploymentMessage
{
    public static string BYTECODE = "0x60606040...";
    public StandardTokenDeployment() : base(BYTECODE) { }

    [Parameter("uint256", "totalSupply")]
    public BigInteger TotalSupply { get; set; }
}

Then create a Web3 instance with your account and deploy. The handler encodes the constructor args into the bytecode, estimates gas, and waits for the receipt:

csharp
var account = new Account("0xYOUR_PRIVATE_KEY");
var web3 = new Web3(account, "https://your-rpc-url");

var handler = web3.Eth.GetContractDeploymentHandler<StandardTokenDeployment>();
var receipt = await handler.SendRequestAndWaitForReceiptAsync(
    new StandardTokenDeployment { TotalSupply = Web3.Convert.ToWei(1000000) });

Console.WriteLine($"Deployed at: {receipt.ContractAddress}");

Gas estimation, nonce, and EIP-1559 fees are all automatic.

Estimate Gas Before Deploying

If you want to check the cost before committing, call EstimateGasAsync. This simulates the deployment without sending a transaction:

csharp
var deployment = new StandardTokenDeployment { TotalSupply = Web3.Convert.ToWei(1000000) };
var estimatedGas = await handler.EstimateGasAsync(deployment);
Console.WriteLine($"Estimated gas: {estimatedGas.Value}");

Note: SendRequestAndWaitForReceiptAsync estimates gas automatically if you don't set Gas on the message — this step is only needed when you want to display costs to a user.

Deploy Without Code-Generated Classes

For quick prototyping when you have raw ABI and bytecode strings. Less safe — constructor argument types aren't checked at compile time:

csharp
var receipt = await web3.Eth.DeployContract.SendRequestAndWaitForReceiptAsync(
    abi, bytecode, account.Address,
    new Nethereum.Hex.HexTypes.HexBigInteger(3000000),
    null, null, constructorArg1, constructorArg2);

Multiple Constructor Parameters

Contracts often take multiple constructor arguments. Each maps to a property on the deployment class:

csharp
public class MyNFTDeployment : ContractDeploymentMessage
{
    public static string BYTECODE = "0x...";
    public MyNFTDeployment() : base(BYTECODE) { }

    [Parameter("string", "name", 1)]
    public string Name { get; set; }

    [Parameter("string", "symbol", 2)]
    public string Symbol { get; set; }

    [Parameter("uint256", "maxSupply", 3)]
    public BigInteger MaxSupply { get; set; }
}

var receipt = await handler.SendRequestAndWaitForReceiptAsync(
    new MyNFTDeployment { Name = "My NFT", Symbol = "MNFT", MaxSupply = 10000 });

Check Deployment Status

The receipt's Status tells you if the deployment succeeded. A status of 1 means success; 0 means the constructor reverted (often a require failure):

csharp
if (receipt.Status.Value == 1)
{
    Console.WriteLine($"Deployed at block {receipt.BlockNumber.Value}");
    Console.WriteLine($"Gas used: {receipt.GasUsed.Value}");
    Console.WriteLine($"Contract address: {receipt.ContractAddress}");
}

When to Use Which Approach

ApproachWhen
Typed deployment (GetContractDeploymentHandler<T>)Recommended for all projects — type-safe, auto gas estimation
Code-generated deploymentBest — use Nethereum.Generator.Console to generate the deployment class from ABI
Raw ABI deployment (DeployContract.SendRequestAsync)Quick prototyping when you have ABI/bytecode strings

For full documentation, see: https://docs.nethereum.com/docs/smart-contracts/deploy-a-contract

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

Open the folder on GitHubat commit 229f278

Compare with similar skills

Deploy Contract 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.

Deploy Contract compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deploy Contract this skillNethereum/Nethereum2.3k—~1.2kAutomated safety check: PassMIT
Orchestrationaustintgriffith/ethskills294—~2.2kAutomated safety check: NotesNone
Akka.NET Management and DiscoveryAaronontheweb/dotnet-skills1.2k1 repos~2.5kAutomated safety check: PassMIT
ClankerBankrBot/skills1.2k1 repos~3kAutomated safety check: NotesNone
Use Smart Contract Platformcirclefin/skills155—~2.9kAutomated safety check: NotesApache-2.0
Cross Chain Securityccashwell/evm-cortex131—~1.7kAutomated safety check: PassMIT

Similar skills

  • Orchestration

    austintgriffith/ethskills

    How an AI agent plans, builds, and deploys a complete Ethereum dApp.

    294 GitHub stars~2.2k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Akka.NET Management and Discovery

    Aaronontheweb/dotnet-skills

    Sets up Akka.Management and Cluster.Bootstrap so Akka.NET clusters form through service discovery on Kubernetes, Azure or config instead of static seed nodes.

    1.2k GitHub starsUsed in 1 repo~2.5k tokens
    DevOps & CloudAuto-check passed
  • Clanker

    BankrBot/skills

    Deploy ERC20 tokens on Base, Ethereum, Arbitrum, and other EVM chains using the Clanker SDK.

    1.2k GitHub starsUsed in 1 repo~3k tokens
    DevOps & CloudAuto-check: notes
  • Deploy, import, interact with, and monitor smart contracts using Circle Smart Contract Platform APIs.

    155 GitHub stars~2.9k tokensUpdated 21 days ago
    Backend & APIsAuto-check: notes
  • Cross Chain Security

    ccashwell/evm-cortex

    Cross-chain security patterns for multi-chain Solidity deployments and bridge interactions.

    131 GitHub stars~1.7k tokensUpdated 7 days ago
    Backend & APIsAuto-check passed
  • Foundry Deploy Fixtures

    aviggiano/security

    Create or refactor Foundry deployment fixtures for Solidity tests.

    144 GitHub stars~634 tokensUpdated 22 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 2 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 2 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 2 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 2 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 2 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 2 days ago
    Auto-check passed

Works with

Questions about Deploy Contract

What does Deploy Contract do?

Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C). Deploy Contract is an agent skill from Nethereum/Nethereum.NET/C).

When should I use Deploy Contract?

Deploy Contract fits situations like: the user asks about deploying a contract; publishing a smart contract; contract deployment; constructor parameters.

How do I install Deploy Contract in Claude Code?

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

How do I install Deploy Contract in Codex?

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

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

What does Deploy Contract need to run?

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

Does Deploy Contract 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 Deploy Contract 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 Deploy Contract use?

Deploy Contract 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 Deploy Contract use?

About 1.2k tokens (SKILL.md is roughly 4.7k 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 Deploy Contract?

Skills that share tags, products or a category with Deploy Contract: Orchestration (austintgriffith/ethskills, 294 stars), Akka.NET Management and Discovery (Aaronontheweb/dotnet-skills, 1.2k stars), Clanker (BankrBot/skills, 1.2k stars) and Use Smart Contract Platform (circlefin/skills, 155 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deploy Contract?

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.