<?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 Jennifer ojiaku on Medium]]></title>
        <description><![CDATA[Stories by Jennifer ojiaku on Medium]]></description>
        <link>https://medium.com/@jenniferchinelo9?source=rss-7ae7282a26e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*n4PtiiMRNTjs58XvLY8EnA.jpeg</url>
            <title>Stories by Jennifer ojiaku on Medium</title>
            <link>https://medium.com/@jenniferchinelo9?source=rss-7ae7282a26e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:36:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jenniferchinelo9/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[CrediX Incident Report]]></title>
            <link>https://medium.com/@jenniferchinelo9/credix-incident-report-a21809a56ea6?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a21809a56ea6</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 15:31:31 GMT</pubDate>
            <atom:updated>2025-08-13T15:58:48.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uhj-MmIl2dbl41c-JYWSxg.png" /></figure><p>On August 4, 2025, the CrediX decentralized finance (DeFi) protocol on suffered a security breach resulting in a loss of approximately $4.5 million. The attack exploited a critical vulnerability related to administrative access control, which allowed a malicious actor to gain unauthorized privileges and manipulate the protocol’s functions. The incident has been widely reported as a potential exit scam following the disappearance of the project’s development team.</p><p><strong>Overview</strong><br>Approximately six days before the main exploit, an account controlled by the attacker was assigned an extensive set of administrative permissions through the <a href="https://sonicscan.org/address/0x8f0431f6adb3e81d282d0508c16e2817dc95095b#code">ALCManager</a> contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*ivgFvakyqK74Zi6mf3VWMQ.jpeg" /></figure><p>The attacker (<a href="https://sonicscan.org/address/0xf321683831be16eed74dfa58b02a37483cec662e"><strong>0xF321683831Be16eeD74dfA58b02a37483cEC662e</strong></a><strong>)</strong> exploited the credix pool (<a href="https://sonicscan.org/txs?a=0x56eb1bcB2aA011517fD7bf32641E79Bd8471770e"><strong>0xF321683831Be16eeD74dfA58b02a37483cEC662e</strong></a>) to mint unbacked <strong>ERC20</strong> and <strong>acscUSD</strong> tokens directly into the protocol’s lending pools.By invoking the Mint unbacked function without supplying any underlying USDC collateral, the attacker created tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8o0cRdrb-kJvEvPE1iXGQ.jpeg" /></figure><p>These freshly minted, unbacked <strong>acUSDC</strong> tokens were then used as collateral to borrow large amounts from the protocol’s legitimate asset pools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-UIsMpAMadWfPRN1s9ySsQ.jpeg" /></figure><p>Attacker: <a href="https://sonicscan.org/address/0xf321683831be16eed74dfa58b02a37483cec662e"><strong>0xF321683831Be16eeD74dfA58b02a37483cEC662e</strong></a><br>Credix Address 1: <a href="https://sonicscan.org/address/0x56eb1bcB2aA011517fD7bf32641E79Bd8471770e"><strong>0x56eb1bcB2aA011517fD7bf32641E79Bd8471770e</strong></a><br>Credix Address 2: <a href="https://sonicscan.org/txs?a=0x0850A9759165B25832E2cAa3dB3f2d04dc583D4E"><strong>0x0850A9759165B25832E2cAa3dB3f2d04dc583D4E</strong></a></p><p>The attacker exchanged several borrowed assets for USDC and subsequently bridged the proceeds to the Ethereum network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OZrBYozQNyaIehEDzWO4DQ.jpeg" /></figure><p><strong>Root Cause</strong><br>The attacker exploited the critical functionality in the protocol’s which are POOL_ADMIN_ROLE, BRIDGE_ROLE, EMERGENCY_ADMIN_ROLE, RISK_ADMIN_ROLE, and ASSET_LISTING_ADMIN_ROLE, privilege management system that allowed them to be assigned an excessive level of permissions that were critical to the attack. The smart contracts lacked validation checks to differentiate between legitimately backed tokens and artificially created ones, the collateral was treated as valid.</p><p><strong>Impact<br></strong>A direct loss of approximately $4.5 million in user funds. The sudden disappearance of the team has left users with no clear path to recovery, highlighting the risks associated with investing in projects with centralized control and a lack of clear governance.</p><p><strong>Resolution<br></strong> Following the exploit, the CrediX team publicly stated that all user funds would be returned within <strong>24–48 hours</strong>. However, within days, all official communication channels including the project’s website, social media accounts, and community groups were taken offline, leaving stakeholders without verifiable status updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*yRtiC-4cQ9Wdm7dzk_HqzQ.jpeg" /></figure><p><strong>Conclusion</strong><br> The CrediX incident underscores the critical importance of transparency, prompt communication, and robust risk management in DeFi. While the attack exploited vulnerabilities across multiple assets, its aftermath revealed deeper challenges in community trust and crisis response.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a21809a56ea6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nobitex Hack (June 2025)]]></title>
            <link>https://medium.com/@jenniferchinelo9/nobitex-hack-june-2025-f9989dc0b662?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9989dc0b662</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 00:13:38 GMT</pubDate>
            <atom:updated>2025-07-26T01:55:30.194Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Overview</strong></h3><p>In<strong> </strong>June 18, 2025, Nobitex, Iran’s largest cryptocurrency exchange, suffered a catastrophic security breach resulting in the loss of over $90 million worth of digital assets. .The stolen funds included assets on Bitcoin, Ethereum, Tron, Dogecoin, TON, Solana, Ripple, and Harmony chains.This breach occurred a day after a similar cyberattack on Bank Sepah, a state owned Iranian bank, pointing to a coordinated effort amid rising tensions between two nations. The incident not only exposed critical operational vulnerabilities but also highlighted how conflict is evolving into the digital and decentralized system<br>A hacking group calling itself Gonjeshke Darande publicly claimed responsibility for the Nobitex hack via its social media (X) channels</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wem_BydrOwgeqERTW5PxMg.jpeg" /></figure><h3><strong>What happened?</strong></h3><p>In June 17, 2025, a cyberattack was announced by a hacking group named <em>Gonjeshke Darande</em> (“Predatory Sparrow”), targeting Iran’s state owned Bank Sepah. The group claimed to have destroyed the bank’s data, alleging its involvement in funding Iran’s military operations.</p><p>June 18, 2025, Nobitex Iran’s largest cryptocurrency exchange suffered a major security breach. Unauthorized transactions were executed from the exchange’s hot wallets, resulting in the loss of approximately $90–100 million.<br>Nobitex officials publicly confirmed that the exchange had experienced a severe “security incident” involving unauthorized access to its systems. The breach specifically targeted a subset of hot wallets the online wallets used to manage day-to-day liquidity.In response, the team immediately severed all external access to servers while launching an internal investigation. Nobitex assured users that funds held in cold storage remained completely<strong> </strong>secure and emphasized that only hot wallet assets were affected. The exchange also took full responsibility for the breach and pledged to fully compensate all affected users</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*ewufDpy9E7Qsn-KBBMcPcQ.jpeg" /></figure><p>Gonjeshke Darande claimed responsibility for the Nobitex hack via social media platform X. The group accused Nobitex of facilitating sanctions evasion and financing terrorism on behalf of the Iranian regime. They revealed several wallet addresses tied to the stolen funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*kjjMwbhNPvWEyKTWHPWGWQ.jpeg" /></figure><p>Some of the wallets<br>Bitcoin — 1FuckiRGCTerroristsNoBiTEXXXaAovLX<br>Tron — TKFuckiRGCTerroristsNoBiTEXy2r7mNX<br>Dogecoin — DFuckiRGCTerroristsNoBiTEXXXWLW65t<br>Ethereum — 0xffffffffffffffffffffffffffffffffffffdead<br>Ton — UQABFuckIRGCTerroristsNOBITEX1111111111111111_jT<br>Solana — FuckiRGCTerroristsNoBiTEXXXXXXXXXXXXXXXXXXX<br>Harmony — one19fuckterr0rfuckterr0rfuckterr0rxn7kj7u<br>Ripple — rFuckiRGCTerroristsNoBiTEXypBrmUM</p><p>the wallet address 0xffffffffffffffffffffffffffffffffffffdead shows multiple token transfers on Etherscan, which aligns with the attackers’ claims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VuK1LYtW7UFx79Tul7u3Cw.jpeg" /></figure><p>On June 19, the hacking group escalated the attack by leaking Nobitex’s entire source code to reveal the exchange’s internal infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*kBOPX1Nd47Q-dn9kzrq91A.jpeg" /></figure><h3>Root causes</h3><p>As of now, the exact technical root cause of the Nobitex breach has not been officially confirmed. However, based on the leaked materials and the attacker’s statements, a few contributing factors appear to have played a role:</p><ul><li><strong>Unauthorized Access to Internal Systems</strong><br> Indicators suggest that the attacker may have gained access to internal systems, potentially through compromised credentials. This access allowed them to retrieve source code, configuration files, and cold wallet related scripts.</li><li><strong>Limited Internal Segmentation and Access Controls</strong><br> Once inside, the ability to navigate across multiple systems with minimal restriction may indicate opportunities to strengthen internal segmentation and role-based access controls.</li></ul><h3><strong>Impact</strong></h3><p>The incident led to the unauthorized transfer of a significant amount of assets from Nobitex’s hot wallets. While cold storage and customer data remained unaffected, the event caused operational disruptions, including temporary suspension of some services. User trust was shaken, but prompt communication and a full reimbursement commitment helped restore confidence. Nobitex pledged to cover all losses using its insurance fund and reserves.</p><h3><strong>Resolution</strong></h3><p>In response to the June 18 security incident, Nobitex initiated a series of immediate and strategic actions to contain the threat, secure user assets, and begin recovery efforts. To contain the incident, Nobitex immediately disconnected all servers from the network and moved remaining assets from hot wallets to cold storage. Access to the platform was temporarily suspended while the team audited systems and verified server integrity.</p><p>User data, wallet balances, and transaction histories were confirmed safe and backed up. Nobitex also began working with Iran’s Cyber Police (FATA) to investigate the breach. Regular public updates were shared to maintain transparency during the recovery process.</p><h3><strong>Timeline</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1679c6f17ef9c17b22917eee4f00772/href">https://medium.com/media/e1679c6f17ef9c17b22917eee4f00772/href</a></iframe><h3>Lessons Learned</h3><ul><li>Even major exchanges are vulnerable if hot wallet private keys are not properly secured.</li></ul><h3>Preventive Measures</h3><ul><li>Conduct regular key rotation and infrastructure penetration testing.</li><li>Strengthening operational security, especially around private keys and infrastructure access</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9989dc0b662" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Signature Verification and Preventing Replay Attack]]></title>
            <link>https://medium.com/@jenniferchinelo9/signature-verification-and-preventing-replay-attack-bb13c8a449ea?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb13c8a449ea</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 17:25:58 GMT</pubDate>
            <atom:updated>2025-07-20T20:39:34.769Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*VI66XmVEDkoIwtrMl0B0RQ.png" /></figure><p>To truly understand how <strong>signatures</strong>, <strong>signature verification</strong>, and <strong>replay attack prevention</strong> work in Ethereum, we must first explore <strong>EIP-191</strong> and <strong>EIP-712 </strong>two critical Ethereum standards.</p><h3>Why Were EIP-191 and EIP-712 Introduced?</h3><ul><li><strong>EIP-191</strong> defines a standard format for signed data in Ethereum.</li><li><strong>EIP-712</strong> (often confused with ERC-721) introduces a structured data signing method that prevents replay attacks by encoding contextual metadata into the signature.</li></ul><p>Replay attacks exploit the simplicity of signature-based systems. If someone captures and resends a valid signed message, the blockchain may accept it again unless protections like EIP-712 are used.</p><h3>Breakdown of EIP-191</h3><p>EIP-191 standardizes the format of a signed message as:<br>0x19 &lt;1 byte version&gt; &lt;version specific data&gt; &lt;data to sign&gt;</p><ul><li>0x19: A fixed prefix (decimal 25) that indicates this is a signed message, not a valid Ethereum transaction. It prevents accidental or malicious misinterpretation.</li><li>1 byte vesrion: Indicates the version of the signing format.</li><li>version specific data: Depends on the version (e.g., domain separator in EIP-712).</li></ul><h3>EIP-712 and Domain Separation</h3><p>EIP-712 enhances security through structured data signing. Its signature structure</p><p>0x1901 &lt;domainSeparator&gt; &lt;hashStruct(message)&gt;</p><ul><li>domainSeperator: Ties the message to a specific domain or DApp (e.g., contract name, chain ID, version), preventing cross-domain replay.</li><li>hash struct(message): A hash of the structured data to sign.</li></ul><p>EIP-712 gives us a way to <em>structure</em> data with enough context to prevent replay in another domain or contract.</p><h3><strong>What Is a Replay Attack?</strong></h3><p>A replay attack is a form of cyber attack in which an adversary intercepts and records a sequence of packets exchanged between a client and a server during a legitimate transaction. The attacker then replays these recorded packets at a later time to replicate the original transaction, tricking the system into accepting the repeated actions as valid.<br> When an attacker captures packets during a legitimate transaction, they are essentially obtaining a snapshot of that particular event. By replaying this snapshot later, the attacker can recreate the entire transaction, as the system treats the repeated event as genuine.</p><p>Replay attacks are known for their simplicity. They don’t require complicated tasks such as cracking encryption codes or exploiting software vulnerabilities. Instead, replay attacks solely require an attacker to capture, store, and reissue valid messages sent by valid network participants without being detected by the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*_aQ35_oHJrtwEvktyNqBDw.jpeg" /></figure><h3>How to Prevent Replay Attacks</h3><ul><li>Always use <strong>EIP-712</strong> for off-chain signed messages.</li><li>Ensure your contract checks chainId, contract address, and nonce in the domain separator.</li><li>Include session-based or one-time-use fields (nonces) in your structured data.</li></ul><p>Scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJWjlRAdPKo-f_SiGFZJXA.jpeg" /></figure><p>the redeem function is susceptible to a replay attack, where the tx Hash parameter could potentially be used multiple times to execute the function with the same data.</p><p>This tx Hash parameter, as decoded from the b calldata, is used as part of the bridging transaction confirmation without any mechanism to ensure its uniqueness or to prevent its reuse. As a result, the contract may be susceptible to a replay attack, where the same tx Hash could potentially be used to execute the redeem function multiple times, leading to unauthorized or unintended transactions.</p><p><strong>Recommendation<br></strong>Introduce additional validation in the redeem function to verify that each tx Hash has not been used in previous transactions.</p><p><strong>ECDSA (Elliptic Curve Digital Signature Algorithm)<br></strong>ECDSA (Elliptic Curve Digital Signature Algorithm) is the cryptographic backbone of many blockchain systems, including Ethereum. It enables secure key pair generation, digital signatures, and message verification.</p><p>An ECDSA signature includes:</p><ul><li><strong>r</strong>: x-coordinate from a point derived using a random number and the curve’s generator.</li><li><strong>s</strong>: Proves ownership of the private key using the message hash and key.</li><li><strong>v</strong>: Recovery ID, helping retrieve the public key from r and s.</li></ul><p>Blockchain signature provide authentication in blockchain technology. They provide verifiable proof that a transaction or message genuinely originates from the claimed sender and has not been tampered with.<br>In smart contract systems, signatures are powerful tools that serve critical functions. The EVM features the ecrecover precompile, allowing for native signature validity checks and recovery. This function is predominantly used in the context of authorization, data validity checks, and facilitating gas-less transactions. However, signature systems in smart contracts can malfunction in various ways, often leading to severe consequences.</p><p>One of the most common vulnerabilities is missing validation when ecrecover encounters errors and returns an invalid address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*8zI5SPFHHC3RAU_3PD4RGQ.jpeg" /></figure><p>A crucial check for address(0) is absent in this instance.When utilizing `ecrecover` in smart contracts for signature verification The zero address (0x000…000) must be checked against to prevent a common security vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*L_F28x_qFpCE__FteLXHfA.jpeg" /></figure><p>Better still, OpenZeppelin’s ECDSA library should be used because it automatically reverts when invalid signatures are encountered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb13c8a449ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WazirX Hack Incident Analysis]]></title>
            <link>https://medium.com/@jenniferchinelo9/wazirx-hack-incident-analysis-300e18a12ac4?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/300e18a12ac4</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 16:27:18 GMT</pubDate>
            <atom:updated>2025-07-16T16:27:18.348Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Incident Summary</h3><p>On July 18, 2024, WazirX lost over $235 million in a major security breach involving its Ethereum multisignature wallet. The exploit, which bypassed standard multisig protections without compromising private keys or hardware wallets.<br> The attackers masterfully leveraged social engineering and interface manipulation to deceive legitimate signatories, gaining unauthorized control over the wallet’s smart contract.</p><h3>2. WazirX Safe Wallet Configuration</h3><p>The WazirX hack targeted a self custodial multi-signature smart contract wallet configured using Safe (formerly Gnosis Safe). This wallet operated on a 4-of-6 signature model, meaning that any transaction require approval from four out of six designated signers.Of these six keys, five were controlled by WazirX and stored on hardware wallets, while the sixth was a Hardware Security Module (HSM) key managed by Liminal Custody,a third-party custody service provider. The HSM key did not act autonomously but relied on authorizations initiated from WazirX’s internal platform before signing any transaction.</p><p>Investigation show that the root cause was 3 WazirX signatures and 1 Liminal signature was used,which allowed the attacker to initiate a malicious contract upgrade and orchestrate the theft.</p><p>funds where minted from<br> [<a href="https://etherscan.io/address/0x27fd43babfbe83a81d14665b1a6fb8030a60c9b4">https://etherscan.io/address/0x27fd43babfbe83a81d14665b1a6fb8030a60c9b4</a>] and sent to attacker wallet<br> [<a href="https://etherscan.io/address/0x04b21735e93fa3f8df70e2da89e6922616891a88">https://etherscan.io/address/0x04b21735e93fa3f8df70e2da89e6922616891a88</a>]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uB7BAdcXw4bm-JqY.jpg" /></figure><h3>3. How did the attack happen</h3><p>WazirX and Liminal presented differing explanations of how the attackers obtained three valid signatures.<br> WazirX suggested two possibilities:</p><ul><li>A potential breach of Liminal’s infrastructure, where malicious transactions appeared legitimate matching token names, whitelisted addresses, and sending email alerts as usual.</li><li>Or, malware compromised three signer devices, allowing attackers to manipulate transactions before signing</li></ul><p>However, Liminal disagreed. Their investigation showed that the 3 signer’s device was compromised. The attacker intercepted a failed USDT transaction, reused its nonce, and altered the payload before it reached Liminal. Although the transaction appeared valid and passed all policy checks, the signature was tampered with on the client side. Once three valid signatures were received, Liminal’s system added the fourth, completing the exploit.<br> Liminal also referenced this failed transaction,[<a href="https://etherscan.io/tx/0x8b99ae634e1e7180b3fcc66e8fe5d076351477077051a7bbf5ec626a9d0588ef">https://etherscan.io/tx/0x8b99ae634e1e7180b3fcc66e8fe5d076351477077051a7bbf5ec626a9d0588ef</a>] which showed a signature mismatch, supporting their claim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WTJLaBfVbOKxY8jP.jpg" /></figure><p>On August 19, 2024, WazirX stated that a globally renowned cybersecurity firm confirmed no compromise was found on its laptops,</p><h3>4. Freezing Stolen Funds</h3><p>January 17, 2025, WazirX announced it had successfully frozen the first tranche of stolen funds, approximately $3 million in USDT, marking a pivotal recovery milestone</p><h3>5. Key Takeaways &amp; Preventive Actions</h3><p>From WazirX’s side:</p><ul><li>Harden endpoint security: Ensure signer devices are malware free using stricter device monitoring, antivirus, and secure OS policies.</li><li>Limit contract upgradability: Apply timelocks and require secondary approvals for sensitive actions like contract upgrades.</li></ul><p>From Liminal’s side:</p><ul><li>Stronger payload validation: Enhance the HSM signing policy engine to detect tampered payloads even if signatures appear valid.</li><li>Nonce transaction monitoring: Detect suspicious reuse of failed nonces or rapid submission of unexpected transactions.</li><li>Client side integrity checks: Introduce additional checks to confirm the request has not been altered between the user interface and Liminal’s backend.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=300e18a12ac4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JennyShop Testing User Guide For Arbitrum Sepolia]]></title>
            <link>https://medium.com/@jenniferchinelo9/jennyshop-testing-user-guide-for-arbitrum-sepolia-e86e63fc19bd?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e86e63fc19bd</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Sat, 03 May 2025 00:37:38 GMT</pubDate>
            <atom:updated>2025-05-03T00:38:18.866Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Just Deployed: JennyTokenShop2 on Arbitrum Sepolia</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Zz-Mt_EeoOCjqgOD8KppKg.png" /></figure><p>I am excited to share that I have successfully deployed my smart contract project <strong>JennyTokenShop2 </strong>on the Arbitrum Sepolia testnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjgbW1ZoVL6qWveG92eacA.jpeg" /></figure><p>With <strong>JennyTokenShop2</strong>, users can:<br> ✅ Buy ERC20 tokens using ETH and USDC<br> ✅ Get real-time price conversion with Chainlink oracles<br> ✅ Interact with a fully verified contract on <a href="https://sepolia.arbiscan.io/">ArbiScan</a></p><p>This walkthrough will help you test the full purchase flow of JennyTokens using ETH and USDC on Arbitrum Sepolia.</p><h3>📌 Prerequisites</h3><ul><li>A MetaMask wallet</li><li>Some test ETH and USDC on Arbitrum Sepolia</li><li>Access to the following contracts:</li><li><strong>USDC</strong>: 0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d</li><li><strong>JennyToken</strong>: 0xDf2D99B0EfE755EB4B798EA845F604fA01DAab70</li><li><strong>JennyTokenShop2</strong>: 0x6C18EFB859f93667C1241077368F700DAf0d0e31</li></ul><h3>🌐 Add Arbitrum Sepolia to MetaMask</h3><ol><li>Open MetaMask and go to <strong>Settings &gt; Networks &gt; Add Network</strong>.</li><li>Fill in the following details:</li></ol><pre>Network Name: Arbitrum Sepolia<br>New RPC URL: https://sepolia-rollup.arbitrum.io/rpc<br>ChainID: 421614<br>Currency Symbol: ETH<br>Block explorer URL: https://sepolia.arbiscan.io</pre><p>Save the network and switch to it.</p><h3>💧 Get USDC on Base Sepolia</h3><p>To test USDC purchases, you will need some test USDC tokens:</p><ol><li>Go to the <a href="https://faucet.circle.com/">Circle USDC Faucet</a>.</li><li>Connect your MetaMask wallet.</li><li>Select <strong>Arbitrum Sepolia</strong> as the network.</li><li>Request USDC.</li><li>Wait for the tokens to appear in your wallet.</li></ol><h3>📥 Import Tokens to MetaMask</h3><h3>USDC</h3><ol><li>Open MetaMask and go to the <strong>Assets</strong> tab.</li><li>Click <strong>Import Tokens</strong> &gt; <strong>Custom Token</strong>.</li><li>Enter the USDC contract address:</li></ol><ul><li>0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d</li></ul><p>Complete the import.</p><h3>JennyToken</h3><p>Repeat the same steps above with:</p><ul><li>JennyToken contract address: 0x6C18EFB859f93667C1241077368F700DAf0d0e31</li></ul><h3>✅ Approve JennyTokenShop2 to Spend USDC</h3><h3>Step 1: Go to the USDC Contract</h3><ul><li><a href="https://sepolia.arbiscan.io/address/0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d#code">ArbiScan — USDC</a></li><li>Click <strong>Write as Proxy</strong></li><li>Connect your MetaMask wallet</li></ul><h3>Step 2: Approve JennyTokenShop2</h3><ol><li>Locate the approve function.</li><li>Enter:</li></ol><ul><li><strong>Spender</strong>: JennyTokenShop2 address</li><li>0x6C18EFB859f93667C1241077368F700DAf0d0e31</li><li><strong>Amount</strong>: e.g., 100000000 (for 100 USDC assuming 6 decimals)</li></ul><p>Confirm the transaction.</p><h3>Step 3: Verify the Approval</h3><ul><li>Go to the <strong>Read as Proxy</strong> tab</li><li>Find the allowance function</li><li>Enter:</li><li><strong>Owner</strong>: your wallet address</li><li><strong>Spender</strong>: JennyTokenShop2 address</li><li>0x6C18EFB859f93667C1241077368F700DAf0d0e31</li><li>Ensure the returned value matches the approved amount.</li></ul><h3>🛒 Interact with JennyTokenShop2</h3><h3>Buy with ETH</h3><ul><li>[ArbiScan — JennyTokenShop][(<a href="https://sepolia.arbiscan.io/address/0x6C18EFB859f93667C1241077368F700DAf0d0e31#code">https://sepolia.arbiscan.io/address/0x6C18EFB859f93667C1241077368F700DAf0d0e31#code</a>))</li><li>Click <strong>Write Contract</strong></li><li>Connect your wallet</li><li>Use the buyWithEth function</li><li>Input the number of tokens you want to buy</li><li>Ensure you send enough ETH in the value field (according to the token price)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PmKSDpkvrEZT7cEj1V7I3w.jpeg" /></figure><h3>Buy with USDC</h3><ul><li>In the same <strong>Write Contract</strong> tab</li><li>Locate the buyWithUSDC function</li><li>Enter the number of tokens you wish to buy</li><li>Submit and confirm the transaction</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*aH39bkB2E-4vRRNlI-dQIw.jpeg" /></figure><h3>You are Done</h3><p>Check your MetaMask wallet to confirm you received the WagaTokens. You have now successfully tested both ETH and USDC purchase flows on TokenShop.<br>Whether you are a developer testing out dApps or someone exploring token mechanics, you can now<strong> </strong>test it live on Arbitrum Sepolia.</p><p>I have also wriitten this user guide on hackmd here is the link [<a href="https://hackmd.io/@TC5xq9ZAT9ut5ZodqzH-NQ/SyEdA3Mlxl">https://hackmd.io/@TC5xq9ZAT9ut5ZodqzH-NQ/SyEdA3Mlxl</a>]</p><p>Happy testing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e86e63fc19bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Chainlink VRF in Your Smart Contract Project]]></title>
            <link>https://medium.com/@jenniferchinelo9/how-to-use-chainlink-vrf-in-your-smart-contract-project-1c2f10a0235f?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c2f10a0235f</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Fri, 25 Apr 2025 16:41:01 GMT</pubDate>
            <atom:updated>2025-04-26T21:53:42.682Z</atom:updated>
            <content:encoded><![CDATA[<p>In blockchain development, randomness isn’t as random as you might think. Whether you’re building a decentralized lottery, minting NFTs with unique traits, or designing a fair game on-chain, you need random numbers you can trust. That’s where Chainlink VRF (Verifiable Random Function) comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*M3jt_uUUoACtfUged9p0ZQ.png" /></figure><p><strong>What is Chainlink VRF?</strong><br>According to Chainlink VRF documentation Chainlink VRF (Verifiable Random Function) is a provably fair and verifiable random number generator (RNG) that enables smart contracts to access random values without compromising security or usability. For each request, Chainlink VRF generates one or more random values and cryptographic proof of how those values were determined. The proof is published and verified onchain before any consuming applications can use it.</p><p><strong>Common Use Cases for Chainlink VRF</strong><br>Use Chainlink VRF to build reliable smart contracts for any applications that rely on unpredictable outcomes</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96b7774b511ba77d870867c11a5c3850/href">https://medium.com/media/96b7774b511ba77d870867c11a5c3850/href</a></iframe><p>There are two methods for requesting randomness:<br><strong>Subscription</strong>: Create a subscription account and fund its balance with either native tokens or LINK. Then you can connect multiple consuming contracts to the subscription account. When the consuming contracts request randomness, the transaction costs are calculated after the randomness requests are fulfilled and the subscription balance is deducted accordingly.</p><p><strong>Direct funding</strong>: Contracts directly pay with either native tokens or LINK when they request random values. You must directly fund your consumer contracts and ensure that there are enough funds to pay for randomness requests.</p><p><strong>Step-by-Step Guide Integrating Chainlink VRF in a Solidity Smart Contract</strong></p><p>Chainlink provides a set of contracts that simplify the process of accessing data from oracles. When working with Chainlink VRF, you’ll be using:</p><ul><li>VRFConsumerBaseV2Plus that must be imported and extended from the contract that you create.</li><li>VRFV2PlusClient to format your requests to VRF</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*wgB2vj7t7Am_6UHGlCsnGw.jpeg" /></figure><p><strong>Contract Variables</strong><br>In a Chainlink VRF setup, your smart contract requests random numbers from the Chainlink VRF Coordinator.cordinator interface is going to be what allows that cordination of reaching out to oracle network to get the actual random value.<br> But for that to happen, the contract needs to know some important settings and information ahead of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*_t0HwUwWWOsE9qKClovS5A.jpeg" /></figure><ol><li>uint256 Subscription Id: A subscription ID you create on Chainlink VRF’s subscription manager.<br>Chainlink VRF is a paid service. You need LINK tokens to pay for random number requests.Your subscription Id tells Chainlink where to charge LINK tokens from when you make a randomness request.</li><li>address vrfCoordinator: The address of the Chainlink VRF Coordinator contract.</li><li>bytes32 keyHash: it is specify the gas lane to be use. it is basically how much u are wiling to pay as a premium for gas for faster response. Different blockchains or testnets may use different VRF keys because each gas lane will have it own address.</li><li>uint32 callbackGasLimit: The maximum gas you allow the Chainlink node to use when calling your fulfilRandomWords() function.<br>After VRF generates randomness, it calls back your contract’s function.You must set a limit on how much gas it can spend. If you set it too low, the callback will fail. If you set it too high, you waste gas money.</li><li>uint32 requestConfirmations: Number of confirmations the VRF node waits before responding with a random number.Waiting for more block confirmations makes the randomness more secure and less vulnerable to manipulation.<br>3 confirmations is a good default for most projects. For super-high-value projects you might want 5 or 10 confirmations.</li><li>uint32 numWords: Number of random numbers you want Chainlink to return. If you can use several random number in a single callback, you can reduce the amount of gas that you spend per random number.</li></ol><p><strong>fulfillRandomWords function</strong><br>fulfillRandomWords is a special function defined within the VRFConsumerBaseV2Plus contract that your contract extends from. <br>Your contract inherits from VRFConsumerBaseV2 which defines fulfillRandomWords in an abstract way. So you must override (implement) it in your contract.<br><strong>How Does It Work<br></strong>Your contract requests randomness by calling requestRandomWords. Chainlink VRF generates the random number(s) off-chain. After a few block confirmations, Chainlink VRF calls your contract’s fulfillRandomWords function and passes the random number(s) as parameters.</p><p><strong>Set up your consuming contract:</strong></p><ol><li>Your contract must inherit VRF ConsumerBaseV2Plus.</li><li>Your contract must implement the fulfillRandomWords function, which is the <em>callback VRF function</em>. Here, you add logic to handle the random values after they are returned to your contract.</li><li>Submit your VRF request by calling requestRandomWords of the VRF Coordinator. Include the following parameters in your request:</li></ol><ul><li>uint256 Subscription Id: A subscription ID you create on Chainlink VRF’s subscription manager.<br>Chainlink VRF is a paid service. You need LINK tokens to pay for random number requests.Your subscription Id tells Chainlink where to charge LINK tokens from when you make a randomness request.</li><li>address vrfCoordinator: The address of the Chainlink VRF Coordinator contract.</li><li>bytes32 keyHash: it is specify the gas lane to be use. it is basically how much u are wiling to pay as a premium for gas for faster response. Different blockchains or testnets may use different VRF keys because each gas lane will have it own address.</li><li>uint32 callbackGasLimit: The maximum gas you allow the Chainlink node to use when calling your fulfilRandomWords() function.<br>After VRF generates randomness, it calls back your contract’s function.You must set a limit on how much gas it can spend. If you set it too low, the callback will fail. If you set it too high, you waste gas money.</li><li>uint32 requestConfirmations: Number of confirmations the VRF node waits before responding with a random number.Waiting for more block confirmations makes the randomness more secure and less vulnerable to manipulation.<br>3 confirmations is a good default for most projects. For super-high-value projects you might want 5 or 10 confirmations.</li><li>uint32 numWords: Number of random numbers you want Chainlink to return. If you can use several random number in a single callback, you can reduce the amount of gas that you spend per random number.</li></ul><p><strong>How to cancel your subscription<br></strong>To withdraw your funds from a subscription, you must cancel the subscription.</p><ol><li>Open the Subscription Manager at <a href="https://vrf.chain.link/">vrf.chain.link</a> and click the ID of your new subscription under the My Subscriptions list.</li><li>On your subscription details page, expand the Actions menu and select Cancel subscription. A field displays, prompting you to add the wallet address you want to send the remaining funds to.</li><li>Enter your wallet address and click Cancel subscription. MetaMask opens and asks you to confirm the transaction. After you approve the transaction, Chainlink VRF closes your subscription account and sends the remaining LINK to your wallet.</li></ol><p>If your subscription’s admin address is a contract instead of an EOA, you may not be able to cancel the subscription directly. In this case, you must transfer ownership of your subscription to an EOA so that you can cancel the subscription and withdraw your funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Dm75709C7rjE3A-Rr1JGHA.png" /></figure><p>If you’re building anything that depends on chance, luck, or uniqueness, integrating Chainlink VRF should be at the top of your checklist.It is fast, secure, easy to verify, and already used by major projects</p><p>for further information you can check out chainlinkvrf documentation link: <a href="https://docs.chain.link/vrf">https://docs.chain.link/vrf</a></p><p>written by Jennifer Chinelo Ojiaku</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c2f10a0235f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting systemd Issues in WSL:”System has not been booted with systemd as init system (PID…]]></title>
            <link>https://medium.com/@jenniferchinelo9/troubleshooting-systemd-issues-in-wsl-system-has-not-been-booted-with-systemd-as-init-system-pid-01655f0dee8c?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/01655f0dee8c</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 00:50:57 GMT</pubDate>
            <atom:updated>2025-03-18T00:50:57.365Z</atom:updated>
            <content:encoded><![CDATA[<h3>Troubleshooting systemd Issues in WSL:”System has not been booted with systemd as init system (PID 1)”.</h3><p>When working with Windows Subsystem for Linux (WSL), you might encounter the frustrating error: “System has not been booted with systemd as init system (PID 1). Can’t operate.” This typically occurs when you attempt to use commands like sudo reboot and systemd is not enabled in your WSL distribution. This guide will walk you through the steps to diagnose and resolve this issue, enabling systemd and restoring proper functionality to your WSL environment.</p><p>While working with WSL, I ran this command (sudo reboot) and got this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*-f-hUvPf7Z2oa20pus9ONQ.jpeg" /></figure><p>At first, I was confused, but after some troubleshooting, I realized that systemd was not enabled in my WSL setup.<br>Systemd is a system and service manager for Linux operating systems. It’s crucial for managing services and processes, including the ability to reboot your system correctly. When WSL is initially set up, systemd might not be enabled by default. This leads to the error message when commands relying on systemd are executed.</p><p><strong>Step-by-Step Solution</strong></p><p>Step 1 <strong>Identifying the Root Cause (PID 1):</strong><br>To understand what was going on, I decided to check which process was running as PID 1. <br>I ran: htop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*4oLxyC0NzRZqUZOxUZRihQ.jpeg" /></figure><p>When htop opened, I noticed that init was running as PID 1 instead of systemd. This confirmed that systemd was not enabled.</p><p>Step 2 <strong>Verifying if </strong><strong>wsl.conf Exists</strong><br>To enable systemd, I needed to modify the wsl.conf file. First, I checked if the file existed by running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*m-7UtVbdd8FRPsSzI0-JPA.jpeg" /></figure><p>If the file doesn’t exist, don’t worry — you can create it just like I did. Run:<br>sudo vi /etc/wsl.conf<br>This will open the file in the vi text editor</p><p>Step 3 <strong>Enable systemd in WSL</strong><br>Inside the vi editor, I added these lines:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*bMaPNtYgXfOiaGsqBEA2XA.jpeg" /></figure><p>To save and exit:</p><ol><li>Press Esc on your keyboard.</li><li>Type :wq! and press Enter.</li></ol><p>Step 4 <strong>Verify the Changes</strong><br>To make sure the changes were saved, I ran:<br>cat /etc/wsl.conf<br>And I saw:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*m-7UtVbdd8FRPsSzI0-JPA.jpeg" /></figure><p>then i ran htop again and saw systemd is running correctly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DeNEmD8lyCcQPXsQqIiCrg.jpeg" /></figure><p>now i ran the final test And this time, my WSL instance restarted without any issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*g81aGIre2MEydIQQF_jMDg.jpeg" /></figure><p>This experience taught me that WSL doesn’t always have systemd enabled by default, but fixing it is straightforward if you know the right steps.By following these steps, you’ve successfully enabled systemd in your WSL environment, resolving the “System has not been booted with systemd as init system (PID 1)” error.<br>I hope this guide helps!<br>if you run into more trouble, you can check out Microsoft’s official guide on systemd in WSL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01655f0dee8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is SVG? Understanding the Web’s Most Powerful Graphics Format]]></title>
            <link>https://medium.com/@jenniferchinelo9/what-is-svg-understanding-the-webs-most-powerful-graphics-format-9eda55fbdf10?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eda55fbdf10</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 23:19:19 GMT</pubDate>
            <atom:updated>2025-03-15T23:19:19.700Z</atom:updated>
            <content:encoded><![CDATA[<p>Scalable Vector Graphics (SVG) is a powerful and flexible format for creating web graphics.</p><p><strong>what is SVG</strong><br>SVG (Scalable Vector Graphics) is an XML-based vector image format that defines graphics in a scalable way, ensuring they do not lose quality when zoomed or resized. Supported by all major browsers, SVG integrates seamlessly with standards like CSS, DOM, XSL, and JavaScript, allowing for interactive and animated elements. As a W3C Recommendation, SVG is widely used for web graphics, making it a powerful and flexible choice for developers.</p><p><strong>SVG Advantages</strong><br>Advantages of using SVG over other image formats (like JPEG and GIF) are:<br>SVG images can be created and edited with any text editor<br>SVG images can be searched, indexed, scripted, and compressed<br>SVG images are scalable<br>SVG images can be printed with high quality at any resolution<br>SVG images are zoomable<br>SVG graphics do NOT lose any quality if they are zoomed or resized<br>SVG is an open standard<br>SVG files are pure XML</p><p><strong>How does it Work?</strong><br>SVG has elements and attributes for rectangles, circles, ellipses, lines, polygons, curves, and more.<br>A simple SVG document consists of the &lt;svg&gt; root element and several basic shape elements that will build a graphic together.</p><p><strong>Creating SVG Images</strong><br>SVG images can be created with any text editor, or with a drawing program,<br>You can embed SVG elements directly into your HTML pages<br>however Since SVG is written in XML</p><ul><li>All elements must be properly closed</li><li>XML is case-sensitive, so write all SVG elements and attributes in same case. We prefer lower-case</li><li>Place all attribute values in SVG inside quotes (even if they are numbers)</li></ul><p>SVG Shapes<br>SVG has some predefined shape elements that can be used by developers:</p><ul><li>Rectangle &lt;rect&gt;</li><li>Circle &lt;circle&gt;</li><li>Ellipse &lt;ellipse&gt;</li><li>Line &lt;line&gt;</li><li>Polyline &lt;polyline&gt;</li><li>Polygon &lt;polygon&gt;</li><li>Path &lt;path&gt;</li></ul><p>Here is an example of a circle shape</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03aoeKcnj6jKCivBCTPxFA.jpeg" /></figure><p><strong>SVG Text (</strong><strong>&lt;text&gt;)</strong><br>In SVG, the &lt;text&gt; element is used to define and display text within an SVG graphic. Unlike standard HTML text, SVG text can be positioned, styled, and transformed using attributes and CSS, making it a powerful tool for vector-based text rendering.<br>Example: Creating a Simple SVG Text<br>hi! you decoded this!</p><p>Here is the SVG code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*j9A4ocLIFajNyMc2dDsN9g.jpeg" /></figure><h4>SVG &lt;image&gt;</h4><p>The &lt;image&gt; element in SVG is used to insert images within an SVG graphic. This allows you to embed images (such as JPEG and PNG) or even other SVG files inside an SVG canvas.</p><p>Here is the SVG code and a .jpg image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbK5B221aSF_ETfK0vaSAA.jpeg" /></figure><p>SVG is a powerful and flexible format for creating scalable graphics on the web. It supports a variety of features, including shapes, text, animations, and effects, making it a versatile choice for developers and designers. To explore more about SVG and its capabilities, you can read further at <a href="https://www.w3schools.com/graphics/svg_intro.asp">W3Schools</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eda55fbdf10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Smart Contracts with Web Applications Using APIs]]></title>
            <link>https://medium.com/@jenniferchinelo9/integrating-smart-contracts-with-web-applications-using-apis-3c5a4fa47d99?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c5a4fa47d99</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 13:05:48 GMT</pubDate>
            <atom:updated>2025-03-15T13:05:48.502Z</atom:updated>
            <content:encoded><![CDATA[<p>APIs (Application Programming Interfaces) play a crucial role in connecting web applications and backend services to the blockchain. They enable applications to fetch on-chain data and interact with smart contracts without running a full node. This article explores how APIs facilitate these interactions and best practices for integrating them into web applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*Enqt60pgXj2WzGoAMoeVzw.png" /></figure><h4><strong>1. Retrieving On-Chain Information</strong></h4><p>Web applications often require real-time or historical data on the blockchain. APIs provide the gateway to this information</p><p><strong>Querying Blockchain State:<br></strong>APIs allow applications to make specific requests for data, such as</p><ul><li>Wallet balances (eth_getBalance)</li><li>Transaction history (eth_getTransactionByHash)</li><li>Smart contract storage values (eth_call<strong>)</strong></li></ul><p><strong>Real-Time Event Monitoring:</strong></p><ul><li>Blockchains generate events when transactions occur or smart contracts execute. APIs can stream these events, enabling applications to react instantly to on-chain activity.</li><li>A decentralized finance (DeFi) application might subscribe to events related to liquidity pool transactions to update its real-time analytics</li></ul><p><strong>API Structure:</strong></p><ul><li>Both REST and GraphQL APIs are used. REST for simple requests, and GraphQL for complex customized queries.</li><li>Example REST endpoint: GET /api/v1/transactions/{transactionHash}</li></ul><h4><strong>2. Executing Smart Contract Functions</strong></h4><p>APIs not only fetch data but also enable web applications to invoke smart contract functions and perform blockchain transactions<br>Smart contract functions can be called using web APIs, either as <strong>read operations (</strong><strong>call)</strong> or <strong>write operations (</strong><strong>send)</strong>.</p><ul><li><strong>Read operations (</strong><strong>call)</strong>: Fetch data without modifying blockchain state (e.g., checking token balance).</li><li><strong>Write operations (</strong><strong>send)</strong>: Modify the blockchain state, requiring gas fees (e.g., transferring tokens).</li></ul><h4>Example: Calling a Smart Contract Function with ethers.js</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5vfckXJ8KeJW1n6PZJRiCg.jpeg" /></figure><p>This script deploys a Solidity smart contract to an Ethereum network using <strong>ethers.js</strong> and a provided wallet.</p><h4><strong>3. Key Technologies and Providers</strong></h4><ul><li><strong>Blockchain Infrastructure Providers:<br></strong>Platforms like Infura, Alchemy, and QuickNode offer robust APIs for accessing blockchain data and submitting transactions.</li><li><strong>Web3 Libraries:<br></strong>Libraries like Web3.js and Ethers.js facilitate interaction with Ethereum-based blockchains, provide tools for transaction creation and smart contract interaction.</li><li><strong>Backend Services:<br></strong>Many backend services exist that wrap these web3 libraries, and infrastructure providers to simplify the complexity of interacting with the blockchain.</li></ul><h4><strong>4. Security Considerations</strong></h4><ul><li>API keys must be securely stored and managed to prevent unauthorized access.</li><li>Private keys should never be exposed to the web application. Wallet integration and secure key management practices are essential.</li><li>Applications should validate data received from APIs to prevent vulnerabilities and ensure data integrity.</li></ul><p>APIs play a crucial role in connecting web applications with blockchain networks, enabling seamless data retrieval and smart contract execution. By adopting best practices and the right tools, developers can create scalable, secure, and user-friendly decentralized applications that unlock the full potential of blockchain technology</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c5a4fa47d99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Blockchain Identity: The Basics of Ethereum Accounts”]]></title>
            <link>https://medium.com/@jenniferchinelo9/your-blockchain-identity-the-basics-of-ethereum-accounts-3767dddded36?source=rss-7ae7282a26e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3767dddded36</guid>
            <dc:creator><![CDATA[Jennifer ojiaku]]></dc:creator>
            <pubDate>Thu, 13 Mar 2025 17:26:38 GMT</pubDate>
            <atom:updated>2025-03-13T17:57:28.821Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*fLBjBPUQjyq-S9a2iruoXg.jpeg" /></figure><p>Tired of feeling like your digital life is someone else’s property? Imagine a place where you truly own your online assets, where you control your data, and where you interact with applications directly, without needing a middleman. That place is Web3, and your Ethereum account? That’s your personal key, granting you full access and ownership.</p><p><strong>What Exactly is an Ethereum Account?</strong><br>An Ethereum account is your digital identity on the Ethereum blockchain. Think of it as a digital bank account, but one that lives on the blockchain. It allows you to send, receive, and store Ether (ETH), the currency of Ethereum, and other digital assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*1M7D8zV5eqYw4l8hUSYvHA.jpeg" /></figure><p>There are two main types of accounts in Ethereum:<br><strong>Externally Owned Accounts (EOAs):</strong> EOAs are the most common type of Ethereum accounts, used by individuals and businesses for transactions. Each EOA has:</p><ul><li>A public address<strong> </strong>which is used to receive funds.</li><li>A private key which is used to sign transactions and should always be kept secret.</li></ul><p><strong>Contract Accounts</strong><br>contract accounts are governed by smart contract code deployed on the Ethereum network.</p><p><strong>Why Do We Need Ethereum Accounts?</strong><br>Ethereum accounts are essential for interacting with the Ethereum blockchain.</p><ul><li><strong>True Ownership:</strong> You can own your digital asset.</li><li><strong>Decentralization:</strong> You can use decentralized applications (dApps) without relying on anyone else.</li><li><strong>Easy Transactions:</strong> Send and receive ETH and other tokens with just a few clicks.</li><li><strong>Smart Contracts:</strong> Interact with smart contracts, which are like self-executing digital agreements.</li></ul><p><strong>How Do Ethereum Accounts Work with the Blockchain?<br></strong>When you send ETH or use a dApp, you create a transaction. Here’s a simplified breakdown:</p><ol><li>You tell your wallet to send ETH to someone.</li><li>Your wallet sends the transaction to the Ethereum network.</li><li>Computers on the network (called miners or validators) check that the transaction is valid.</li><li>Once verified, the transaction is added to the Ethereum blockchain, a public record of everything that happens.</li><li>The person you sent ETH to receives it.<br>Because the blockchain is public, everyone can see these transactions. This makes the system transparent and secure.</li></ol><p><strong>Getting Started: Creating Your First Ethereum Account<br></strong>The first step is to choose a wallet. There are many options, like software wallets (apps on your phone or computer) and hardware wallets (physical devices).</p><p>Once you’ve chosen a wallet, you’ll need to create an account. The wallet will generate a seed phrase (a list of words). Write this seed phrase down and keep it in a very safe place. It’s the only way to recover your account if you lose access.<br>To receive ETH, simply share your Ethereum address with the sender. To send ETH, enter the recipient’s address and the amount you want to send in your wallet.</p><p><strong>Security: Protecting Your Digital Assets<br></strong>Security is paramount. Remember these key points:</p><ul><li>Never share your private key or seed phrase with anyone.</li><li>Be wary of phishing scams<strong>.</strong> Always double-check website addresses and emails.</li><li>Use a reputable wallet.</li><li>Your seed phrase is your backup. If you lose it, you lose access to your<strong> </strong>funds.</li></ul><p>Ethereum accounts are the backbone of blockchain interactions, either for personal use through EOAs or automated processes via contract accounts.As Ethereum evolves, innovations like smart contract wallets will further redefine how users manage their blockchain identities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3767dddded36" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>