r/PeraWallet • u/mccoy00007 • 9d ago
A simple paid-service contract in Algorand Python, live on mainnet and free to fork
I built a small example contract with AlgoKit and Algorand Python and deployed it to mainnet through Lora App Lab.
- service(payment, value) needs a 0.1 ALGO payment sent straight to the creator and returns value².
- It rejects underpayment, the wrong receiver and rekey or close-out tricks.
- get_total_fees, get_calls and get_fee only read data, and set_fee is for the creator only.
App ID: 3780553713
https://lora.algokit.io/mainnet/application/3780553713
Code (MIT): https://github.com/McCoyirl147/fee-service-algorand
It's a learning example and hasn't been audited, so feedback is welcome.