Algorand Atomic Transfers

Russ Fustino
Dec 5, 2019 · 3 min read
Image for post
Image for post

Figure 1 A conceptual overview of Algorand Atomic Transfers for developers.

Introduction

Atomic Transfers are irreducible batch transactions that allow groups of transactions to be submitted at one time. See Figure 1 above for a conceptual overview. If any of the transactions fail, then all the transactions will fail. That is, an Atomic Transfer guarantees the simultaneous execution of multiple transfers of all kinds of assets. Detailed documentation about this feature is available on Algorand’s developer website here. If you are a database developer this is analogous to database transaction (it all works or none of it works).

In this post we will draw out some of the most important concepts for developers who plan to work with Atomic Transfers. We will list some of the many examples of real-world assets that users can represent with this feature on the Algorand blockchain. Then we will share an example scenario paired with an interactive task to get you started with this new feature on TestNet.

Steps to create Atomic Transfers

Note that goal and the SDKs include wrappers for these steps.

Image for post
Image for post

Figure 2 Diagram shows the steps to create an Atomic Transfer.

Figure 2 above shows the flow of an Atomic Transfer. See implementations in using the Go, Java, JavaScript and python SDKs here. You will find examples for creating group transactions and sending them to the network in each of the available SDKs. For information on installing Go, Java, JavaScript and Python SDKs see Using the SDKs and REST APIs.

The example code at the above link is separated into snippets categorized by these core functions…

Create the Transactions — This is like creating any kind of transaction in Algorand.

Group the Transactions — This involves computing a groupID and assigning that id to each transaction.

Sign the grouped transactions — Sign the grouped transactions with their respective private keys.

Send the transactions to the network — Combine the transactions and send it to the net.

Atomic Transfers Use Cases

Atomic Transfers enables applications such as:

Interactive Task

Get started with Atomic Transfers click here. See the full task on our forums here

Resources

Atomic Transfers

Atomic Transfers Usage

Image for post
Image for post

Algorand

Algorand Inc.

Thanks to Liz Baran

Russ Fustino

Written by

Russ is Technical Evangelist on Blockchain for Algorand and a Microsoft MVP reconnect in App Development and author of “Azure and Xamarin Forms”. @RussFustino

Algorand

Algorand

Algorand Inc. built the world’s first open source, permissionless, pure proof-of-stake blockchain protocol for the next generation of financial products. This blockchain, the Algorand protocol, is the brainchild of Turing Award-winning cryptographer Silvio Micali.

Russ Fustino

Written by

Russ is Technical Evangelist on Blockchain for Algorand and a Microsoft MVP reconnect in App Development and author of “Azure and Xamarin Forms”. @RussFustino

Algorand

Algorand

Algorand Inc. built the world’s first open source, permissionless, pure proof-of-stake blockchain protocol for the next generation of financial products. This blockchain, the Algorand protocol, is the brainchild of Turing Award-winning cryptographer Silvio Micali.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store