<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by kingsley aigbojie on Medium]]></title>
        <description><![CDATA[Stories by kingsley aigbojie on Medium]]></description>
        <link>https://medium.com/@aigbojie2020?source=rss-534805b5b92e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*U9HpYTLqQ2AwckYB</url>
            <title>Stories by kingsley aigbojie on Medium</title>
            <link>https://medium.com/@aigbojie2020?source=rss-534805b5b92e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:32:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aigbojie2020/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mastering React Hooks: A Deep Dive into useState, useEffect, useCallback, useMemo, useRef, and…]]></title>
            <link>https://medium.com/@aigbojie2020/mastering-react-hooks-a-deep-dive-into-usestate-useeffect-usecallback-usememo-useref-and-a0a22a6a2778?source=rss-534805b5b92e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0a22a6a2778</guid>
            <category><![CDATA[react-hook]]></category>
            <dc:creator><![CDATA[kingsley aigbojie]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 09:20:49 GMT</pubDate>
            <atom:updated>2026-03-18T09:20:49.890Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering React Hooks: A Deep Dive into useState, useEffect, useCallback, useMemo, useRef, and useContext</h3><p>React Hooks transformed the way we write components by allowing functional components to manage state, side effects, and more — without needing class components. In this article, we’ll explore six essential hooks every React developer should master:</p><p>master:</p><p>•⁠ ⁠⁠ useState ( )<br>•⁠ ⁠⁠ useEffect ⁠( )<br>•⁠ ⁠⁠ useCallback ⁠( )<br>•⁠ ⁠⁠ useMemo ⁠( )<br>•⁠ ⁠⁠ useRef ⁠( )<br>•⁠ ⁠⁠ useContext ⁠( )</p><p>Each section includes clear explanations and practical examples.</p><p><strong>1. useState — Managing Component State</strong></p><p>⁠ useState ⁠ allows you to add state to functional components.</p><p><strong>Syntax</strong><br><em>const [state, setState] = useState(initialValue);<br></em> <strong>⁠ Example</strong><br><em>import { useState } from “react”;</em></p><p><em>function Counter() {<br> const [count, setCount] = useState(0);</em></p><p><em>return (<br> &lt;div&gt;<br> &lt;p&gt;Count: {count}&lt;/p&gt;<br> &lt;button onClick={() =&gt; setCount(count + 1)}&gt;Increment&lt;/button&gt;<br> &lt;/div&gt;<br> );<br>}</em></p><p><strong>Key Points</strong></p><p>•⁠ ⁠State updates trigger re-renders<br>•⁠ ⁠State is preserved between renders<br>•⁠ ⁠You can store any data type (number, array, object, etc.)</p><p><strong>2. useEffect — Handling Side Effects</strong></p><p>⁠ useEffect ⁠ lets you perform side effects such as data fetching, subscriptions, or DOM updates.</p><p><strong>Syntax</strong></p><p>useEffect(() =&gt; {<br> //<em> side effect logic</em></p><p><em>return () =&gt; {<br> // cleanup (optional)<br> };<br>}, [dependencies]);<br></em> ⁠</p><p>E<strong>xample: Fetching Data</strong><br><em>import { useState, useEffect } from “react”;</em></p><p><em>function Users() {<br> const [users, setUsers] = useState([]);</em></p><p><em>useEffect(() =&gt; {<br> fetch(“</em><a href="https://jsonplaceholder.typicode.com/users"><em>https://jsonplaceholder.typicode.com/users</em></a><em>&quot;)<br> .then(res =&gt; res.json())<br> .then(data =&gt; setUsers(data));<br> }, []);</em></p><p><em>return (<br> &lt;ul&gt;<br> {users.map(user =&gt; (<br> &lt;li key={user.id}&gt;{user.name}&lt;/li&gt;<br> ))}<br> &lt;/ul&gt;<br> );<br>}</em><br> ⁠</p><p><strong>Key Points</strong></p><p>•⁠ ⁠Runs after render<br>•⁠ ⁠Dependency array controls when it runs<br>•⁠ ⁠Cleanup function prevents memory leaks</p><p><strong>3. useCallback — Memoizing Functions</strong></p><p>⁠ useCallback ⁠ returns a memoized version of a function, preventing unnecessary re-creation on each render.</p><p><strong>Syntax</strong><br>const memoizedFn = useCallback(() =&gt; {<br> // logic<br>}, [dependencies]);<br> ⁠</p><p><strong>Example</strong><br><em>import { useState, useCallback } from “react”;</em></p><p><em>function Parent() {<br> const [count, setCount] = useState(0);</em></p><p><em>const handleClick = useCallback(() =&gt; {<br> console.log(“Clicked!”);<br> }, []);</em></p><p><em>return (<br> &lt;div&gt;<br> &lt;button onClick={() =&gt; setCount(count + 1)}&gt;Increment&lt;/button&gt;<br> &lt;Child onClick={handleClick} /&gt;<br> &lt;/div&gt;<br> );<br>}</em></p><p><em>function Child({ onClick }) {<br> console.log(“Child rendered”);<br> return &lt;button onClick={onClick}&gt;Click me&lt;/button&gt;;<br>}<br> ⁠</em></p><p><strong>Why It Matters</strong></p><p>Without ⁠ useCallback ⁠, ⁠ handleClick ⁠ is recreated on every render, potentially causing unnecessary re-renders in child components.</p><p><strong>4. useMemo — Memoizing Computed Values</strong></p><p>⁠ useMemo ⁠ caches the result of expensive computations.</p><p><strong>Syntax</strong><br>const memoizedValue = useMemo(() =&gt; computeValue(), [dependencies]);<br> ⁠ <strong>Example</strong><br><em>import { useState, useMemo } from “react”;</em></p><p><em>function ExpensiveComponent({ num }) {<br> const expensiveCalculation = (n) =&gt; {<br> console.log(“Calculating…”);<br> return n * 1000;<br> };</em></p><p><em>const result = useMemo(() =&gt; expensiveCalculation(num), [num]);</em></p><p><em>return &lt;p&gt;Result: {result}&lt;/p&gt;;<br>}<br> </em><strong>Key Points</strong></p><p>•⁠ ⁠Avoids recalculating on every render<br>•⁠ ⁠Useful for performance optimization<br>•⁠ ⁠Only recomputes when dependencies change</p><p><strong>5. useRef — Persisting Values Without Re-rendering</strong></p><p>⁠ useRef ⁠ creates a mutable reference that persists across renders.</p><p><strong>Syntax</strong><br>const ref = useRef(initialValue);<br> ⁠<strong>Example: Accessing DOM</strong><br><em>import { useRef } from “react”;</em></p><p><em>function InputFocus() {<br> const inputRef = useRef(null);</em></p><p><em>const focusInput = () =&gt; {<br> inputRef.current.focus();<br> };</em></p><p><em>return (<br> &lt;div&gt;<br> &lt;input ref={inputRef} /&gt;<br> &lt;button onClick={focusInput}&gt;Focus Input&lt;/button&gt;<br> &lt;/div&gt;<br> );<br>}</em><br> ⁠</p><p><strong>Example: Storing Previous Value</strong><br><em>import { useRef, useEffect } from “react”;</em></p><p><em>function PreviousValue({ value }) {<br> const prevRef = useRef();</em></p><p><em>useEffect(() =&gt; {<br> prevRef.current = value;<br> });</em></p><p><em>return &lt;p&gt;Previous: {prevRef.current}&lt;/p&gt;;<br>}</em><br> ⁠</p><p><strong>Key Points</strong></p><p>•⁠ ⁠Doesn’t trigger re-renders<br>•⁠ ⁠Useful for DOM manipulation and storing mutable values</p><p><strong>6. useContext — Sharing State Globally</strong></p><p>⁠ useContext ⁠ allows you to access context values without prop drilling.</p><p><strong>Setup</strong><br>import { createContext } from “react”;</p><p>export const ThemeContext = createContext();<br> ⁠</p><p><strong>Provider</strong><br><em>function App() {<br> return (<br> &lt;ThemeContext.Provider value=”dark”&gt;<br> &lt;Toolbar /&gt;<br> &lt;/ThemeContext.Provider&gt;<br> );<br>}</em><br> ⁠</p><p><strong>Consumer</strong></p><p><em>import { useContext } from “react”;<br>import { ThemeContext } from “./ThemeContext”;</em></p><p><em>function Toolbar() {<br> const theme = useContext(ThemeContext);</em></p><p><em>return &lt;div&gt;Current theme: {theme}&lt;/div&gt;;<br>}<br></em> ⁠</p><p><strong>Key Points</strong></p><p>•⁠ ⁠Eliminates prop drilling<br>•⁠ ⁠Works well for global state like themes, auth, language<br>•⁠ ⁠Should be used thoughtfully to avoid overuse</p><p>React Hooks simplify complex component logic and make code more reusable and readable. However, they should be used thoughtfully — especially ⁠ useCallback ⁠ and ⁠ useMemo ⁠, which are performance tools, not default solutions.</p><p>Understanding when not to use a hook is just as important as knowing when to use it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0a22a6a2778" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inheritance in Solidity]]></title>
            <link>https://medium.com/@aigbojie2020/inheritance-in-solidity-de7ec9ade099?source=rss-534805b5b92e------2</link>
            <guid isPermaLink="false">https://medium.com/p/de7ec9ade099</guid>
            <category><![CDATA[inheritance-in-solidity]]></category>
            <dc:creator><![CDATA[kingsley aigbojie]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 18:13:14 GMT</pubDate>
            <atom:updated>2026-02-14T18:13:14.153Z</atom:updated>
            <content:encoded><![CDATA[<p>Before I talk about Inheritance in solidity, the question will be what is even the meaning of inheritance?</p><p>Inheritance from the English dictionary simply means attributes acquired via biological heredity from parents. So, in solidity which is an object-oriented programming language. It is a way of extending functionalities of a program,It is used to separate code,and also help in the reusability of existing code.</p><p><strong>Why do we need Inheritance in solidity ?</strong></p><p>You might have a particular function written in Contract A and it’s needed in Contract B or C.Instead of re-writing the function again,the function can simplify be inherited from A to B and be called in B using inheritance.</p><p>The keyword is is used when inheriting a contract.The contract that owns the you want to inherit is called the Parent or Base Contract,while the Contract that is inheriting the function Is called the Child or Derived Contract.</p><p>Example <br>Contract B wants to make use of the greet ( )<br>Function in contract A , Contract B will have to inherit the greet( ) function from contract A.</p><p><strong><em>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.0;</em></strong></p><p><strong><em>contract Parent {<br> string public message = “Hello from Parent”;</em></strong></p><p><strong><em>function greet() public pure virtual returns (string memory) {<br> return “Parent Greeting”;<br> }<br>}</em></strong></p><p><strong><em>contract Child is Parent {</em></strong></p><p><strong><em>function greet() public pure override returns (string memory) {<br> return “Child Greeting”;<br> }<br>}</em></strong></p><p>There are some keywords used in inheritance, for a contract to inherit the functionalities of another contract we must use the keyword is. Then for a function to have the ability to be inherited by another contract we must add the virtual keyword in the declaration.For the function to be used or modified in the derived contract we must add the override keyword.</p><p><strong><em>There are three types of inheritance</em></strong></p><p>1.Single Inheritance <br>2.Multi-level Inheritance <br>3. Heirarchical Inheritance</p><p><strong><em>Single Inheritance </em></strong><br>In single Inheritance, there is a Parent contract also known as the Base Contract and there is a Derived Contract which is the contract that is inheriting the functionalities of the Base contract.</p><p>for example</p><p><strong><em>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.0;</em></strong></p><p><strong><em>contract Parent {<br> string public message = “Hello from Parent”;</em></strong></p><p><strong><em>function greet() public pure virtual returns (string memory) {<br> return “Parent Greeting”;<br> }<br>}</em></strong></p><p><strong><em>contract Child is Parent {</em></strong></p><p><strong><em>function greet() public pure override returns (string memory) {<br> return “Child Greeting”;<br> }<br>}</em></strong></p><p><strong><em>Multi-level Inheritance</em></strong></p><p>Is when a contract say Contract C is inheriting the some functionalities of Contract A and Contract B.</p><p><strong>For example</strong></p><p><strong><em>contract A {<br> function sayHello() public pure virtual returns (string memory) {<br> return “Hello from A”;<br> }<br>}</em></strong></p><p><strong><em>contract B {<br> function sayHello() public pure virtual returns (string memory) {<br> return “Hello from B”;<br> }<br>}</em></strong></p><p><strong><em>contract C is A, B {</em></strong></p><p><strong><em>function sayHello() public pure override(A, B) returns (string memory) {<br> return “Hello from C”;<br> }<br>}</em></strong></p><p><strong>Hierarchical Inheritance </strong><br>The Hierarchical Inheritance Simply means one parent but multiple child contracts.<br><strong>For Example</strong></p><p><strong><em>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.0;</em></strong></p><p><strong><em>// Parent contract<br>contract Person {<br> string public name;<br> uint public age;</em></strong></p><p><strong><em>constructor(string memory _name, uint _age) {<br> name = _name;<br> age = _age;<br> }</em></strong></p><p><strong><em>function getDetails() public view virtual returns (string memory, uint) {<br> return (name, age);<br> }<br>}</em></strong></p><p><strong><em>// Child contract 1<br>contract Student is Person {</em></strong></p><p><strong><em>uint public studentId;</em></strong></p><p><strong><em>constructor(<br> string memory _name,<br> uint _age,<br> uint _studentId<br> ) Person(_name, _age) {<br> studentId = _studentId;<br> }</em></strong></p><p><strong><em>function getStudentId() public view returns (uint) {<br> return studentId;<br> }<br>}</em></strong></p><p><strong><em>// Child contract 2<br>contract Teacher is Person {</em></strong></p><p><strong><em>string public subject;</em></strong></p><p><strong><em>constructor(<br> string memory _name,<br> uint _age,<br> string memory _subject<br> ) Person(_name, _age) {<br> subject = _subject;<br> }</em></strong></p><p><strong><em>function getSubject() public view returns (string memory) {<br> return subject;<br> }<br>}</em></strong></p><p><em>So in conclusion, Inheritance is a very important concept in solidity and every developer must make use of it to avoid re-writing already written functions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de7ec9ade099" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE ETHEREUM IMPROVEMENT PROPOSAL 1155 (ERC 1155)]]></title>
            <link>https://medium.com/@aigbojie2020/the-ethereum-improvement-proposal-1155-erc-1155-85f4b23ff6bd?source=rss-534805b5b92e------2</link>
            <guid isPermaLink="false">https://medium.com/p/85f4b23ff6bd</guid>
            <category><![CDATA[eip-1155]]></category>
            <dc:creator><![CDATA[kingsley aigbojie]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 09:41:22 GMT</pubDate>
            <atom:updated>2026-02-06T09:41:22.488Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>ETHEREUM IMPROVEMENT PROPOSAL 1155 (EIP 1155)</strong></p><p>The Ethereum Improvement proposal was proposed by Enjin (led by witek Randomski) in 2018 and became an official Ethereum Standard in June 2019.</p><p>The reason why Enjin proposed EIP 1155 was Simply because he ran into a problem when he was building Blockchain games with the existing Standards ERC 20 and ERC 721.</p><p><strong>The Problems are listed below for ERC 721</strong></p><p>1.No batching — you cannot send many NFTs in one transaction.<br>2.Too many transactions,more gas fees and slower game play.<br>3.Too many contracts are needed.</p><p><em>The problem he had with ERC 20 is that ERC 20 is good for money like tokens but cannot represent unique items,track NFTs ,so it failed for Games.</em></p><p><em>So Enjin wanted ONE contract that can be able to manage everything. He wanted a Standard that can have one contract ,many token types,fast transfers ,low gas cost and Game friendly Design.</em></p><p>So he introduced :<br>1.Token IDs instead of separate contracts.<br>2.Amount per token ID.<br>3.Batch Transfers.</p><p><strong>Before ERC 1155 for ERC 721</strong></p><p>Let’s say you are building a game that has we swords, shield ,Gold rewards and crown you will have to write 4 different contracts. But with the help of the ERC 1155 standard token ID was introduced and used instead,so you will just have a single contract than map an ID to each of them.</p><p><strong><em>For example</em></strong></p><p><strong><em>Sword contract <br>Shield Contract <br>Gold Contract<br>Crown Contract</em></strong></p><p>Four different contracts.</p><p>But with ERC 1155</p><p><strong><em>Gameitems Contract</em></strong></p><p><strong><em>ID 1 — sword <br>ID 2 — Shield<br>ID 3 — Gold<br>ID 4 — Crown</em></strong></p><p>We will the achieve one contract that is clean ,fast and not expensive.</p><p>The reason the standard was approved in 2019 by Ethereum was because they saw that it can achieve the following:</p><p>1.Reduce gas usage massively.<br>2.It made Blockchain games realistic.<br>3.Improved NFT marketplaces.<br>4.Inspired multi-assets design.</p><p>So EIP-1555 is a smart contract standard on Ethereum that let one contract manage many types of tokens at once, it is a combined system of <a href="https://www.investopedia.com/news/what-erc20-and-what-does-it-mean-ethereum/">ERC 20 </a>and <a href="https://docs.openzeppelin.com/contracts/4.x/erc721">ERC 721</a>.</p><p><strong>Let’s take a look at the interface of ERC 1155</strong></p><p>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.0;</p><p>interface IERC1155 {<br> // Events<br> event TransferSingle(<br> address indexed operator,<br> address indexed from,<br> address indexed to,<br> uint256 id,<br> uint256 value<br> );</p><p>event TransferBatch(<br> address indexed operator,<br> address indexed from,<br> address indexed to,<br> uint256[] ids,<br> uint256[] values<br> );</p><p>event ApprovalForAll(<br> address indexed account,<br> address indexed operator,<br> bool approved<br> );</p><p>event URI(string value, uint256 indexed id);</p><p>// Returns the balance of a single token for an account<br> function balanceOf(address account, uint256 id) external view returns (uint256);</p><p>// Returns the balance of multiple tokens for multiple accounts<br> function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)<br> external<br> view<br> returns (uint256[] memory);</p><p>// Approve or remove an operator for the caller<br> function setApprovalForAll(address operator, bool approved) external;</p><p>// Check if an operator is approved to manage all of the account’s tokens<br> function isApprovedForAll(address account, address operator) external view returns (bool);</p><p>// Transfer a specific token type from one address to another<br> function safeTransferFrom(<br> address from,<br> address to,<br> uint256 id,<br> uint256 amount,<br> bytes calldata data<br> ) external;</p><p>// Transfer multiple token types from one address to another<br> function safeBatchTransferFrom(<br> address from,<br> address to,<br> uint256[] calldata ids,<br> uint256[] calldata amounts,<br> bytes calldata data<br> ) external;<br>}</p><p>I would love to explain the following functions in the interface :</p><p><strong>SafeTransferFrom ( )</strong><br>It is used to send one token type, to send some amount of token ID from one address to another.</p><p>Example: send 6 golds from Alice to Bob.</p><p><strong>safeBatchTransferFrom ( )<br></strong>It is used to send many token types,send multiple token types in one transaction.</p><p>Example: sending 6 Swords, 7golds and 2 shield at once.</p><p><strong>balanceOf ( )</strong><br>This function is used to check how many token this person have.</p><p><strong>balanceOfBatch ( )<br></strong>This function gives the balance of how many tokens owned,and it returns an array of balances.</p><p><strong>setApprovalForAll ( )</strong><br>This function allows the contract to manage all the tokens.</p><p><strong>IsApprovedForAll ( )</strong><br>This function checks for permission and doesn’t give permission,it returns a Boolean value.</p><p><strong>In Conclusion,The EIP 1155 is an Ethereum token standard that allows one smart contract to manage multiple token types at the same time , including fungible tokens,non-fungible tokens (NFTs) and Semi-fungible tokens.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85f4b23ff6bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE ETHEREUM VIRTUAL MACHINE]]></title>
            <link>https://medium.com/@aigbojie2020/the-ethereum-virtual-machine-22db61e59bf9?source=rss-534805b5b92e------2</link>
            <guid isPermaLink="false">https://medium.com/p/22db61e59bf9</guid>
            <dc:creator><![CDATA[kingsley aigbojie]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 10:48:24 GMT</pubDate>
            <atom:updated>2026-02-05T10:48:24.786Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>THE EVM -Ethereum Virtual Machine</em></strong></p><p>The Ethereum Virtual machine is a <a href="https://www.investopedia.com/terms/e/ethereum.asp">decentralised</a> computation engine that executes <a href="https://www.investopedia.com/terms/s/smart-contracts.asp"><strong>smart contract</strong></a><strong> </strong>on the Ethereum Network.</p><p>To begin with what do I actually mean when I used the word <a href="https://www.investopedia.com/terms/e/ethereum.asp">decentralised </a>,also what are smart contracts?</p><p>When you say the Evm is <strong>decentralised</strong> it means that there is no point of failure, multiple nodes on the Ethereum Network Execute and validate the same code and lastly Consensus is achieved through distributed network,ensuring the integrity of the EVM state and execution.</p><p>The Ethereum Virtual Machine (EVM) is <a href="https://www.geeksforgeeks.org/ethical-hacking/what-is-meant-by-turing-complete-in-ethereum/"><strong><em>Turing-complete</em></strong></a> which Means it can execute any computation given enough resources (gas),Supports loops, conditional statements, complex data structures,Enables smart contracts to perform arbitrary computations,Gas limits prevent infinite loops or excessive resource use.</p><p><strong>Then what are smart contracts?</strong></p><p>A <a href="https://www.investopedia.com/terms/s/smart-contracts.asp"><strong>smart contract</strong></a><strong> </strong>is a self-excuting program that automates the actions in a Blockchain transactions. And it is written in solidity which is the programming language.</p><p><strong><em>The next question that will come to your mind is what are transactions?</em></strong></p><p>Transactions are messages sent from one account to another on a blockchain, typically involving the transfer of assets (like ETH), execution of smart contract code, or other state changes on the network.</p><p>Now let’s talk about an important concept called blocks.</p><p><a href="https://www.geeksforgeeks.org/computer-networks/ethereum-block-structure/"><strong>Blocks</strong> </a>are batches of transactions grouped together, validated, and added to the blockchain. They contain a set of transactions, a reference to the previous block, and other metadata, helping to maintain the integrity and sequence of the blockchain. A block chain is a chain of blocks, before a block can be added in Ethereum,it must be validated by the validators. Ethereum uses <a href="https://www.investopedia.com/terms/p/proof-stake-pos.asp"><strong><em>Proof of Stake (PoS</em></strong>)</a> as it’s consensus mechanism unlike bitcoin that uses <strong><em>Proof of Work (PoW). </em></strong>To be a validator in Ethereum you must have at least<strong><em> 32 ETH</em></strong> for staking.</p><p>Let’s talk about Accounts,in Ethereum there are two types of accounts. We have the Externally owned account (EOAs) and the Contract Account.</p><p>The <a href="https://www.stackup.fi/resources/what-is-an-eoa"><strong><em>Externally Owned Account</em></strong> </a>can send transactions ,can transfer ETH and it is controlled by the private key. But for the Contract Account it is controlled by code which is the smart contract and doesn’t require a private Example of EOAs are <a href="https://metamask.io/"><strong><em>metamask,</em></strong></a> MyEtherWallet and some hardware wallets like Trezor. Examples of Contract Account are <a href="https://app.uniswap.org/">Uniswap</a> liquidity pool and Aeve lending contracts.</p><p>Now to perform any transactions in Ethereum Blockchain is not cost free, meaning you have to pay for any transactions because it cost <a href="https://www.investopedia.com/terms/g/gas-ethereum.asp"><strong><em>gas</em></strong></a> for this to happen. Then you will want to know what gas is right?</p><p><em>Gas is a unit measuring computational effort to execute transactions or run smart contracts on </em><strong><em>Ethereum</em></strong><em>. Think of it like “fuel” for operations. You pay for gas in ETH, and it prevents spam or infinite loops.A standard ETH transfer typically costs 21,000 gas.</em></p><p><em>So In conclusion, we now understood what the Evm , transactions, blocks,</em><a href="https://www.investopedia.com/terms/g/gas-ethereum.asp"><strong><em>gas</em></strong></a><em> and what Accounts means.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22db61e59bf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>