Best of Smart ContractsJune 2024

  1. 1
    Article
    Avatar of coinsbenchCoins Bench·2y

    Learning to Call Smart Contract Functions with Web3.js

    This post explains how to use web3.js to interact with smart contracts on the Ethereum blockchain. It covers topics such as integrating web3.js into a project, fetching contract address and ABI, instantiating a contract, reading from a contract, and paying to a contract. It also mentions how to listen to events emitted by a smart contract.

  2. 2
    Article
    Avatar of coinsbenchCoins Bench·2y

    Building Blocks of Smart Contracts: Libraries in Solidity

    Solidity libraries are tools for organizing and reusing code, promoting modularity, reusability, and gas efficiency in Ethereum smart contracts. Libraries differ from standard contracts in that they don't store state variables and focus on 'pure' and 'view' functions. They can be deployed either internally or externally, the latter using delegate call for efficient updates and reduced gas costs. Examples include SafeMath for safe arithmetic operations and MerkleProof for data integrity checks.

  3. 3
    Article
    Avatar of coinsbenchCoins Bench·2y

    Differences in traditional and web3/blockchain front end development

    Differences in traditional and web3/blockchain front end development are explored, including the interaction with the back end and handling of authentication.