smart-contract-interaction
Skill by Nethereum
Explains how to interact with Ethereum smart contracts in C# and .NET using Nethereum typed DTOs. Covers deploying, calling, transacting, decoding events and gas handling. Aimed at .NET developers building on Ethereum.
Install smart-contract-interaction
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Nethereum/Nethereum /tmp/Nethereum && mkdir -p ~/.claude/skills && cp -r /tmp/Nethereum/plugins/nethereum-skills/skills/smart-contract-interaction ~/.claude/skills/smart-contract-interactionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install smart-contract-interaction in Claude Code
git clone --depth 1 https://github.com/Nethereum/Nethereum /tmp/Nethereum && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Nethereum/plugins/nethereum-skills/skills/smart-contract-interaction ~/.gemini/antigravity-cli/skills/smart-contract-interactionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install smart-contract-interaction in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explains how to interact with Ethereum smart contracts from C# and .NET using the Nethereum library. It shows how to define typed DTO classes for deployment messages, function calls, events and outputs. Those classes are then used with handlers to deploy, query and transact, giving compile-time checks on parameter names and types.
It also covers decoding events from transaction receipts, reading contract state at a past block, estimating gas, sending ETH with payable functions, setting nonces, and signing transactions offline. A non-type-safe option uses a raw ABI JSON string. Standard ERC-20, ERC-721 and ERC-1155 tokens can use built-in services. It is aimed at .NET developers building Ethereum integrations.
Written from the project's SKILL.md and checked against it.
What it can do
- Deploy contractsDeploys a contract using a deployment message class and returns the contract address from the receipt.
- Query contract stateCalls view or pure functions through GetContractQueryHandler without sending a transaction.
- Send transactionsSends state-changing contract calls through GetContractTransactionHandler and waits for a receipt.
- Decode eventsDecodes all matching events from a transaction receipt into typed event DTOs.
- Historical state queryReads contract state at a past block using BlockParameter.
- Gas estimationEstimates gas for a contract call and lets the caller set gas and gas price.
- Offline signingSigns a contract transaction without broadcasting it, with nonce, gas and gas price set manually.
- ABI JSON interactionCalls contract functions from a raw ABI string without typed classes.
What you need
- .NET and C#
- Nethereum.Web3 NuGet package
- Ethereum node with archive state for historical queries
Try asking
- Deploy a StandardToken contract from C# with Nethereum
- Decode Transfer events from a transaction receipt in .NET
- Estimate gas for a token transfer and set a gas price
Good to know
- Historical queries need a node with archive state for the requested block.
- Offline signing requires setting Nonce, Gas and GasPrice manually.
- The ABI JSON approach is less safe because parameter mismatches fail at runtime.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/nethereum-skills/skills/smart-contract-interaction/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to smart-contract-interaction
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
smart-contract-interaction: common questions
Does this skill work with C# and .NET?
Yes. The source shows C# code using the Nethereum.Web3 NuGet package for .NET.
Can it read contract state from a past block?
Yes. Query methods accept a BlockParameter, but the node must have archive state for that block.
What is the difference between typed and ABI JSON interaction?
Typed DTOs catch parameter mismatches at compile time. The ABI JSON approach is less safe and fails at runtime.
How do I install smart-contract-interaction?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is smart-contract-interaction free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is smart-contract-interaction safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to smart-contract-interaction?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
