📄

Smart Contracts

Pi Network Smart Contract Capabilities Overview

May 6, 2026

Overview of Pi Network's Smart Contract Capabilities


What are Pi's Smart Contracts?

In May 2026, Pi Network officially introduced full smart contract capabilities through the Protocol V23 upgrade.

A smart contract is a self-executing program hardcoded onto the blockchain. It automatically executes when conditions are met, without the need for any intermediaries. With this upgrade, Pi is no longer just a mining community—it has become a programmable blockchain where developers can build real-world applications.

Pi's smart contracts are based on the Rust + WebAssembly (WASM) architecture, utilizing the Soroban framework from the Stellar ecosystem, with a design emphasizing security and verifiability.


What Three Types of Smart Contracts Does Pi Support?

Subscription Contract

Allows merchants to automatically collect recurring payments from users without requiring a new signature each time. Funds remain in the user's wallet and are only transferred out when the actual deduction occurs. This is a core feature defined by PiRC2.

Official Specification: PiRC2 Subscription Contract Source Code: PiNetwork/SmartContracts


Escrow Contract

Enables secure peer-to-peer transactions without the need for trust. The buyer deposits Pi into the contract, and after the seller fulfills the predefined conditions (e.g., confirming delivery), the contract automatically releases the funds. No intermediaries, no room for scams.

Applicable Scenarios: Second-hand markets, service transactions, cross-border payments


NFT-Related Contracts

Supports the issuance, trading, and verification of digital collectibles. Pi's NFT contracts are designed to emphasize practical applications rather than purely speculative trading.

Applicable Scenarios: Digital membership cards, in-game items, creator content


Pi DEX: On-chain Decentralized Exchange

Following the V23 upgrade, Pi DEX was launched, allowing users to directly exchange Pi and ecosystem tokens on-chain, without the need for centralized exchanges.

Pi DEX utilizes an AMM (Automated Market Maker) mechanism, using Pi as the base currency for all trading pairs, ensuring liquidity is concentrated rather than fragmented.


Official Code Repository

On April 17, 2026, the Pi Core Team established the PiNetwork/SmartContracts GitHub repo to host the actual source code for official smart contracts.

Currently includes:

  • contracts/subscription/ — Rust implementation of the PiRC2 Subscription Contract (external audit in progress)

More contract types are expected to be added continuously after V23 goes live.

SmartContracts Repo Analysis →


Developer Resources

ResourceLink
Official Smart Contract Source CodePiNetwork/SmartContracts
PiRC2 Specification DocumentPiNetwork/PiRC/PiRC2
Pi Developer Platformdevelopers.minepi.com

OrbitWatch's Monitoring Focus

After V23 goes live, OrbitWatch will continue to track:

  • On-chain protocol_version switch — Monitored every 15 minutes, updated immediately after switching
  • First batch of smart contract deployments — Timing and contract types
  • First mainnet transaction on Pi DEX — Transaction volume and liquidity depth
  • New contracts in the SmartContracts repo — Each new folder represents a new feature

Further Reading


OrbitWatch is an independent Pi Network ecosystem observatory and is not affiliated with the official Pi Network. All information does not constitute investment advice.

重點摘要

  • Pi Network introduced full smart contract capabilities with Protocol V23 in May 2026, transforming into a programmable blockchain.
  • Pi's smart contracts are built on Rust + WebAssembly (WASM) using Stellar's Soroban framework, emphasizing security and verifiability.
  • Key contract types include Subscription, Escrow, and NFT-related contracts, alongside the new Pi DEX for on-chain token exchange.