InterPay
Smart Payments for a Connected World.
The problem InterPay solves
InterPay — Real-Time Payments on Solana
InterPay is a decentralized payment streaming protocol built on Solana that enables real-time fund transfers per second. Instead of sending money in large, delayed transactions, InterPay allows continuous payment flows — making salaries, subscriptions, and service payments instant, transparent, and flexible.
Users can start, pause, resume, or cancel payment streams at any time. All stream data is stored on-chain, ensuring full transparency, trust, and verifiable transaction history without relying on intermediaries.
With Solana’s high speed and low fees, InterPay makes micro-transactions practical and scalable — unlocking a new way to pay where money moves exactly when it should.
What you can do with InterPay
Stream salaries in real-time
Pay subscriptions per second instead of monthly
Automate service-based payments
Instantly pause or cancel active streams
Maintain full on-chain transparency
Keep full custody of your funds
Why InterPay
Traditional payment systems are slow, opaque, and rigid. InterPay replaces them with programmable, real-time, trustless payment flows — giving both senders and receivers complete control.
Fast. Transparent. Non-custodial. Borderless.
Challenges we ran into
While implementing the real-time payment streaming logic in the Solflow smart contract, a major challenge was handling time-dependent token withdrawals in a blockchain environment where programs do not execute continuously. In the initial design, it seemed necessary for the sender to repeatedly trigger on-chain transactions to distribute funds over time, which would have increased transaction costs and created dependency on the sender remaining online.
To overcome this, a pull-based streaming mechanism was introduced. Instead of pushing payments every second, the contract stores stream parameters on-chain (start time, end time, and rate per second), and the receiver can call the withdraw() function at any time. The contract calculates the elapsed time using Solana’s on-chain clock and deterministically computes the exact withdrawable amount. This ensures accurate real-time payment simulation without requiring continuous on-chain execution.
Another challenge was integrating SPL token transfers securely while validating mint and token account ownership. Early tests caused “AccountOwnedByWrongProgram” errors due to incorrect account configurations. This was resolved by enforcing strict Anchor account constraints to ensure token accounts matched the correct mint and owners.
Additionally, local environment mismatches between Rust, Anchor, and Solana toolchains caused build and test failures, which required switching to a local Solana validator and regenerating lock files to stabilize the development setup.
These solutions resulted in a scalable, trust-minimized, and gas-efficient streaming protocol that accurately simulates per-second payments on-chain without continuous transaction overhead.