James Bachini

James

  • The Age of Surveillance Capitalism Summary – Shoshana Zuboff

    The Age of Surveillance Capitalism Summary – Shoshana Zuboff

    Shoshana Zuboff’s The Age of Surveillance Capitalism is a landmark work of political economy and social critique that introduces a powerful framework to understand how major tech firms have forged a new, unregulated form of capitalism. Zuboff argues that we are living through a historical turning point, where a handful of technology corporations most notably…

  • Bridging Assets With Stellar x Near Intents

    Bridging Assets With Stellar x Near Intents

    Imagine being able to bridge and swap different assets across different chains with a single API call. That’s the promise of Near Intents who have just announced an integration with Stellar. James On YouTube Watch On YouTube: https://youtu.be/moqWwcMppgY | Subscribe The recent launch of Near Intents for Stellar marks a major milestone in cross-chain interoperability,…

  • The Alchemy Of Finance Summary – George Soros

    The Alchemy Of Finance Summary – George Soros

    George Soros challenges the foundational assumptions of modern financial theory in “The Alchemy of Finance,” presenting his revolutionary theory of reflexivity that fundamentally reframes how markets operate. Rather than accepting the efficient market hypothesis that dominates academic finance, Soros argues that financial markets are inherently unstable and driven by the bidirectional relationship between market participants’…

  • Creating A Web3 Chat Room

    Creating A Web3 Chat Room

    Did you know that Chrome and other browsers have a built in speech-to-text API? I thought I could use this to create an online chat room using web3 serverless technology. The result… https://jamesbachini.github.io/Talking-Smart-Contracts The frontend is hosted on Github pages and the backend is just a permissionless, immutable smart contract hosted on Stellar, a decentralized…

  • Proof of Work vs Proof of Stake

    Proof of Work vs Proof of Stake

    When Ethereum’s developers pressed the “Merge” button in September 2022, they cut the network’s electricity appetite by an estimated 99.95 percent overnight. The move rekindled a debate that refuses to die: is proof of work’s gargantuan energy bill a feature or a bug, and does proof of stake silently trade away the very decentralization crypto…

  • The Inevitable Summary – Kevin Kelly

    The Inevitable Summary – Kevin Kelly

    The Inevitable presents a compelling and deeply thought out vision of the future, grounded in the belief that certain technological trends are not merely likely but inescapable. Kevin Kelly, co founder of Wired magazine and a prominent futurist, argues that while we cannot predict the specific products or companies of tomorrow, we can forecast the…

  • GPT5 on the next 10 years

    GPT5 on the next 10 years

    The Next Decade, Rewired: Power, Compute, and the New Geography of Advantage (2025–2035) Date: August 2025 – full prompt at the end By 2035, the decisive constraint on growth will shift from capital and data to power and permission. AI will commoditize knowledge work faster than markets expect, but the bottlenecks and outsized returns will…

  • IPFS vs Filecoin

    IPFS vs Filecoin

    The Developer’s Guide To Choosing Between IPFS And Filecoin A decade ago “decentralized storage” sounded like science fiction. Today the question has narrowed to a practical dilemma whispered in Discord channels and sprint retrospectives alike: IPFS vs Filecoin which should you build on? If uptime, censorship resistance, and predictable costs sit anywhere on your roadmap,…

  • Stop Breaches Before They Start :: Inside The Stellar Security Audit Bank

    Stop Breaches Before They Start :: Inside The Stellar Security Audit Bank

    A single unchecked line of smart contract code can vaporize trust and TVL faster than we can refresh the crypto twitter newsfeed. Yet securing a top tier audit often feels out of reach for developers bootstrapping their web3 projects. James On YouTube Watch On YouTube: https://youtu.be/NatWTeVET9Q | Subscribe The Stellar Development Foundation’s Soroban Security Audit…

  • Passing The Keys | Crypto Inheritance Planning

    Passing The Keys | Crypto Inheritance Planning

    It is estimated that 26% of all Bitcoin will be lost forever by the first generation. You may have heard the story of James Howell who is still fighting a legal campaign to get a Welsh waste disposal ground excavated because he believes it holds his old laptop with nearly a billion dollars of Bitcoin…

  • Principles Summary – Ray Dalio

    Principles Summary – Ray Dalio

    Ray Dalio’s Principles is a hybrid manifesto, part memoir and part management guide, built on a foundational thesis: success whether in life or business is the result of identifying and consistently applying a set of fundamental principles. Dalio, founder of Bridgewater Associates, one of the world’s largest and most successful hedge funds, distills decades of…

  • The Bitcoin Standard Summary – Saifedean Ammous

    The Bitcoin Standard Summary – Saifedean Ammous

    The Bitcoin Standard presents a sweeping, interdisciplinary case for why Bitcoin is not merely a technological innovation or speculative asset, but a necessary evolution in the history of money. Saifedean Ammous argues that sound money money that is hard to produce and politically neutral is essential to the advancement of civilization. In his view, Bitcoin…

  • How To Use Smart Contracts & Passkeys To Set Up Auth On A Web App

    How To Use Smart Contracts & Passkeys To Set Up Auth On A Web App

    This tutorial dives into the creation of smart contract accounts and how this can be used as an identity platform also capable of payments James On YouTube Watch On YouTube: https://youtu.be/V2DwDzp43E8 | Subscribe The first step is to setup the passkey-kit demo which we will be using as a boilerplate. You can clone the repo…

  • Web3 Social Media | The First Network Where You Keep The Likes

    Web3 Social Media | The First Network Where You Keep The Likes

    Imagine opening your favourite social app knowing that every photo, comment, and connection you create is yours, stored in a wallet only you can access, portable to any future platform, and even capable of earning you revenue instead of Meta’s shareholders. That future is no longer science fiction; it is the central promise of Web3…

  • The Growing Demand For Fractional CTO’s | Why Every Startup Wants a Fractional C-Suite

    The Growing Demand For Fractional CTO’s | Why Every Startup Wants a Fractional C-Suite

    Could your next role be a part-time role as a fractional CTO? Or are you looking to hire a technical lead but don’t want to commit to a full time employee? Startups are under immense pressure to move fast, innovate constantly, and do it all without burning through capital. But there’s a growing secret weapon…

  • Lessons From Building A Stellar Options Contract

    Lessons From Building A Stellar Options Contract

    In this tutorial I’ll be going through everything I learned while creating a Soroban smart contract for a call option. There are some interesting code snippets and gotcha’s for Soroban developers below but let’s start with the basics, Options 101. James On YouTube Watch On YouTube: https://youtu.be/Z8FHVllP_D0 | Subscribe What Are DeFi Options? Financial options…

  • Your First Rust Smart Contract Using Stellar

    Your First Rust Smart Contract Using Stellar

    In this tutorial we are going to deploy your first rust based smart contract using Stellar Soroban. James On YouTube Watch On YouTube: https://youtu.be/P8RuX7Ymu5Q | Subscribe ✨ Hello World Rust Smart Contract Let’s start by heading over to soropg.com Copy and paste this code into the editor Replace James with whatever you want to write…

  • Life 3.0 Summary – Max Tegmark

    Life 3.0 Summary – Max Tegmark

    Max Tegmark proposes a provocative and methodical exploration of humanity’s future in the age of artificial general intelligence. The book’s core thesis is that artificial intelligence will fundamentally transform life on Earth, and the direction of this transformation depends on choices we make today technological, philosophical, and governance related. Tegmark divides the evolution of life…

  • How Coinbase Commerce Lets Merchants Keep More Revenue And Reach A Global Market

    How Coinbase Commerce Lets Merchants Keep More Revenue And Reach A Global Market

    Imagine waking up to a dashboard that shows overnight sales from three continents, settled in Bitcoin, USDC, and Ether. Each payment final, fraud proof, and already in your private wallet. No chargebacks. No rolling reserves. No credit card processing fees. That promise, more than any headline about blockchain, is why thousands of entrepreneurs are adding…

  • Decentralized Identity Systems

    Decentralized Identity Systems

    A few summers back I watched an Ethereum based microlending protocol bleed 78% of its liquidity in 48 hours, not because its code failed but because it could not tell real borrowers from bots. If an economy cannot distinguish one human from another, the promise of web3 and decentralized finance stays hypothetical. Today I want…

  • Storing User Data with Rust Structs and Enums

    Storing User Data with Rust Structs and Enums

    In Soroban we model contract state with Rust types. For example, the SoroMarket contract defines a Rust struct for each user’s bets and an enum for the market outcome. Here is a simplified version of the code: Here Outcome holds the global state of the contract as a single enum variable and Bets is a…

  • NFT Royalties | New OpenZeppelin Library For Stellar

    NFT Royalties | New OpenZeppelin Library For Stellar

    In this tutorial we are going to dive into the new NFT token extension for royalties on Stellar. James On YouTube Watch On YouTube: https://youtu.be/17AGbMMBEz8 | Subscribe NFT royalties provide a mechanism for ensuring that creators continue to benefit from secondary sales of their work. With the latest release of OpenZeppelin’s NFT extensions for Soroban…

  • The Personal MBA Summary – Josh Kaufman

    The Personal MBA Summary – Josh Kaufman

    At its core, The Personal MBA by Josh Kaufman argues that traditional business school education is neither necessary nor cost effective for acquiring practical business knowledge. Instead, individuals can attain a comprehensive and high quality business education through focused self study, deliberate practice, and real world application. Kaufman presents a self education framework and an…

  • Ledger vs Trezor Hardware Wallets

    Ledger vs Trezor Hardware Wallets

    How I Found the Best Hardware Wallet After Testing Both Market Leaders (And Why Most People Pick Wrong) Hardware wallets represent the gold standard for cryptocurrency security, yet most investors make their choice based on marketing rather than meaningful analysis. After five years of testing both Ledger and Trezor devices across different use cases, I’ve…

  • Hello World In Solidity

    Hello World In Solidity

    Your first smart contract deployment represents a fundamental shift in how you think about software. Unlike traditional applications that run on centralized servers, smart contracts execute on a distributed network of thousands of computers worldwide. Once deployed, your code becomes permanent, transparent, and permissionless. This immutability creates both opportunity and responsibility. Smart contracts have facilitated…

  • Crossing The Chasm Summary by Geoffrey Moore

    Crossing The Chasm Summary by Geoffrey Moore

    Geoffrey Moore’s Crossing the Chasm presents a seminal roadmap for technology startups seeking to scale beyond early adopters and into mass markets. The central thesis of the book is that there is a dangerous and often underestimated gap, “the chasm“, between early adopters of a new technology and the mainstream market. Startups that fail to…

  • Scaffold Stellar | A Boilerplate For Stellar Developers

    Scaffold Stellar | A Boilerplate For Stellar Developers

    If a single command could spin up a Stellar contract, connect it to a React front end, hot reload every edit, and hand you push button deployment to Stellar testnet, would you finally ship that web3 idea? Scaffold Stellar from Aha Labs promises exactly that. James On YouTube Watch On YouTube: https://youtu.be/7wKD3d9w5d0 | Subscribe Stellar’s…

  • Maths For Developers | 6 Essential Techniques Every Developer Needs

    Maths For Developers | 6 Essential Techniques Every Developer Needs

    The harsh reality is that most developers are self taught with a surface level understanding of the mathematical foundations that power their code. We learn syntax, frameworks, and design patterns, but we often miss the elegant mathematical principles that make our algorithms efficient and our solutions robust. This gap costs us time, creates bugs, and…

  • How I Installed Ollama To Run AI Models Locally

    How I Installed Ollama To Run AI Models Locally

    Ever wondered if you could ditch the cloud and run powerful AI models on your own laptop or server? I thought it sounded impossible until I installed Ollama. In just a few hours, I had Llama3.2 up and running locally. I’ll walk you through exactly how I did it, the trade offs I discovered (spoiler:…

  • Founders at Work Summary | Stories of Startups Early Days by Jessica Livingston

    Founders at Work Summary | Stories of Startups Early Days by Jessica Livingston

    Jessica Livingston’s Founders at Work offers an intimate, behind the scenes chronicle of the early stages of iconic tech startups through in depth interviews with over 30 influential founders, including Steve Wozniak (Apple), Paul Graham (Viaweb/Y Combinator), Caterina Fake (Flickr), and Max Levchin (PayPal). The core thesis is that successful startups are not born from…

  • Creating A Wrapped Stablecoin

    Creating A Wrapped Stablecoin

    In this tutorial I will be creating a SEP41 wrapped stablecoin using a Stellar smart contract. James On YouTube Watch On YouTube: https://youtu.be/jfjKg86GEwY | Subscribe I’ll be using the soropg.com online IDE along with the latest libraries from OpenZeppelin. Note that all code in this tutorial is open source on github here: https://github.com/jamesbachini/Soroban-Stablecoin/ Let’s dive…

  • Pre Audit Checklist For DeFi/Web3 Projects

    Pre Audit Checklist For DeFi/Web3 Projects

    Here’s a Pre Audit & Bug Bounty Checklist for DeFi Protocols and Web3 Projects, adapted from best practices and structured for easy use across projects preparing for third party audits or launching a bug bounty program. Use this checklist to prepare your protocol for a formal audit and/or bug bounty launch. Completing these tasks will…

  • How The Next Decade Will Reshape Civilization

    How The Next Decade Will Reshape Civilization

    Twenty two percent. That was the interest rate on a six month commercial paper the morning my brother tried to refinance his mortgage. He walked out of the bank without a cent and with a look in his eyes I had never seen: the dull astonishment of a man who finally understands the rules have…

  • System Trading Bot Design Breakdown

    System Trading Bot Design Breakdown

    In this post I’m going to breakdown the different parts of a system trading bot that I built to execute trend following and mean reversion strategies. There’s a short video here if you prefer a quick walkthrough: https://youtube.com/shorts/3tWl4ETbqTw Building a robust and profitable system trading bot requires careful planning, solid architecture, and a deep understanding…

  • 5 Tips For Migrating Solidity Code To Rust Soroban

    5 Tips For Migrating Solidity Code To Rust Soroban

    Here are five tips for developers migrating from Solidity to Soroban. 1. Embrace .env In Solidity, global variables like msg.sender, msg.value, and msg.data provide transaction context. Soroban replaces these with the Env object, a powerful interface to the contract’s execution environment. Env gives you access to contract data, ledger details, authentication, and more, making it…

  • The Stellar 2025 Roadmap

    The Stellar 2025 Roadmap

    The Stellar Development Foundation has released it’s roadmap for 2025 and if you’re a developer or a user in the Stellar ecosystem, here is what you should know. The focus has shifted to scaling what works and making the whole system more usable, accessible, and ready for decentralized finance and web3 adoption. “After a decade…

  • Stellar Soroban Alerts With OpenZeppelin Monitor

    Stellar Soroban Alerts With OpenZeppelin Monitor

    In this tutorial we will be setting up the OpenZeppelin monitor and creating a custom monitor to get alerts on large USDC transfers and send them to a Telegram chat. James On YouTube Watch On YouTube: https://youtu.be/9ebmeGu1LmE | Subscribe To follow along you’ll need Rust installed. Let’s start by forking and building the repository: The…

  • Pine Script v6 For Tradingview: How I Created An Indicator To Find Bitcoin/Microstrategy Divergences

    Pine Script v6 For Tradingview: How I Created An Indicator To Find Bitcoin/Microstrategy Divergences

    Pine Script v6 has just been released and whether you have never created a TradingView indicator before or you are a Pinemaster, there’s something in here for everyone. James On YouTube Watch On YouTube: https://youtu.be/6XOTQ4OP-dE | Subscribe Let’s start by exploring the upgrade and new features, then we’ll jump into writing some code using the…

  • 3 Conversation Starter Prompts To Turn ChatGPT In To A Life Coach

    3 Conversation Starter Prompts To Turn ChatGPT In To A Life Coach

    Over the last few months I’ve had more deep and meaningful conversations with large language models than I have with friends and family IRL. While that might not be a great thing I’ve found it very valuable and want to share some of the prompts I’ve used to get these conversations started. 1. Design The…

  • Creating OpenZeppelin Soroban NFT’s

    Creating OpenZeppelin Soroban NFT’s

    In this tutorial we will be creating a NFT contract on Stellar Soroban using the libraries from OpenZeppelin James On YouTube Watch On YouTube: https://youtu.be/xA1HfckPqFs | Subscribe To follow along you’ll need a couple of pieces of software:- The full source code for this project is available on Github:https://github.com/jamesbachini/OZ-Stellar-NFT The code is based on the…

  • Creating Landing Pages Using Web3 Backends

    Creating Landing Pages Using Web3 Backends

    In this tutorial we will be demonstrating how web3 technology can be used to store data on-chain rather than in a database when building a landing page. James On YouTube Watch On YouTube: https://youtu.be/3iPqLtjL_9k | Subscribe We will be using a simple Soroban smart contract to store a counter which increases each time a transaction…

  • Building A Stellar Web Wallet With  Blend

    Building A Stellar Web Wallet With Blend

    In this tutorial I’m going to show you how I built a web based wallet that can create Stellar addresses and deposit any funds to Blend Capital. James On YouTube Watch On YouTube: https://youtu.be/GbAy9f93eyE | Subscribe Blend is an overcollateralized lending protocol that enables lenders to earn yield on their deposits. The source code for…

  • Stellar Anchor Platform Tutorial

    Stellar Anchor Platform Tutorial

    Anchors serve as bridges between traditional finance and blockchain technology. James On YouTube Watch On YouTube: https://youtu.be/57iZMxAr_1Y | Subscribe They enable users to move money seamlessly between their bank accounts and the Stellar network. Without Anchors, integrating traditional financial systems with blockchain would be significantly more complex. Anchors make decentralized finance more accessible by providing…

  • 3 Reasons Why Bitcoin Outperforming Everything Else In Crypto?

    3 Reasons Why Bitcoin Outperforming Everything Else In Crypto?

    Over the last year, since the release of the ETF’s Bitcoin has outperformed the rest of the crypto market on a risk adjusted basis. This has led to more maximalism and less attention to DeFi and Web3. There are negative opinions on why alts are failing to compete, whether it’s the Ethereum Foundation’s management or…

  • Building a SEP41 Token on Stellar Soroban with OpenZeppelin

    Building a SEP41 Token on Stellar Soroban with OpenZeppelin

    OpenZeppelin has just launched the first few contract libraries for the Soroban ecosystem. Let’s take a look and build out a token using their fungible token module. James On YouTube Watch On YouTube: https://youtu.be/2Ak_nHyfrEU | Subscribe Deploying a Fungible Token on Soroban Prerequisites Ensure you have the following installed: You’ll also need some testnet tokens…

  • Vibe Coding

    Vibe Coding

    What Is Vibe Coding? An Introduction To Next Gen AI Development Is vibe coding an overhyped trend or a real threat to your job security? Vibe coding is an AI first approach to software development. Instead of meticulously structuring code, debugging line by line, and sweating over syntax, developers now interact with AI models like…

  • Ark’s Big Ideas For 2025 Summary

    Ark’s Big Ideas For 2025 Summary

    Always a Cathie Wood fan so here’s a condensed version of the research report at:https://www.ark-invest.com/big-ideas-2025 Multiomics, Genomics, and AI-Driven Drug Discovery Robotics and Automation Aerospace and Reusable Rockets Energy and Infrastructure Overarching Themes and Takeaways

  • DeepSeek vs ChatGPT | Is The Future Of AI Open-Source & Chinese?

    DeepSeek vs ChatGPT | Is The Future Of AI Open-Source & Chinese?

    Let’s start with how these AIs are trained. ChatGPT goes through pre-training, learning from an enormous amount of text scraped from the internet, the model then completes supervised fine-tuning for better instruction following, and then reinforcement learning with human feedback. Basically, it’s learning what we like and don’t like, improving its responses for all kinds…

  • 10 Worst Web Hacks

    10 Worst Web Hacks

    The 18th annual “Top 10 Web Hacking Techniques of 2024” highlighted web security research through community nominations and expert panel voting. From 121 initial nominations, 103 qualified entries were evaluated, culminating in the selection of the most innovative web security findings. Confusion Attacks in Apache HTTP Server Researchers found ways to make the Apache web…

  • Deploying An NFT Using Stellar Soroban

    Deploying An NFT Using Stellar Soroban

    Today I’m going to show you how I deployed a simple NFT contract to Soroban, Stellar’s smart contract platform. Whether you’re an artist, a developer, or just curious about blockchain, this tutorial will guide you through the process step-by-step. Let’s get started. You’ll need a few things to get started:- James On YouTube Watch On…

  • Soroban Token Deployment + React dApp Tutorial (Stellar SDK)

    Soroban Token Deployment + React dApp Tutorial (Stellar SDK)

    In this tutorial, we’ll walk through the process of deploying a fungible token on the Stellar network using Soroban smart contracts, and then build a decentralized application to interact with it. We’ll cover everything from setting up your development environment to creating a user interface for token transfers. James On YouTube Watch On YouTube: https://youtu.be/oF624m5b384…

  • Using ChatGPT To Monitor The Silk Road Bitcoin

    Using ChatGPT To Monitor The Silk Road Bitcoin

    In this video I demonstrate how to monitor a Bitcoin address using NodeJS James On YouTube Watch On YouTube: https://youtu.be/rZ5TnPkO86Y | Subscribe Here is a quick script (full code below) that was knocked up using chatGPT to play an mp3 alert file if any Bitcoin moves from the SilkRoad address. I set this up because…

  • Crypto Market Thesis 2025

    Crypto Market Thesis 2025

    It’s that time of the year again, I have published my thoughts and musings on the blockchain sector in the annual crypto market thesis for 2025. Full document has been published here: https://jamesbachini.com/resources/CryptoMarketThesis2025.pdf Previous years: 2023, 2024 Summary below: 2024 Year in Review Macro Trends Market Outlook for 2025 Sector Insights Emerging Trends to Monitor…

  • Soroban Data Locations & State Management

    Soroban Data Locations & State Management

    In this tutorial, we’ll explore how data is stored on Stellar’s Soroban smart contract platform, focusing on Soroban’s state management and the types of storage available. Understanding these concepts will allow you to manage data optimally and keep your decentralized applications efficient. James On YouTube Watch On YouTube: https://youtu.be/cw-TPSCqtSU | Subscribe Introduction to Soroban State…

  • Best Practices for Storing Large Data in Solidity

    Best Practices for Storing Large Data in Solidity

    Blockchain storage is limited and block space is therefore expensive, especially at times of peak congestion. Solidity developers must employ strategies to optimise data storage whilst maintaining the integrity and accessibility of their smart contracts. One of the most effective approaches is to leverage off-chain storage solutions. Instead of storing large data sets directly on…

  • Understanding The Fallback & Receive Functions In Solidity

    Understanding The Fallback & Receive Functions In Solidity

    Among Solidity’s essential features are the fallback and receive functions, which play crucial roles in handling Ether transactions and contract interactions. A thorough understanding of these functions is vital for developers aiming to create robust and secure smart contracts. The Fallback Function In Solidity, the fallback function is a unique, unnamed function that executes under…

  • The Hidden Deflation of Digital Assets

    The Hidden Deflation of Digital Assets

    The Inevitable Loss Facing Early Cryptocurrency Hodlers Substantial amounts of digital assets are going to be lost forever over the next few decades. The first generation of crypto hodlers will be dying off and many of their holdings will die with them. These losses, often caused by misplaced private keys or forgotten passwords, add an…

  • Programmatic Stellar Transfers

    Programmatic Stellar Transfers

    In this tutorial we will be setting up scripts to send and monitor transfers on the Stellar network. James On YouTube Watch On YouTube: https://youtu.be/gVC5ijif2-0 | Subscribe I’ll be using Node.js and the Stellar-SDK library. All the code is open source and you can fork the repository here: https://github.com/jamesbachini/Stellar-Cross-Border-Test There are two scripts, send.js and receive.js, created to…

  • Optimizing Smart Contracts For Layer 2 Chains

    Optimizing Smart Contracts For Layer 2 Chains

    Layer 2 solutions have emerged as a crucial component in addressing scalability issues. Optimising smart contracts for these Layer 2 chains is essential to harness their full potential. This article explores key considerations for developers working with Layer 2 solutions, focusing on cross-chain interoperability, gas fees, and frontend considerations. Cross-Chain Interoperability When optimising smart contracts…

  • How Often Should I Rebalance My Portfolio

    How Often Should I Rebalance My Portfolio

    In this tutorial I modelled the optimal rebalancing frequency for a digital asset portfolio holding: This is a 60/40 crypto portfolio which I’ve discussed before. You can run the code with different assets (anything with a historical price feed). Starting with a $10,000 initial investment, the code allocates the funds accordingly and tracks performance over…

  • Creating Custom Solidity Libraries For Reusable Code

    Creating Custom Solidity Libraries For Reusable Code

    Solidity libraries enable blockchain developers to create modular reusable code. This shared usage avoids duplicating code, saves gas during deployment and promotes consistency within a code base. Let’s create a basic library that demonstrates how this works: This code defines a simple smart contract that utilises a library for basic arithmetic operations. The MyMath library…

  • Building Smart Contract Event Filtering Systems for DApps

    Building Smart Contract Event Filtering Systems for DApps

    How events work in web3 Events in Web3 act as logs of significant occurrences within a smart contract. When a specific function is executed, the smart contract can “emit” an event, signalling to external systems that something has happened. These emitted events are stored on the blockchain, but they do not modify the contract’s state.…

  • Automating Web3 Interactions In Rust | Minting Ethereum NFT’s With Ethers-rs

    Automating Web3 Interactions In Rust | Minting Ethereum NFT’s With Ethers-rs

    In this tutorial we are going to be deploying a simple NFT contract to Ethereum and then minting new NFT’s using a bot built with Rust and ethers-rs Let’s start by heading to Remix and deploying this contract to Ethereum’s Sepolia testnet. It has already been deployed here if you want to skip this step:…

  • Building A Cross Chain Token Bridge With LayerZero v2

    Building A Cross Chain Token Bridge With LayerZero v2

    This tutorial will guide you through the process of building a token bridge using LayerZero v2, specifically employing the OFTAdapter on mainnet and the OFT.sol contract on all other chains. We’ll cover the setup and deployment workflow, ensuring you have a comprehensive understanding of the process. Before we delve into the deployment process, it’s crucial…

  • Practical Applications Of Merkle Trees

    Practical Applications Of Merkle Trees

    Merkle trees are a useful tool for blockchain developers offering a myriad of benefits, chief among them being the efficient verification of large data sets and proof of inclusion. By leveraging Merkle trees developers can significantly optimise gas costs and enhance the overall performance of their decentralised applications. In this article we will look at…

  • How To Connect An Arduino To A Soroban Smart Contract

    How To Connect An Arduino To A Soroban Smart Contract

    This tutorial will guide you through the process of connecting an Arduino to a Soroban smart contract on the Stellar blockchain. We’ll create a system where blockchain events can trigger physical actions through an Arduino. James On YouTube Watch On YouTube: https://youtu.be/C4a9O7AFAVc | Subscribe All the code for this project is open source at: https://github.com/jamesbachini/Arduino-Soroban-Controller…

  • Implementing RBAC Patterns in Solidity

    Implementing RBAC Patterns in Solidity

    We can implement role based access control or RBAC patterns in Solidity using OpenZeppelin’s AccessControl.sol library. This allows developers to manage different roles and assign permissions dynamically. Here’s a step by step guide based on the information provided. Understanding Roles in Access Control The essence of RBAC in Solidity involves defining roles, where each role…

  • The Future Of Prompt Engineering | Best Practices For LLM Models

    The Future Of Prompt Engineering | Best Practices For LLM Models

    This article will explore how prompt engineering for LLM models like ChatGPT is evolving and how you can stay ahead of the game. Prompt Design Principles As large language models (LLMs) continue to evolve, the art of prompt engineering has become increasingly crucial. At its core, effective prompt design hinges on clarity, specificity, and context…

  • Tokenomics 101 Designing Effective Token Models

    Tokenomics 101 Designing Effective Token Models

    Tokenomics Fundamentals Tokenomics refers to the economic model and framework that governs the use, distribution, and value of tokens. At its core, tokenomics is the study of the supply and demand of tokens, how they incentivise users and developers, and the role they play in driving network effects. Unlike traditional currencies, tokens are highly versatile…

  • Why Inflows Into Spot Bitcoin ETFs Don’t Push Prices Up

    Why Inflows Into Spot Bitcoin ETFs Don’t Push Prices Up

    The Bitcoin Spot ETFs are a gateway for institutional inflows into Bitcoin, potentially driving up prices. However, on the 29th and 30th October over $1.763 Billion USD flowed into the Bitcoin ETFs*. During this period the BTC/USD price barely moved. Here’s a closer look at why spot Bitcoin ETF inflows don’t always translate into an…

  • Marketing Psychology in Web3

    Marketing Psychology in Web3

    This article delves into the key aspects of marketing psychology that are unique or particularly relevant to the Web3 ecosystem, exploring how trust, community engagement, scarcity, fear of missing out, attention economy, and behavioural economics intersect with this innovative space. Trust and Credibility The blockchain sector has been plagued by numerous fraud & scams, making…

  • Meridian 2024 Takeaways

    Meridian 2024 Takeaways

    Key Innovations and Infrastructure Developments from Meridian 2024 The recent Stellar Meridian conference and its preceding hackathon showcased significant developments in the Stellar Network’s ecosystem, highlighting how the platform is revolutionizing blockchain infrastructure and smart contract capabilities. From innovative on/off-ramp solutions to ground breaking smart wallets, Stellar is positioning itself as a formidable player in…

  • Creating MultiSig Wallets with Solidity

    Creating MultiSig Wallets with Solidity

    MultiSig wallets have become increasingly popular due to their enhanced security features. In this article, we will delve into the key components of a MultiSig wallet, how to write a MultiSig wallet contract using Solidity, deploying the wallet, and handling deposits and withdrawals. Note that the code provided here is for educational purposes only. If…

  • Simple Example Of Rust Struct & Importing Modules

    Simple Example Of Rust Struct & Importing Modules

    One powerful feature in Rust is how it organizes code into modules and allows the reuse of code with structs and methods. In this tutorial, we’ll walk through a simple example to illustrate how to define and use a struct in Rust and how to import modules for organization. Step 1: Define the Module and…

  • Prediction Markets Solidity

    Prediction Markets Solidity

    Prediction markets are decentralized platforms where participants can bet on the outcome of future events. For example, people could bet on the outcome of a presidential election or a sports game. In this tutorial, we will walk through a smart contract built on Ethereum, which allows users to create and participate in prediction markets. The…

  • Incorporating Bitcoin In A Treasury Strategy

    Incorporating Bitcoin In A Treasury Strategy

    Cash Savings in Treasuries Treasury managers face a significant challenge in preserving the value of their reserves. Traditional cash savings, once considered a safe haven, have become increasingly unsuitable for long-term corporate savings. This shift is primarily due to the ongoing dilution caused by money supply growth, as central banks worldwide engage in quantitative easing…

  • A Simple Browser Resource Monitor

    A Simple Browser Resource Monitor

    This single index.html file can be uploaded to any web server, run locally, or accessed here: https://jamesbachini.com/misc/browser-resources.html It enables web developers to monitor browser resources over time and test different devices processing abilities. The dashboard first collects and presents fundamental system information, providing context about the environment in which the application operates. This data includes:…

  • Stellar Soroban Boilerplate

    Stellar Soroban Boilerplate

    In this tutorial I’m going to go through the code for a boilerplate which connects a Soroban smart contract to a React dApp. Note that for a more full featured demo app you can check out the excellent Scaffold Soroban at: https://developers.stellar.org/docs/learn/interactive/dapps/scaffold-soroban There is also this from the guys at Palta Labs:https://create-soroban-dapp.paltalabs.io/ James On YouTube…

  • AI Predictions | How Close Are We To AGI?

    AI Predictions | How Close Are We To AGI?

    In recent years, the field of artificial intelligence has witnessed remarkable advancements, particularly in the domain of large language models. These sophisticated systems like ChatGPT have demonstrated impressive capabilities in natural language processing, coding, and problem solving. However, the question remains “how close are we to achieving true artificial general intelligence?” James On YouTube Watch…

  • Decentralized Lending Pools | Blend Capital

    Decentralized Lending Pools | Blend Capital

    Overcollateralized lending has emerged as a cornerstone in the decentralised finance ecosystem, providing a secure and efficient way for users to borrow and lend digital assets. Blend Capital leverages this mechanism on Stellar’s Soroban smart contract platform, introducing a robust protocol for overcollateralized lending and borrowing. This article delves into how overcollateralized lending works, explores…

  • Encrypting Private Keys in .env

    Encrypting Private Keys in .env

    It has become very normalised to store Ethereum private keys in plain text within .env files. While this is convenient, it’s a disaster waiting to happen when working in production with wallets that contain real funds. Today, I’ll show you a better way to manage your hot wallet keys using AES encryption. Full code for…

  • Balancer v3 Hooks

    Balancer v3 Hooks

    For the Balancer v3 Hookathon (yep it’s a hackathon to create DeX hooks) I had the idea to try and create a fair launch memecoin platform. It’s the kind of thing that could bring utility to the ecosystem as we’ve seen recently with the wave of memecoin trading on Solana. The target is to create…

  • Creating WASM Files Using Rust and Running Them in the Browser

    Creating WASM Files Using Rust and Running Them in the Browser

    In this tutorial we will be writing some code in Rust, compiling to web assembly (WASM) and then running that code in a browser. This enables high performance applications to be run within a web dev setting. In this tutorial I’ll be using windows subsystem for Linux. Let’s first install Rust and wasm-pack (more instructions…

  • Understanding ABI Encoding: A Guide to abi.encodeCall and encodeWithSelector

    Understanding ABI Encoding: A Guide to abi.encodeCall and encodeWithSelector

    What Is ABI Encoding Application Binary Interface (ABI) encoding is a crucial concept in Ethereum smart contract development. It serves as a standardised method for encoding function calls and data, enabling seamless communication between different components of the Ethereum ecosystem. ABI encoding ensures that data is consistently formatted and interpreted across various platforms and programming…

  • How to Host Your Own Generative AI Model with Flux

    How to Host Your Own Generative AI Model with Flux

    Why Host Your Own Flux Model Hosting your own AI model offers significant benefits, particularly for users who demand fine control over image generation, privacy, and customisation. Unlike public cloud-based APIs, which may impose usage limitations or fees, self-hosting gives you full control over how the model operates. You can adjust hardware configurations, implement optimised…

  • Enums In Solidity

    Enums In Solidity

    Enums are one of the most useful and underused data types in Solidity. I think because they aren’t widely used in Javascript and web dev, they often get overlooked in contract development. In this article I’ll make my case for why enums deserve a place in your tool kit and smart contracts. Enums in Solidity…

  • WebAuthn PassKey Smart Wallets

    WebAuthn PassKey Smart Wallets

    In this article we will take a glimpse into the future of account abstraction where web3 can offer walletless, passwordless authentication to web applications. I’ll be connecting a Stellar Soroban smart contract to a web3 frontend and verifying signatures from biometrics on your phone. Welcome to the future. The full source code used in this…

  • React Hooks Tutorial | The 7 Most Important React Hooks

    React Hooks Tutorial | The 7 Most Important React Hooks

    React Hooks provide a way to manage state, side effects, references and more in functional components. In this tutorial, we’ll look at the seven most commonly used React hooks When You Would Use These React Hooks useStateImagine you have a piece of data in your component that might change, like a number for a counter…

  • Value Investing In DeFi

    Value Investing In DeFi

    For value investors the goal is to find assets priced below their intrinsic value, providing a margin of safety and potential for significant future growth. Could applying this principle to DeFi help identify underappreciated projects that are gaining significant traction. Let’s find out… Market Cap, TVL & FDV Market capitalization is the total value of…

  • 7 Problems That DeFi Solves

    7 Problems That DeFi Solves

    Last month Vitalik caused a stir when he suggested that DeFi “can’t be the thing that brings crypto to another 10-100x adoption burst” In this article I’m going to share my thoughts on why DeFi is still the no.1 most important use case for Ethereum. Lack of Financial Inclusion In a world where millions remain…

  • 3 Ways AI Will Change Software Development by 2030

    3 Ways AI Will Change Software Development by 2030

    As a developer who wrote his first computer program on a Commodore64, I’ve seen my fair share of technological shifts. But nothing quite compares to the seismic changes I anticipate large language models will bring to software development in the coming years. Let me take you on a journey through my vision of the future,…

  • Building Rust Smart Contracts On Stellar Soroban

    Building Rust Smart Contracts On Stellar Soroban

    Soroban is the smart contract platform that allows developers to write and deploy smart contracts on the Stellar network. This tutorial will guide you through the process of building a simple smart contract using Rust and deploying it to Soroban. I recently took on the role of Developer in Residence with Stellar and this is…

  • Pump.fun Clone In Solidity

    Pump.fun Clone In Solidity

    Pump.fun is a token factory that lets users create and trade memecoins on Solana with dynamic pricing along a bonding curve. In this article I’ll show how I went about converting this concept to Solidity and deploying it on Ethereum. Full code for this is open source at: https://github.com/jamesbachini/Pump.sol Token Factory Contract At the core…

  • Over-Collateralized Lending In DeFi

    Over-Collateralized Lending In DeFi

    Decentralized finance has opened up many possibilities for holders of digital assets. One of the products which has gained traction over the last few years has been over-collateralized lending which is now a $30+ billion dollar industry. In this article I’m going to look at how over-collateralized lending works, why would someone want to do…

  • Creating Your Own Oracle Solidity & NodeJS

    Creating Your Own Oracle Solidity & NodeJS

    In this tutorial I’m going to go through the steps to setting up your own oracle service to bring data on-chain. We are going to be deploying a simple smart contract, then setting up a NodeJS client to fetch the price of Bitcoin, then uploading this to the contract. Full code for this is open…

  • Format JSON Tool

    Format JSON Tool

    A simple tool to lint and format JSON because I was fed up of using the ones covered in ads. Format JSON The Javascript code that makes this work is quite simple: It can be used to format outputs prior to displaying the results of API queries or any other JSON found wild around the…

  • Best Sketch To Image AI Generator

    Best Sketch To Image AI Generator

    Recent developments in AI image generation have led to the availability of tools which can convert your doodles into generative images. Here is an example run across some freemium web apps: FreePik https://www.freepik.com/pikaso/sketch OpenArt https://openart.ai/create?mode=create NewArc https://www.newarc.ai/ ChatGPT https://chatgpt.com/ WindyBot https://windybot.com/editor Which Is The Best AI Sketch To Image Generator? As of September 2024 I…

  • The Future Of Bitcoin, Ethereum & Web3

    The Future Of Bitcoin, Ethereum & Web3

    In this article I’m going to discuss where I think the industry is going over the next decade and how emerging developments will affect the following: Bitcoin Bitcoin, the pioneer and household name of crypto, has not evolved significantly from its origins as a digital currency. It is becoming increasingly recognized as a mainstream financial…

  • What’s Happened Since Chip War

    What’s Happened Since Chip War

    After reading Chip War by Chris Miller I was intrigued to see what developments have taken place since the book was written and if Moore’s Law is still alive and well. TSMC & Taiwan Strait Taiwan Semiconductor Manufacturing Company has maintained its position as the world’s leading chip manufacturer. The company announced ambitious plans for…