Avalanche is a new Blockchain that became very popular in 2021. It claims to be a better Ethereum, with more…
Read StoryIf you want to interact with a smart contract on Ethereum, the API of Ethereum is complicated. To interact with…
Read StoryICO, DeFi, NFT, there is always a new bubble in crypto. But there is one bubble we haven’t seen yet. And when…
Read StoryOn Ethereum, miners have an unfair advantage called MEV . Since 2020, miners made more than 700M dollars, using techniques like…
Read StorySolana has been described as the next Ethereum killer. In 2021, the price of Solana skyrocketed. Even Celebrities are jumping…
Read StorySolidity is a language for creating Blockchain smart contracts. You can use it to create smart contracts, on more than 200…
Read StoryIt’s so exhausting to keep up with all these new DeFi projects. But very few DeFi projects are really original.…
Read StoryWhat will I learn? Connecting and using an Ethereum testnet What is a flash loan (ERC 3156) Flash loan interfaces Flash loan wrappers Using a flash loan borrower contract Requirements Any chrome-based browser that allows Chrome extensions Metamask browser extension Internet connection (for using testnets) Difficulty Intermediary Introduction The DeFi…
Read StoryManipulating strings in Solidity is notoriously difficult. This is surprising for most developers who are used to manipulating easily in other programming languages like Javascript or Python. https://youtu.be/gNlwpr3vGYM In this article I give a couple of useful code snippets to do some simple string manipulations in Solidity. Warning: Keep in…
Read StoryGenerating a random number in a smart contract is very useful, especially for games. Can we do this in Solidity? Yes! https://youtu.be/4zvvZf-byok Here is the code: pragma solidity ^0.6.0; contract MyContract { function _randModulus(uint mod) internal returns(uint) { return uint(keccak256(abi.encodePacked( now, block.difficulty, msg.sender) )) % mod; nonce++; return rand; }…
Read Story