Skip to content

aldur/algorand-pyroma

Repository files navigation

PyRoma <> Algorand

Introduction to blockchain and Algorand (slide-deck):

  • Distributed systems and replicated storage.
  • Pure Proof of Stake (and green! 🪴) vs Proof of Work.
    • Verifiable Random Functions (VRFs) and leader election.
  • Why Algorand?
    • Blockchain trilemma;
    • scalability;
    • performance.

Developer workspace:

  • How to interact with the Algorand node:
    • High level overview of nodes, SDKs, sandboxes.

First steps

Writing (algod) and reading (indexer) from the blockchain.

# Source from ./connect.py

Creating an account

  • Public keys, private keys, accounts, and mnemonics.
    • Key table and rekyeing.
# Source from ./account.py

Funding the account

To fund the account, we can use goal (the CLI interface to algod):

goal clerk send -a 1000000 --from $CREATOR_ACCOUNT --to $RECEIVER_ACCOUNT

⛲ ...or we can use the dispenser, since we are working on the testnet.

Also, remember to setup the config.py file to hold the mnemonic of the account you just funded 💰.

First transaction (with note ✍️)

# Source from ./tx.py

Reading transactions

  • You can take a look at transactions using AlgoExplorer (remember to select the testnet if you are developing :)
  • From Python, we can use the indexer.
# Source from ./search.py

A first smart contract

  • Stateful vs Stateless Smart Contracts (ASC1)
  • Let's look at simple smart contract (and TEAL!)
# Source from ./stateless.py

There's a lot more!

  • Standard Assets (ASA)
    • NFTs, utility and security tokens, shares.
  • Atomic Transfers (AT)
  • Multi-signature accounts (k out of n)
  • 🧱 building blocks to a world of decentralized applications.

About

Code for: PyRoma - A pythonic approach to Algorand blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages