Alexander Codesalexandercodes.hashnode.dev·Apr 21, 2024Building a Personal NFT Marketplace on AlgorandIntroduction In this post, we're going to look at writing a simple smart contract in Algorand Python that allows a creator to list and sell their NFTs. The creator will be able to transfer assets to the application and set a sale price for each item ...Discuss·1 like·80 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 20, 2024Simulating UTXOs on AlgorandIntroduction There are two main accounting models used in blockchains: the UTXO model and the account model. The former is used by Bitcoin and Cardano; the latter is used by Ethereum, Algorand, and most other blockchains. Let's see if we can use Pyth...Discuss·10 likes·165 readsalgorand
Alexander Codesalexandercodes.hashnode.dev·Apr 18, 2024Tokenised 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·243 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·93 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·783 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·253 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·155 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·256 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·308 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·117 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