x402 0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package x402 --version 0.0.1
                    
NuGet\Install-Package x402 -Version 0.0.1
                    
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="x402" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="x402" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="x402" />
                    
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 x402 --version 0.0.1
                    
#r "nuget: x402, 0.0.1"
                    
#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 x402@0.0.1
                    
#: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=x402&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=x402&version=0.0.1
                    
Install as a Cake Tool

x402-dotnet

x402 Payment Protocol implementation for .Net

Install the x402 package from NuGet:

Features:

  • Add a x402 compatible paywall to any URL
  • Handle payment settlement using a remote server

How to use?

Development

There is a sample website and mock Settlement server included.

  • Start the Aspire project: x402-dotnet.AppHost
  • Navigate to the sample website https://localhost:7154/
  • Use the x402.SampleWeb.http for sample web requests
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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on x402:

Package Downloads
x402.Coinbase

x402 Payment Required Coinbase facilitator client for .net

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 32 3/12/2026
2.0.1 33 3/12/2026
2.0.0 147 1/9/2026
0.0.18 463 12/10/2025
0.0.17 199 12/5/2025
0.0.16 701 12/2/2025
0.0.15 451 11/18/2025
0.0.13 177 11/7/2025
0.0.12 175 11/1/2025
0.0.11 187 10/31/2025
0.0.10 219 10/29/2025
0.0.9 235 10/29/2025
0.0.8 194 10/24/2025
0.0.7 192 10/24/2025
0.0.6 206 10/22/2025
0.0.5 170 10/17/2025
0.0.4 211 10/8/2025
0.0.3 211 10/7/2025
0.0.2 211 10/6/2025
0.0.1 177 10/3/2025