PiRC2 Subscription Contract API
Pi Network's first smart contract capability β Recurring subscription payment spec
RFC Status
Overview
PiRC2 (Pi Request for Comments #2) is Pi Network's first smart contract specification, published by Pi Core Team CTO Nicolas Kokkalis in April 2026. PiRC2 defines a Soroban-based Subscription Contract API β enabling merchants and users to establish automatic recurring payment subscriptions on the Pi blockchain.
PiRC2's core innovation leverages Soroban's token allowance mechanism, allowing subscription payments without requiring the user to re-sign each time, while funds remain in the subscriber's wallet and are only transferred at the time of actual billing. This solves the core challenge of recurring payments on traditional blockchains.
The reference implementation (source code) is in the PiNetwork/SmartContracts directory of the contracts/subscription/ repository, currently undergoing external security audit. OrbitWatch tracks all PiRC2 document updates in the PiNetwork/PiRC repository.
Recent Document Changes
View on GitHub βdc86dfdApr 17, 2026Introduction of PiRC2 Protocol Specification for Ecosystem Tokens
The Pi Network ecosystem is introducing PiRC2, a significant evolution of its protocol for launching...
Technical Spec
Subscription Model
- βMerchant service registration with configurable pricing
- βSubscriber opt-in with or without upfront commitment
- βPre-approved token allowance via Soroban allowance mechanism
Billing & Lifecycle
- βPeriodic charge processing without re-signing
- βExpiration ledger for budget horizon control
- βSubscription pause, resume, and cancellation flows
Smart Contract
- βSoroban-based reference implementation
- βtransfer_from allowance draw-down per billing event
- βExternal audit in progress (PiNetwork/SmartContracts)
Governance
- βCommunity RFC via GitHub Issues
- βCore Team ratification process
- βOpen-source reference implementation
Specification Documents
Timeline
PiRC2 specification published by Pi CTO (Nicolas Kokkalis)
Community RFC process started β GitHub Issues open
External smart contract audit completed
Final PiRC2 spec ratification by Core Team
Subscription Contract mainnet deployment
Deep Dive
Related
PiRC1 β Pi Launchpad / Ecosystem Token Design
Pi Network ηζ 代幣ηΌθ‘ζ‘ζΆθ¦ζ Ό