TON Payments
TON Payments is the platform for micropayment channels.
It allows instant payments without the need to commit all transactions to the blockchain, pay the associated transaction fees (e.g., for the gas consumed), and wait five seconds until the block containing the transactions in question is confirmed.
Because the overall expense of such instant payments is so minimal, they can be used for micropayments in games, APIs, and off-chain apps. See examples.
Payment channels
Smart contracts
SDK
To use payment channels, you don’t need deep knowledge of cryptography.
You can use prepared SDKs:
- toncenter/tonweb JavaScript SDK
- toncenter/payment-channels-example—how to use a payments channel with tonweb.
Examples
Find examples of using payment channels in the Hack-a-TON #1 winners:
- grejwood/Hack-a-TON—OnlyTONs payments project (website, video)
- nns2009/Hack-a-TON-1_Tonario—OnlyGrams payments project (website, video)
- sevenzing/hack-a-ton—Pay-per-Request API usage in TON (video)
- illright/diamonds—Pay-per-Minute learning platform (website, video)