R3E.SmartContract.Framework 3.0.0

dotnet add package R3E.SmartContract.Framework --version 3.0.0
                    
NuGet\Install-Package R3E.SmartContract.Framework -Version 3.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="R3E.SmartContract.Framework" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="R3E.SmartContract.Framework" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="R3E.SmartContract.Framework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add R3E.SmartContract.Framework --version 3.0.0
                    
#r "nuget: R3E.SmartContract.Framework, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package R3E.SmartContract.Framework@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=R3E.SmartContract.Framework&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=R3E.SmartContract.Framework&version=3.0.0
                    
Install as a Cake Tool

Neo.SmartContract.Framework

The core framework for developing Neo N3 smart contracts in C#. This library provides all the essential APIs and attributes needed to write smart contracts for the Neo blockchain.

Features

  • Complete Neo N3 smart contract API
  • Native contract interfaces (NEO, GAS, Oracle, etc.)
  • NEP standard implementations (NEP-17, NEP-11)
  • Storage, Runtime, and Crypto APIs
  • Contract upgrade and update functionality
  • Event and notification support

Installation

dotnet add package R3E.SmartContract.Framework

Quick Start

using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Attributes;
using Neo.SmartContract.Framework.Services;

[DisplayName("HelloWorld")]
[ManifestExtra("Author", "Neo Community")]
public class HelloWorld : SmartContract
{
    public static string SayHello(string name)
    {
        return $"Hello, {name}!";
    }
}

Core APIs

  • Runtime: Contract execution context and blockchain data
  • Storage: Persistent contract storage
  • Crypto: Cryptographic operations
  • Contract: Inter-contract calls
  • Native Contracts: NEO, GAS, Oracle, Policy, etc.

Documentation

For detailed documentation, visit the Neo Smart Contract Development Guide.

License

MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on R3E.SmartContract.Framework:

Package Downloads
R3E.Compiler.CSharp

R3E edition of the Neo Smart Contract Compiler - Advanced C# to Neo VM bytecode compiler with optimization and security features

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 13 8/3/2025
2.1.0 11 8/3/2025
2.0.0 15 8/3/2025
1.0.4 18 8/2/2025
1.0.3 100 8/1/2025
1.0.3-release 49 8/1/2025
1.0.3-fixed 48 8/1/2025
1.0.2 18 7/19/2025
1.0.1 45 7/18/2025
1.0.0 70 7/18/2025
0.0.4 136 7/14/2025
0.0.1 129 7/13/2025