Whaleshares Logo

The Algorand atomic transfers and the uses cases

productreviewsPosted for Everyone to comment on, 4 years ago3 min read

Developer portal.png

Multi-party or third-party transactions characterise our daily economic activities. We encounter the need to participate in a transaction with another party in a trade or the exchange of assets. However, trusting the other party often remains a problem since people are bound to fail. To solve this, the transaction parties often decide to involve a third-party to validate or process the transactions. Traditionally banks would play that role as intermediaries. While this approach solves the problem, it is slower and expensive. One way to solve this is through programmable blockchain smart contracts that perform trustless transaction payments between two parties.

Blockchain atomic swaps is the instant exchange of assets between two parties without an intermediary such as a bank. It is a feature on Algorand blockchain that makes the process faster and executed under 5 seconds. On Algorand, atomic swaps

“are implemented as irreducible batch operations, where a group of transactions are submitted as a unit and all transactions in the batch either pass or fail”

This allows for simultaneous execution other than time-dependent atomic-swaps such as hashed timelock transactions. Group-based transactions can be implemented en masse once according to the smart contract rules. In building your application, developers can make use of the atomic swaps feature in their application. Here are some use cases for Algorand atomic swaps for developers to explore and build dapps.

Decentralized Exchanges
Decentralised exchanges depend on atomic swaps to allow people to exchange assets without going through a centralised exchange. The owners list the assets and assets are swapped after there is a price match. And multiple swaps of this nature happens at the same time when there is a price match in the trade. The swaps don’t have to happen one after the other. Exchange process huge transaction volumes daily and atomic swaps, together with other Algorand features, facilitates this process. It works well on centralised and decentralised exchange platforms.

Group Buying
The atomic swaps feature helps to build apps that allow for mandatory group payments where the transaction is only complete when all members have paid or contributed. Imagine that 3 people want to buy a property but the deed can only be transferred to them after all parties have paid their contribution. After payment is made, the buy transaction is completed and atomic swap kicks in to exchange the assets in less than 5 minutes.

Circular Trades
There are times we need a way to make a rotating payment why payments are collected from one person and the money paid to any individual at the end of the month. For instance, a supply chain cycle will use atomic swaps to make payments among parties in the supply chain. In the wine supply chain, the wine distributor pays the farmer only after the wine shop pays distributor and the wine farmer pays the wine shop.

Bulk Payouts
This allows a single account to make payments to multiple accounts at a go. You can also call it split payments. This feature can be used for blockchain employee payments based on work hours and employee grade.
Some of the above are implemented already and the power of the atomic swaps have been put to use. The also Algorand wallet is built on some of these features while the future possibilities are endless.

Sign Up to join this conversation, or to start a topic of your own.
Your opinion is celebrated and welcomed, not banned or censored!