Skip to main content

SDK & CLI

Net Protocol provides a TypeScript SDK and command-line tool for building applications and interacting with the protocol programmatically.

Repository: github.com/stuckinaboot/net-public

CLI Tool (netp)

The netp CLI lets you interact with Net Protocol directly from your terminal.

What you can do:

  • Send and read messages
  • Upload and read from storage
  • Deploy Netr tokens
  • Query protocol info

Best for: Quick operations, scripts, automation, AI agent interactions.

Install: npm install -g @net-protocol/cli

Full CLI documentation

TypeScript SDK

SDK packages for building applications on Net Protocol:

PackagePurpose
@net-protocol/coreRead and send messages
@net-protocol/storageKey-value storage operations
@net-protocol/netrToken deployment and queries
@net-protocol/relayGasless transactions via x402

Each package provides both React hooks (for frontend apps) and client classes (for Node.js/backend).

Best for: Building web applications, React/Next.js apps, Node.js services.

SDK package documentation

Example Application

A working Next.js application demonstrating wallet connection, messaging, and storage operations.

Example app with setup instructions