Skip to content
Fast and cheap off-chain micro-transactions for the Telegram Open Network
Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

TON Payment Channels

Fast and cheap off-chain micro-transactions for the Telegram Open Network.

A payment channel allows two parties to send funds to each other over a period of time using fast and cheap micro-transactions. The micro-transactions happen off-chain, however they are guaranteed by funds locked on-chain and do not require the parties to trust each other.

How it works

  • The payment channel is deployed and configured with the addresses of the two parties involved.
  • Both parties contribute their shares by sending them to the contract.
  • All further transactions happen off-chain by exchanging signed messages in a special format that facilitates keeping track of liabilities.
  • After all micro-transactions have been performed, the two parties communicate the results to the contract and it redistributes the funds accordingly.


  • If one of the parties disappears and stops communicating according to the protocol, the locked funds are released after a predetermined timeout.
  • Even if one of the parties behaves dishonestly, the other party will get at least as much funds as they expect to get.
  • Optionally, misbehaviour (disappearing or being actively dishonest) can be penalised by incurring a fine on the misbehaving party.



Building the contract code

  • make

Using the contract

See the Tutorial.

About Serokell

This repository is maintained and funded with ❤️ by Serokell. The names and logo for Serokell are trademark of Serokell OÜ.

We love open source software! See our other projects or hire us to design, develop and grow your idea!

You can’t perform that action at this time.