Alexander Codesalexandercodes.hashnode.dev·a day agoTokenised Subscriptions on AlgorandIntroduction In this blog post, we'll explore a novel way to implement periodic payments on Algorand. The general idea is to write a smart contract that issues redeemable subscription tokens. Each subscription is represented by a unique asset, and ea...Discuss·13 likes·170 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 14, 2024Proof of Chance: A Fair Launch Smart ContractIntroduction It's difficult to ensure that all users have equal access to purchase or claim assets at launch. The fundamental issue, as I see it, is that there's no way to link an account or a set of accounts to an individual, without destroying priv...Discuss·2 likes·88 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 5, 2024FeaturedLinear Vesting in Algorand PythonIntroduction A vesting schedule is a mechanism that gradually releases tokens or assets over a specified period of time. In a linear vesting schedule, the release of tokens is linearly distributed over time, meaning that an equal amount of tokens is ...Discuss·17 likes·773 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 2, 2024Inner Transactions in Algorand PythonLet's explore how we can use inner transactions in Algorand Python smart contracts. To follow along with the tutorial, start by importing the itxn submodule from algopy: from algopy import itxn You should then be able to see the different types of i...Discuss·2 likes·245 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Mar 28, 2024Five Iterations in Algorand PythonAlgorand Python v1 was released today! 🥳 There are quite a few changes and improvements from the developer preview, so things might look a little different to my previous posts. If you are new to Python on Algorand, I would recommend watching Alessa...Discuss·2 likes·148 readsalgopy
Alexander Codesalexandercodes.hashnode.dev·Mar 24, 2024Building a Hashed Timelock Contract on AlgorandIntroduction A hashed timelock contract (HTLC) is a type of smart contract used in blockchain applications. It reduces counterparty risk by creating a time-based escrow that requires a cryptographic passphrase for unlocking. In practical terms, this...Discuss·1 like·251 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Mar 16, 2024Evolving NFTs on AlgorandRecently I've been thinking about dynamic NFTs. Algorand's ARC-19 provides a way to update an NFT's metadata over time, by changing the reference in the reserve address field. It relies on the token manager submitting a new transaction to transition ...Discuss·1 like·306 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Mar 10, 2024Verifying Merkle Proofs on AlgorandMerkle trees are an extremely useful data structure for tamper-proof collections. They are ubiquitous in blockchains. There are many potential use cases for smart contracts that can verify an inclusion proof, so let's look at how we can write one wit...Chris Kim and 1 other are discussing this2 people are discussing thisDiscuss·116 readsalgorandThat was so clear and easy to understand. I love how you show how it's done in OpenZeppelin first and show how it is done in Puyapy. 3
Alexander Codesalexandercodes.hashnode.dev·Mar 10, 2024Provable NFT Collections on AlgorandContext NFTs are created using Algorand Standard Assets (ASAs), which are built into the protocol and created using a special type of transaction. This is distinct from some other blockchains where a smart contract is necessary to represent assets. ...Discuss·112 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Mar 3, 2024Minting Fibonacci NFTs on AlgorandLet's explore how to create an Algorand smart contract that mints NFTs with Fibonacci numbers as metadata. We'll write the smart contract code in python, using PuyaPy. Fibonacci Sequence The Fibonacci sequence is defined as: F(0) = 0, F(1) = 1 F(n) =...Discuss·2 likes·147 readsalgorand