James Bachini

October 2024

  • 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…