<?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 Christian Nwobodo on Medium]]></title>
        <description><![CDATA[Stories by Christian Nwobodo on Medium]]></description>
        <link>https://medium.com/@thechriscen?source=rss-e76e71afe512------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jl9VpVmTenyCtVyTcKUWow.png</url>
            <title>Stories by Christian Nwobodo on Medium</title>
            <link>https://medium.com/@thechriscen?source=rss-e76e71afe512------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:21:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thechriscen/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[An simple guide to Decoding Traces Data]]></title>
            <link>https://medium.com/@thechriscen/an-simple-guide-to-decoding-traces-data-397de3563ba6?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/397de3563ba6</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[web3-data-analytics]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Thu, 29 May 2025 10:40:26 GMT</pubDate>
            <atom:updated>2025-05-29T10:40:26.865Z</atom:updated>
            <content:encoded><![CDATA[<p>You’ve probably followed my guide on <a href="https://thechriscen.substack.com/p/working-with-raw-blockchain-data">working with raw transaction data</a> and maybe even <a href="https://thechriscen.substack.com/p/how-to-manually-decode-event-logs">decoded event logs</a> using ABIs from Etherscan. But sometimes you need to see <em>more</em>. You need to understand the <em>inner workings</em> of a smart contract interaction.</p><p><strong><em>This is where Traces come in…</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*URgJNsnd1eWO0WBw.png" /></figure><p>Traces provide a detailed, step-by-step view of every operation performed during a transaction. They go beyond the surface level of transactions and events, giving you a deep understanding of what’s happening inside the smart contract.</p><p>In this guide, we’ll explore how to use traces to analyze transaction behavior, debug issues, and gain a deeper understanding of smart contract execution.</p><h3>What Are Traces?</h3><p>Traces are records of the internal operations executed during a transaction.</p><p>In Ethereum, traces are detailed, internal records of all EVM execution steps that occur during a transaction. They capture every internal call, value transfer, and operation — even those that aren’t visible in the standard transaction log.</p><p>Instead of just seeing the end result of a transaction (the state changes) and events which are the summary, traces show you the process by which those changes were achieved.</p><p>More specifically, traces record <em>every</em> internal operation during a transaction. Every time a function is called, a contract is created, or value is transferred internally, a trace records that action.</p><p><strong>Why are traces are valuable in exploring blockchain data?</strong></p><ul><li><strong>Debugging:</strong> Pinpoint the exact location of errors in complex smart contract interactions.</li><li><strong>Gas Optimization:</strong> Identify gas-intensive operations within your smart contracts.</li><li><strong>Value Tracking:</strong> Follow the flow of Ether and tokens through multiple contract calls.</li><li><strong>Root Cause Analysis:</strong> Determine the precise cause of transaction failures.</li></ul><p>For example, imagine a complex DeFi transaction that fails with a generic error message. Traces let you examine each internal call, identify the point of failure, and understand the specific reason for the revert.</p><h3>Understanding the Trace Structure</h3><p>Each trace entry is a JSON object with the following key fields:</p><pre>{<br>  &quot;type&quot;: &quot;CALL&quot;,<br>  &quot;from&quot;: &quot;0x...&quot;,<br>  &quot;to&quot;: &quot;0x...&quot;,<br>  &quot;value&quot;: &quot;0x...&quot;,<br>  &quot;gas&quot;: 2300,<br>  &quot;gasUsed&quot;: 2100,<br>  &quot;input&quot;: &quot;0x...&quot;,<br>  &quot;output&quot;: &quot;0x...&quot;,<br>  &quot;time&quot;: &quot;2.373ms&quot;,<br>  &quot;calls&quot;: [<br>    // Nested calls (if any)<br>  ]<br>}</pre><p>Let’s break down the key fields:</p><ul><li>type<strong>:</strong> The type of operation performed. This is crucial! Common types include:</li><li>CALL: A function call.</li><li>CREATE: A contract creation.</li><li>DELEGATECALL: Executes code from a target contract in the context of the caller.</li><li>SELFDESTRUCT: Contract destruction.</li><li>from<strong> / </strong>to<strong>:</strong> The sender and receiver addresses of the call.</li><li>value<strong>:</strong> The amount of Ether (in Wei) transferred.</li><li>gas<strong> / </strong>gasUsed<strong>:</strong> The gas limit and the actual gas used.</li><li>input<strong>:</strong> The input data (calldata) for the call, including the function selector and arguments.</li><li>output<strong>:</strong> The return data from the call.</li><li>calls<strong>:</strong> An array of nested trace entries, representing internal calls.</li></ul><h3>Reading traceAddress</h3><p>Each trace entry includes a traceAddress—an array of integers—that tells you how deeply nested the call is and its position among sibling calls.</p><p>Let’s visualize how traceAddress maps to the call structure. Imagine the following scenario, where A initiates a transaction :</p><pre>A (null)  -- the transaction first input has a trace_address of []<br>  CALLs B (0)<br>    CALLs C (0,0)<br>    CALLs D (1)<br>      CALLs E (1,0)<br>        CALLs F (1,0,0)<br>      CALLs G (1,1)<br>  CALLs H (2)</pre><ul><li>[]<strong> (Null/Empty Array):</strong> The initial transaction call, initiated by an external account (A).</li><li>[0]<strong>:</strong> The first call <em>within</em> the initial transaction. In this example, function A calls function B.</li><li>[0, 0]<strong>:</strong> The first call <em>within</em> call [0]. C is being called by B.</li><li>[1]<strong>:</strong> The <em>second</em> call within the initial transaction. H is the second top-level trace called by A</li><li>[1, 0]<strong>:</strong> This show the first function call from within the second internal call from the intial transaction</li><li>[1, 0, 0]<strong>:</strong> This shows the zero index of the zero index of the second index.</li><li>[1, 1]<strong>:</strong> A shows there is another index, or second call within the second index which originated.</li></ul><p>For instance, this traceAddress tells you:</p><ul><li>How many levels deep a particular function call has gotten, which shows function hierarchies.</li><li>Knowing which function call occured within which function call, can also help you trace the source of the error.</li></ul><h4>Practical Examples: Reading Traces Data</h4><p>Let’s examine a USDT token transfer with this transaction hash: <a href="https://etherscan.io/tx/0x85d6fa5ba09b882189fb3100c55aae198a6fac963508cbf45b5056a8ee8587d0">0x85d6fa5ba09b882189fb3100c55aae198a6fac963508cbf45b5056a8ee8587d0</a></p><p>Etherscan can be tricky, so we will use <a href="https://app.blocksec.com/explorer/tx/eth/0x85d6fa5ba09b882189fb3100c55aae198a6fac963508cbf45b5056a8ee8587d0">Phalcon Blocksec</a> to see a more organized and cleaner way to walk through the decoding process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nUJ9cmOGzs_l64L3.png" /></figure><p>At a glance, you’ll observe the transaction has a trace address of [0,1]. First, observe the sender, initiating the call. Now we see what input and output by tracing the transaction. Finally the contract emits a transfer event with the [from, to, value].</p><h3>Now, let’s Decode the Trace Data Manually…</h3><p>Just like <a href="https://thechriscen.substack.com/p/how-to-manually-decode-event-logs">decoding event logs</a>, decoding trace data means transforming the raw data into a human-readable format. We’ll use a similar approach to the one in our event logs guide.</p><p>For a USDT transfer, we’ll identify the transfer function and decode its parameters:</p><pre>transfer(address,uint256)</pre><p>Here’s how to do it with DuneSQL:</p><p><strong>1. Extracting the Function Signature</strong></p><p>The first four bytes of the input data are the function signature. We can extract it using the following DuneSQL query:</p><pre>SELECT<br>  substring(to_hex(&quot;input&quot;), 1, 8) as function_signature<br>FROM<br>  ethereum.traces<br>WHERE<br>  to = 0xdAC17F958D2ee523a2206206994597C13D831ec7  -- USDT Address<br>  AND tx_hash = 0x9acba5bef8645d7dd0710f831318089f5424686bc35e2741ebc37d0f307c22bc  -- transaction_hash</pre><p>Let’s break this down:</p><ul><li>substring(to_hex(&quot;input&quot;), 1, 8): This extracts the first 8 characters (4 bytes) from the hexadecimal representation of the &quot;input&quot; field.</li><li>to_hex(&quot;input&quot;): This converts the binary &quot;input&quot; data into a hexadecimal string.</li><li>FROM ethereum.traces: Specifies we&#39;re querying the ethereum.traces table</li><li>WHERE to = ... AND tx_hash = ...: This narrows the query scope to USDT transfers.</li></ul><p>The output will be the function signature as a hexadecimal value:</p><pre>a9059cbb</pre><p>Finally, concatenate 0x to the start of the signature, resulting in:</p><pre>transfer_signature = 0xa9059cbb</pre><p><strong>2. Decoding the address Parameter</strong></p><p>The address parameter (the recipient) is located after the function signature in the input data. Ethereum addresses are 20 bytes long, which corresponds to 40 hexadecimal characters.</p><p>To extract the address, we’ll use the following DuneSQL code:</p><pre>WITH<br>  decoded_traces AS (<br>    SELECT<br>      regexp_extract_all(substring(to_hex(&quot;input&quot;), 9), &#39;.{64}&#39;) AS decoded_input<br>    FROM<br>      ethereum.traces<br>    WHERE<br>      to = 0xdac17f958d2ee523a2206206994597c13d831ec7  -- USDT Address<br>      AND tx_hash = 0x9acba5bef8645d7dd0710f831318089f5424686bc35e2741ebc37d0f307c22bc  -- transaction_hash<br>  )<br>SELECT<br>  function_signature,<br>  &#39;0x&#39; || substring(decoded_input[1], 25, 40) AS address<br>FROM<br>  decoded_traces</pre><p>Here’s the breakdown:</p><ul><li>WITH decoded_traces AS (...): Defines a common table expression (CTE) to preprocess the data</li><li>regexp_extract_all(substring(to_hex(&quot;input&quot;), 9), &#39;.{64}&#39;) AS decoded_input: This performs regexp_extract_all function to decode all the inputs from the traces table, making it easy to decode any parameter by calling its index.</li><li>substring(to_hex(&quot;input&quot;),9): The function signature takes up the first 8 characters. To access the arguments, we access everything after. We also perform to_hex, so we can perform string specific operation substring</li><li>&#39;.{64}&#39;: As a rule of thumb, all arguments must be decoded uint256, or has 32 bytes. Therefore, the expression above will split the input after the function into chunks of 64 characters.</li><li>substring(to_hex(&quot;input&quot;), 9): Extracts the data past the function signature.</li><li>&#39;0x&#39; || substring(decoded_input[1], 25, 40): Extracts 40 bytes for offset.</li></ul><p><strong>3. Decoding the uint256 Value</strong></p><p>Following the address, in the input data is the value (amount) being transferred and is of uint256 data type . uint256 values are 32 bytes or 64 hex characters in length. The following DuneSQL code extracts and converts the value to the appropriate type:</p><pre>WITH<br>  decoded_traces AS (<br>    SELECT<br>      regexp_extract_all(substring(to_hex(&quot;input&quot;), 9), &#39;.{64}&#39;) AS decoded_input<br>    FROM<br>      ethereum.traces<br>    WHERE<br>      to = 0xdac17f958d2ee523a2206206994597c13d831ec7  -- USDT Address<br>      AND tx_hash = 0x9acba5bef8645d7dd0710f831318089f5424686bc35e2741ebc37d0f307c22bc  -- transaction_hash<br>  )<br>SELECT<br>  varbinary_to_uint256(varbinary_substring(from_hex(decoded_input[2]), 1, 32)) AS amount<br>FROM<br>  decoded_traces</pre><p>Deconstructing the query:</p><ul><li>varbinary_to_uint256(...): Converts the hexadecimal value into an unsigned integer.</li><li>varbinary_substring(from_hex(decoded_input[2]), 1, 32): Returns 32 bytes from decoded_input</li></ul><h3>Putting It All Together (Example Query)</h3><p>The following example shows a complete DuneSQL query with all previous steps.</p><pre>WITH<br>  decoded_traces AS (<br>    SELECT<br>      block_time,<br>      tx_hash,<br>      substring(to_hex(&quot;input&quot;), 1, 8) AS function_signature,<br>      regexp_extract_all(substring(to_hex(&quot;input&quot;), 9), &#39;.{64}&#39;) AS decoded_input<br>    FROM<br>      ethereum.traces<br>    WHERE<br>      to = 0xdac17f958d2ee523a2206206994597c13d831ec7  -- USDT Address<br>      AND tx_hash = 0x9acba5bef8645d7dd0710f831318089f5424686bc35e2741ebc37d0f307c22bc  -- transaction_hash<br>  )<br>SELECT<br>  function_signature,<br>  &#39;0x&#39; || substring(decoded_input[1], 25, 40) AS address,<br>  varbinary_to_uint256(varbinary_substring(from_hex(decoded_input[2]), 1, 32)) AS amount<br>FROM<br>  decoded_traces</pre><p>If you followed up to this point, I congratulate you on taking the first step towards working with traces data. To go beyond a simple USDT transfer case study, you can check out this <a href="https://dune.com/queries/5205084">Dune Query,</a> where we decoded a more complex <a href="https://app.blocksec.com/explorer/tx/eth/0x4fa29a598d3daf1709e478fc3c3c7d712ec6988ce29393b7f3e4fc83893b191a?line=0">transaction.</a></p><h3>That’s a Wrap!</h3><p>By understanding the structure of trace data and applying appropriate DuneSQL functions, you can efficiently decode and analyze trace data.</p><p>The best way to master this skill is to practice. Start exploring traces for transactions you find interesting, and you’ll quickly develop a solid understanding of Ethereum internal workings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=397de3563ba6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manually Decode Event Logs]]></title>
            <link>https://medium.com/@thechriscen/how-to-manually-decode-event-logs-a65f42c7496d?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/a65f42c7496d</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[web3-data]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Fri, 09 Aug 2024 08:02:39 GMT</pubDate>
            <atom:updated>2024-08-09T08:02:39.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSjoPmw752JIHvIyq6hbuA.png" /></figure><p>Event logs are records generated when a smart contract emits an event. These logs provide additional details about state changes — modifications to a contract’s data storage — resulting from executed transactions. For instance, a token transfer, which alters sender and receiver balances, qualifies as a state change recorded in the event logs.</p><p>Each event log record consists of both topics and data. While topics are indexed parameters of an event, data contains the non-indexed parameters.</p><h3>Understanding Topics and Data</h3><p>Consider a basic transfer event log:</p><pre>Transfer(address indexed from, address indexed to, uint256 value)</pre><p>The first part of an event log consists of an array of topics, which are 32-byte (256-bit) characters used to describe what’s happening in an event. These are essentially indexed parameters, meaning they can be searched for specific values. The topics contain the event name and parameters, which include topic0, topic1, topic2, and topic3.</p><p>The first topic is always the signature of the event (a keccak256 hash) of the event’s name and its parameter types. There can be up to three additional topics.</p><p>For the Transfer event mentioned above, the topics would be:</p><ul><li>Topic 0: The event signature</li><li>Topic 1: The from address</li><li>Topic 2: The to address</li></ul><p>Data is the second part of event logs, containing non-indexed parameters that cannot be directly searched. Unlike topics, which are limited to 32 bytes, data can hold any data type, including complex structures like tuples and strings, providing more detailed information about the event.</p><p>In the Transfer event, the value would be included in the data section.</p><p>Now, put on your Onchain Data Analyst hat, and let’s learn how to decode topics and data from event logs manually.</p><h3>Decoding Event Logs on Ethereum</h3><p>Decoding event logs involves converting raw data from blockchain transactions into human-readable information. The goal of this process is to map each parameter in the topic and data fields to their corresponding data types.</p><p>In this walkthrough, we will decode the event log of an ERC20 <a href="https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog">transfer event</a> from the PICKLE token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bZcBVdlPndNkkx4m.png" /><figcaption><a href="https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog">event logs (raw)</a></figcaption></figure><p>The PICKLE Transfer event contains the sender, the recipient, and the amount of tokens transferred:</p><pre>Transfer(address indexed from, address indexed to, uint256 value)</pre><p>The event logs are identified as follows:</p><ul><li>Topic 0: The event signature</li><li>Topic 1: The from address</li><li>Topic 2: The to address</li><li>Data: the value amount</li></ul><p>Now, let me show you how to decode each parameter manually.</p><h4>Topic 0: The Event Signature</h4><p>To find the event signature (Topic 0), you need to normalize the event by removing spaces, parameter names, and keywords. Then, apply the Keccak-256 hashing function or use an online hashing tool to calculate the Keccak256 hash.</p><p>The normalized signature is:</p><pre>Transfer(address,address,uint256)</pre><p>Using this <a href="https://emn178.github.io/online-tools/keccak_256.html">Keccak-256 tool,</a> or Keccak function in Dune, input the normalized signature:</p><pre>keccak(‘Transfer(address,address,uint256)’)</pre><p>The output will be the following hash value:</p><pre>ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef</pre><p>Finally, concatenate it with ‘0x’, and you will have the event signature as</p><pre>topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef</pre><h4>Topic 1: The from Address</h4><p>The data type for Topic 1 is an address. Therefore, our goal is to decode it from its current hex value into the standard address format.</p><p>A standard EVM address has 42 characters, but the hex value of the address below includes 24 additional leading zeros for encoding purposes:</p><pre>0x00000000000000000000000075e89d5979e4f6fba9f97c104c2f0afb3f1dcb88</pre><p>To correctly decode this address, we need to use the substring function to extract characters from the 25th to the 42nd position. We then concatenate the result with `0x` to convert it into the standard Ethereum address format.</p><p>Using Dune SQL, the query for decoding Topic 1 will be:</p><pre>&#39;0x&#39; || lower(substring(to_hex(topic1), 25, 42)) as decoded_topic1</pre><p>The decoded address should return:</p><pre>0x75e89d5979e4f6fba9f97c104c2f0afb3f1dcb88</pre><h4>Topic 2: The to Address</h4><p>Since both Topic 1 and Topic 2 are addresses, we can simply replicate the process explained above.</p><p>Using Dune SQL, the query for decoding Topic 2 will be:</p><pre>0x87d9da48db6e1f925cb67d3b7d2a292846c24cf7</pre><h4>Data: The value</h4><p>The value column in the data logs is of the integer data type. To convert from hexadecimal to integer we use the bytearray function on Dune and apply a substring operation to extract the 32-byte character sequence:</p><pre>bytearray_to_uint256(bytearray_substring(data, 1, 32)) AS amount</pre><p>The output will be an integer representing the value of tokens transferred from the sender (Topic 1) to the receiver address (Topic 2).</p><p><em>Our final query for decoding all topics and data in the PICKLE Transfer Event will be:</em></p><pre>select <br>   keccak(to_utf8(&#39;Transfer(address,address,uint256)&#39;)) as topic0 <br>, &#39;0x&#39; || lower (substring(to_hex(topic1),25, 42)) as decoded_topic1<br>, &#39;0x&#39; || lower (substring(to_hex(topic2),25, 42)) as decoded_topic2<br>,bytearray_to_uint256(bytearray_substring(data, 1,32)) as amount<br>from ethereum.logs<br>where tx_hash =   0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5<br>and contract_address = 0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5</pre><p>Now, let’s verify the accuracy of our decoding by switching the view in the Event Logs Explorer from hex to decoded format. The output below matches the results of our manual decoding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IY7aDcdi6F28CF2J.png" /><figcaption><a href="https://etherscan.io/tx/0x2bb7c8283b782355875fa37d05e4bd962519ea294678a3dcf2fdffbbd0761bc5#eventlog">event logs (decoded)</a></figcaption></figure><p>In addition, the PICKLE event logs table is already decoded in Dune, allowing us to query the pickle_finance_ethereum.PickleToken_evt_Transfer table to access the decoded event log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ga6ADdvzrAoTx0r8.png" /></figure><h3>Next Steps…</h3><p>The ability to manually decode event logs is crucial for assessing data accuracy, completeness, and consistency before conducting on-chain analysis.</p><p>This walkthrough was designed to provide you with a foundational understanding of how the decoding process works for basic data types.</p><p>As you continue to query blockchain data, you’ll encounter more complex data types like tuples, timestamps, and others. I highly recommend this <a href="https://www.youtube.com/watch?v=AIDH6yXQvLA&amp;t=284s">video walkthrough</a> by Sam-SQL Sunday, which is particularly helpful for learning how to decode complex data types.</p><p>On my end, I will keep experimenting with decoding event logs using contract ABIs. If you’re interested, I can create guides to share my findings.</p><p>The final part of my series on “Working with Raw Data” will focus on decoding Traces. I’ll be sharing that guide in the coming days.</p><p>As always, I welcome your feedback on how I can improve and suggestions for future guides to help make your on-chain data career easier.</p><p><strong><em>Reference Tools &amp; Resources to improve your learning</em></strong></p><ul><li><a href="https://www.youtube.com/watch?v=AIDH6yXQvLA&amp;t=284s">How to Decode Ethereum Logs Manually</a> by Sam</li><li><a href="https://read.cryptodatabytes.com/p/how-to-understand-transactions-traces">How to Read Ethereum Transactions, Traces &amp; Logs</a> by Andrew Hong</li><li>Keccak-256 Tool- <a href="https://emn178.github.io/online-tools/keccak_256.html">https://emn178.github.io/online-tools/keccak_256.html</a></li><li><a href="https://docs.dune.com/query-engine/Functions-and-operators/varbinary">Using Varbinary Functions on Dune</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a65f42c7496d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Raw Blockchain Data]]></title>
            <link>https://medium.com/@thechriscen/working-with-raw-blockchain-data-6798c2e91828?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/6798c2e91828</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Fri, 09 Aug 2024 01:31:35 GMT</pubDate>
            <atom:updated>2024-08-09T01:31:35.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9nzjhPvhKFByqcoLKhYeA.png" /></figure><p>At the heart of blockchain data are three fundamental data tables: transactions, traces, and logs. These tables capture the lifecycle of a transaction, from its inception to its final state.</p><p>By understanding these core components, you will find it easier to query onchain data, build more intuitive dashboards, and create insightful reports.</p><h3>Lifecycle of a Blockchain Transaction</h3><p>Let’s take the example of you transferring USDT to a friend on the Ethereum chain. You sign the transaction to transfer the ERC-20 token from your wallet, triggering the transfer function that specifies the recipient and amount.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v984jCqNalzP-Ead.png" /><figcaption><a href="https://docs.google.com/presentation/d/1I6vDOS52uMCmWg3KIbuKYe8lK-8_ol9bEksIUEHNNLI/edit#slide=id.gfac7071356_0_6">by Ilemi x OurNetwork Learn</a></figcaption></figure><p>Behind the scenes, the blockchain creates two key tables: transactions and traces. These tables record details like transaction hash, sender, recipient, transaction status, gas fees, block number, and timestamp.</p><p>The transaction’s final stage is marked by the <em>emitTransfer function,</em> which generates the logs table. This table includes contract address, event topics, call data, and block information.</p><p>Most tables on Blockchain Analytics platforms like Dune &amp; Flipslide are built upon these three foundational tables. Understanding them is essential for delving into more complex blockchain data exploration.</p><h3>Part 1- Exploring Transaction Data on Ethereum</h3><p>Every transaction happening in the cryptoeconomy is, by design, visible to anyone via explorers. The challenge is that the average person usually finds it difficult to read and interpret these transactions due to the jargon and technicalities involved in navigating blockchain explorers like <a href="https://etherscan.io/">Etherscan.</a></p><p>This section of the guide will be an overview of important terminologies and details you need to understand when looking up any transaction on blockchain explorers.</p><p>Let’s say you swap USDT for Highstreet (HIGH) tokens on Binance. Since these are ERC-20 tokens, you can find transaction details on Etherscan. After each swap, a transaction hash is generated. Entering the hash into etherscan’s search bar will bring you to a page like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ktOWbkCq6glcK54f.png" /></figure><p><a href="https://etherscan.io/tx/0x3d04ff04774af7fa4ccfd58925e610207d8ff1716af8d7cf6db89312a9669950">example of a swap transaction</a></p><ul><li><strong>Transaction Hash:</strong> A unique identifier for each transaction, similar to a receipt number.</li><li><strong>Status:</strong> Indicates the current state of the transaction- e.g. success, failed, canceled, or is still pending.</li><li><strong>Block:</strong> The block number where the transaction is included. Blocks contain groups of transactions added to the blockchain at specific times.</li><li>Block confirmation means how many blocks have passed since the transaction was included.</li><li><strong>Timestamp:</strong> Date and time the transaction was included in a block.</li><li><strong>Transaction Action:</strong> The type of action the transaction performs, such as sending tokens, deploying a smart contract, or providing liquidity in a pool.</li><li><strong>From:</strong> Address of the sender initiating the transaction.</li><li><strong>Interacted With (To):</strong> Address receiving the transaction (this can be an EOA (externally owned address) for token transfers, or contract address for smart contract interactions.</li><li><strong>Tokens Transferred:</strong> Specific tokens involved in the transaction.</li><li><strong>Value:</strong> Amount of Ether (ETH) sent in the transaction.</li><li><strong>Transaction Fee:</strong> Total fee paid for the transaction in ETH.</li><li><strong>Gas Price:</strong> Price per unit of gas used by the transaction.</li><li><strong>Gas Limit &amp; Usage by Txn:</strong></li><li><strong>Gas Limit:</strong> Maximum amount of gas the sender is willing to spend on the transaction.</li><li><strong>Gas Usage:</strong> Actual amount of gas used by the transaction.</li><li><strong>Gas Fees:</strong> Calculated cost of gas used (Gas Used * Gas Price).</li><li>Base Fee: the minimum fee to be paid in the block.</li><li><strong>Max:</strong> the maximum fee the user is willing to pay.</li><li><strong>Max Priority:</strong> tip paid to incentivize miner to include transaction.</li><li><strong>Burnt &amp; Savings Fees: </strong>Burnt Fees: The base fee is burned (sent to 0x address) to secure the network (burned/destroyed).</li></ul><p><strong>Savings Fees:</strong> A portion of the gas fee that goes to the miner who included the transaction in a block. <em>Where Savings = max- base- priority * gas used.</em></p><ul><li><strong>Other Attributes:</strong> May include additional details specific to the transaction like type, nonce, and position in block.</li><li><strong>Input Data:</strong> Data associated with the transaction, often used for smart contract interactions. You can find a decode button if the ABI of the contract is provided.</li></ul><p>As you navigate Explorers, it is important to understand if the address being interacted with is a contract address or an EOA-externally owned address (user address). A contract address will usually have an input call data column, which contains additional details about the transaction.</p><h3><strong>Let’s talk about Input Data</strong></h3><p>Input data in an Ethereum transaction specifies the function being called and the arguments passed to that function. It’s essentially the message telling the smart contract what to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qUckwmM1akUZlKuB.png" /><figcaption><a href="https://etherscan.io/tx/0xd18bda36ce7e54659b38d6a2d50f0d89e070404148f42913898f51bd0203790e"><em>input call data</em></a></figcaption></figure><p><strong>Breakdown of Input Data Elements:</strong></p><p>The input data for an Ethereum transaction typically includes the following elements:</p><ul><li><strong>Function:</strong> The name of the function being called on the smart contract (e.g., swap).</li><li><strong>Address executor:</strong> The address of the contract involved in the transaction.</li><li><strong>Tuple desc (tuple description):</strong> This defines the data types of the arguments passed to the function. Tuples are collections of data that group related values together. In this context, they specify the expected data types (e.g., address, uint256) for the function’s arguments. Tuples are immutable, meaning their values cannot be changed after creation.</li><li><strong>Bytes data:</strong> This section contains additional information specific to the function being called. It’s encoded in bytes format for the smart contract to interpret.</li></ul><p><strong>Decoding Bytes Data:</strong></p><p>The decoding process involves understanding how the data is structured within the bytes. Here’s a breakdown:</p><ol><li><strong>Function Signature (Method ID):</strong> The first 8 hexadecimal characters (4 bytes) of the input data represent the function signature, also known as the method ID. This value is derived by:</li></ol><ul><li>Combining the function name and its input data types.</li><li>Taking the Keccak-256 hash of the combined string.</li><li>Extracting the first 4 bytes of the hash.</li><li>Displaying the extracted bytes in hexadecimal format.</li></ul><p><strong>2. Decoding Individual Parameters:</strong> After identifying the function signature, each remaining byte is decoded based on its position within the tuple desc. This involves interpreting each byte according to its corresponding data type (e.g., address, uint256) and assigned value.</p><p>In this Transaction, the methodID is decoded as 07ed2379, while its parameters are specified thus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8UmyeqpSb_9Indvk.png" /><figcaption><a href="https://etherscan.io/tx/0xd18bda36ce7e54659b38d6a2d50f0d89e070404148f42913898f51bd0203790e">decoded input data</a></figcaption></figure><p>Understanding how to decode input data is crucial for extracting deeper insights beyond what blockchain explorers provide. I plan to delve deeper into input data and share more details as I learn along the way.</p><p>My next guide will focus on understanding Event Logs. Be sure to follow along as we learn blockchain data together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6798c2e91828" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin Data Analysis]]></title>
            <link>https://medium.com/@thechriscen/bitcoin-data-analysis-3a6aa67bb9f8?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a6aa67bb9f8</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Thu, 01 Feb 2024 10:40:32 GMT</pubDate>
            <atom:updated>2024-02-01T10:40:32.714Z</atom:updated>
            <content:encoded><![CDATA[<p>The Bitcoin ecosystem has continued to capture attention due to significant developments, including the SEC’s approval of 11 spot Bitcoin ETFs, the rise of NFT ordinals, and the introduction of BRC-20 smart contracts on the Bitcoin network.</p><p>As a Data Analyst and Crypto Enthusiast, I’ve delved into <a href="https://dune.com/browse/dashboards">Dune Analytics,</a> querying the Bitcoin database to track essential onchain trends that can guide our investment decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mytdWEzXpLAQD1O3n5-kKg.png" /></figure><p>In this first part of my Bitcoin analysis report, I’ll present key insights from a Dune dashboard that covers fundamental metrics such as price, user activities, hash rate, block rewards, and miner’s lifetime revenue.</p><p>For a comprehensive view, you can explore my complete <a href="https://dune.com/thechriscen/bitcoin-analysis">Bitcoin Data Dashboard on Dune.</a></p><h3>BTC Price pushes above $42k</h3><p>The approval of spot Bitcoin ETFs appeared to trigger a “sell the news” event, prompting profit-taking by numerous whales as the price touched $49,000. Additionally, the Grayscale Bitcoin Trust (GBTC) experienced outflows of $429 million, leading BTC to reach a low of $39,000 within the last 14 days.</p><p>Despite this, insights from the BTC price chart below indicate an uptrend, reaching a high of $42,209 as of the time of writing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tsfK0nGSAv2wBqqC" /></figure><p>Inflows across all spot Bitcoin ETFs currently stand at $1.13 billion, suggesting more institutional demand for BTC while supply continues to shrink as we approach the next Bitcoin halving.</p><h3>User transactions hit 14 million.</h3><p>The health of a blockchain network is often gauged by user and developer activities. According to Dune data, transaction counts by users currently stand at 14.74 million, indicating growing momentum despite the sharp decline in the previous month due to price fluctuations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8tqayeQk_S0zAy5C" /></figure><h3>Bitcoin Hash rate and difficulty continue to rise</h3><p>Bitcoin’s proof-of-work (PoW) network demands robust computational power from miners, directly influencing the hash rate and mining difficulty.</p><p>The current hash rate stands at 523.918 EH/s, with mining difficulty at block height 827,468 reaching 70.34 T.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OEWSjmfOBZjyj-Rd" /></figure><p>The continuous rise in the mining difficulty and hash rate enhances the security of the Bitcoin network, making it incredibly hard for attacks.</p><h3>Bitcoin Miners earn $48 million in 24 hours</h3><p>Miners compete to approve transactions on the Bitcoin network, in exchange for rewards in BTC.</p><p>Dune Data reveals that in the past 24 hours, Bitcoin miners generated approximately $48 million, pushing their lifetime revenue above $861.5 billion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nrBrbPYmhWA_kjQV" /></figure><h3>Conclusion</h3><p>The approval of spot Bitcoin ETFs, along with the surge in user activities and the record-setting hashrate, presents a positive outlook for Bitcoin’s future despite short-term market fluctuations.</p><p>As we anticipate the 4th cycle of the halving, BTC supply will continue to shrink, and the price is expected to rise. The big question today is, how high can BTC soar from here?</p><p>Until next week, remember that…</p><p>Fortune Favours the Bold</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a6aa67bb9f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Data Strategy for Your Business]]></title>
            <link>https://medium.com/@thechriscen/creating-a-data-strategy-for-your-business-610506e646a2?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/610506e646a2</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-strategy]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Thu, 02 Nov 2023 11:03:01 GMT</pubDate>
            <atom:updated>2023-11-02T11:03:01.290Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s dynamic business landscape, leading companies such as Amazon, Netflix, Google, Walmart, Starbucks, and Tesla have distinguished themselves through the strategic use of their data.</p><p>Every business possesses data, but not all can leverage it effectively to enhance efficiency due to misalignment between business and data strategies.</p><p>The goal of a data strategy is to answer how the entire organization can use data to support business decisions and create a plan that integrates the roles of people, processes, and technology to make it a reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdE8Vn7uf-YKWYp6KbaDYQ.png" /></figure><h3>Creating an effective Data Strategy</h3><p>Data strategy refers to a comprehensive plan that outlines how an organization will collect, manage, store, process, analyze, and leverage data to achieve its business objectives.</p><p>In the section that follows, we will explore six key components that, when integrated effectively, can significantly enhance the efficiency and impact of your data strategy.</p><h3>6-step process for creating an effective Data Strategy:</h3><p><strong>1. Define your Business Strategy</strong></p><p>The first step in creating an effective data strategy is clearly defining the business objectives, which may include increasing revenue, reducing risk, or improving operational efficiency. Once the business objectives are defined, the next task is to align the data strategy with them.</p><p><strong>2. Data Audit</strong></p><p>At the core of building your strategy is data assessment. Businesses must evaluate their current database in light of their business goals. This helps identify missing data points and design a system to capture all relevant data needed to achieve the outlined business objectives.</p><p><strong>3. Data Architecture</strong></p><p>In this phase of the data strategy process, the goal is to define the required data model, data storage system, and data management processes. It creates a blueprint for collecting, storing, and managing data to achieve business goals.</p><p><strong>4. Data Governance</strong></p><p>Setting policies and processes to manage data effectively becomes crucial as businesses collect more data. This ensures data protection, restricted access for authorized users, and increased data reliability.</p><p><strong>5. Data Analysis</strong></p><p>The ultimate goal of business data is actionable insights, where data analysis comes into play. It involves collecting, cleaning, transforming, and modeling data to uncover useful insights and support business decision-making.</p><p><strong>6. Data Strategy Roadmap</strong></p><p>A clearly defined roadmap helps businesses execute their data strategy. It serves as a guide for aligning business objectives with relevant data strategy processes, tracking progress, measuring success, and allocating resources effectively.</p><p><em>As you look to integrate these 6 components into your business process, remember that a data strategy isn’t a one-time endeavor; it’s a dynamic, ongoing process that adapts and evolves with your business.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=610506e646a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating the Scope for Your Data Project]]></title>
            <link>https://medium.com/@thechriscen/creating-the-scope-for-your-data-project-5c55a31e50f1?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c55a31e50f1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Tue, 19 Sep 2023 20:08:24 GMT</pubDate>
            <atom:updated>2023-09-19T20:08:24.845Z</atom:updated>
            <content:encoded><![CDATA[<p>As a first step in building my data career, I thought it wise to start from first principles and understand the ‘why’ (data thinking) before the ‘how’ (using data analysis and visualization tools).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_w-ZOgvFA1bl_i1x1FLBg.png" /></figure><p>I found the book <a href="https://www.oreilly.com/library/view/thinking-with-data/9781491949757/"><em>‘Thinking with Data’</em></a> by Max Shron very instructive, and I’d like to share a few insights from my learning notes.</p><p>Many data professionals often focus too heavily on the tools and techniques of analysis, neglecting the thinking and reasoning skills essential to leverage data for solving business problems.</p><p>The typical data analyst begins with a dataset and then applies their favorite analysis and visualization tools, hoping to arrive at an effective business solution. A better approach is to begin by creating a comprehensive project scope that helps you address business problems with data intelligence.</p><h3>Using CoNVO to Create the Scope for Your Data Project</h3><p>The project scope is the total amount of work that needs to be done, including all tasks, deliverables, and resources required for the project’s goals and business objectives.</p><p>Max Shron introduces the CoNVO framework as a simple model for crafting the scope of your data project.</p><p>Using CoNVO, a well-defined project scope should include the context of the project, the needs that the project is trying to meet, the vision of what success might look like, and finally, what the outcome will be in terms of how the organization will adopt the results and how its effects will be measured down the line.</p><p><strong>Let’s break down the CoNVO model.</strong></p><p><strong>CONTEXT (Co)</strong></p><p>Behind every data problem, there is a context. This provides background information that allows the analyst to create a solution that captures the interest of all relevant stakeholders. The context seeks to answer questions like:</p><ul><li>Who are the stakeholders in the project and who benefits?</li><li>What are these groups trying to achieve?</li><li>What work or goal will this project contribute to?</li></ul><p>To understand the context of a project, you need to understand who you are working with and ask relevant questions that help you understand their long-term goals for the project.</p><p><strong>NEEDS (N)</strong></p><p>The needs of the project are all about identifying gaps that exist and finding ways to use data to intelligently fill the knowledge gap. Until you can clearly articulate the needs you are trying to address and how data solutions will help the organization meet its overall objectives, you won’t know why you are doing what you are doing in the data analysis process.</p><p><strong>VISION (V)</strong></p><p>Without a vision, it is impossible to meet the needs of any data project. The vision of the project helps define what success will look like. It is important to have a glimpse of what the end result of your data analytics process will be like before you start collecting, cleaning, and analyzing the dataset. Creating a simple graphical sketch or a sentence mockup is a good way to define your project vision. While the actual results may differ from your vision, it helps give you an idea of the results to expect so you don’t get lost in finding abstract answers.</p><p><strong>OUTCOME (O)</strong></p><p>The outcome of the project helps you identify how the results will be used and how success will be measured. It seeks to answer questions like: How will the results be used? How will they be integrated into the organization? And how will their success be measured?</p><h3>Putting It All Together</h3><p><strong><em>Project Goal: Create a Model to predict Customer Conversation</em></strong></p><p><strong>CONTEXT</strong></p><p>Consider a consumer product company that provides a service for free during the first 30 days. Its business model aims to provide such a useful service that after 30 days, as many users as possible will sign up for the continued service.</p><p><strong>NEED</strong></p><p>The company runs a number of tightly targeted ads, but it is not clear until around 30 days whether the ads are successful. In the meantime, it’s been spending tons of money on ads that might have been pointless. How can it tighten up the feedback loop and decide which ads to cut?</p><p><strong>VISION</strong></p><p>We will create a predictive model based on behavior and demographics that uses information available in the first few days to predict the lifetime value of each incoming user. Its output would be something like, ‘This user is 50% less likely than the baseline to convert to being a paid user. This user is 10% more likely to convert to being a paid user. This user… etc. In aggregate, all thousand users are 5% less likely than the baseline to convert. Therefore, it would make sense to end this advertisement campaign early, because it is not attracting the right people.’</p><p><strong>OUTCOME</strong></p><p>Deliver the model to the engineers, ensuring that they understand it. Put in place a pipeline for aggregating the cost of running each advertisement. After engineering has implemented the model, check back once after five days to see if the proportions of different predicted groups match those from the analysis. Select some advertisements not to be disrupted and check back in one month to see if the predicted percentages or dollar values align with those of the model.</p><p>A litmus test for the effectiveness of your project scope is that you should be able to hold a conversation with an intelligent stranger about the project, and they should understand (at a high level) why and how we accomplished the project’s vision and outcome.</p><p>By adopting the CoNVO framework and focusing on context, needs, vision, and outcome, you lay a strong foundation for any data project. So, whether you’re starting your data career or managing complex data projects, remember that it’s not just about tools and techniques but also about the thinking and reasoning that drive successful data solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c55a31e50f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The other side of AI]]></title>
            <link>https://medium.com/@thechriscen/the-other-side-of-ai-e92d44df8e94?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/e92d44df8e94</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Tue, 12 Sep 2023 12:27:53 GMT</pubDate>
            <atom:updated>2023-09-12T12:27:53.455Z</atom:updated>
            <content:encoded><![CDATA[<p>Technological advancements like artificial intelligence (AI) are tools that can be used for both good and evil, depending on who wields the knife. Despite its far-reaching economic and productivity benefits, caution is still needed as we integrate AI tools into our everyday lives.</p><p>To make the most of this revolutionary technology, we need to be fully aware of some of its unfavorable implications and invent strategies to make them work for our good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zs6FRFLhHvmmbjS6.png" /></figure><h3>Rise of deep fakes</h3><p>While AI tools are redefining how we create and consume media content, there are concerns that bad actors can manipulate the system to create false content that can spread misinformation, tarnish people’s images, and create chaos.</p><p>AI-generated <a href="https://twitter.com/EliotHiggins/status/1637927681734987777?s=20">images</a> of Former US president, Donald Trump emerged online on March 20, 2023, to show him in handcuffs behind bars. Such deepfake images generated by AI can be used to trick people online.</p><p>There is also a growing trend of AI clones, that replicate a person’s character, voice, and idea in the digital space. While there are economic benefits to this innovation, its abuse by bad actors could lead to increased deception as more people will trust fake news that is communicated through these AI clones.</p><h3>AI taking over jobs</h3><p>The transformation in AI development moves fast at an arithmetic rate, while human evolution follows a geometric progression. This has led to a widespread fear that AI will outpace human abilities.</p><p>Research by McKinsey &amp; Company <a href="https://www.mckinsey.com/featured-insights/future-of-work/ai-automation-and-the-future-of-work-ten-things-to-solve-for">indicates</a> that up to 400 million people are at risk of losing their jobs due to AI and automation technology by 2030. The implication is that more people need to embrace consistent upskilling to remain relevant in the AI revolution.</p><p>With more people at risk of losing their jobs, the unemployment rate will skyrocket, the poverty rate will be on the increase and cybercrimes may become the other of the day as more people struggle to fend for their daily upkeep.</p><h3>Information inaccuracy</h3><p>Google reportedly lost over $100 billion in share value after Bard- its AL chatbot provided <a href="https://www.businesstoday.in/markets/global-markets/story/google-loses-over-100-billion-m-cap-after-chatbot-bard-gives-wrong-answer-in-ad-369572-2023-02-08">inaccurate</a> information about which satellite first took pictures of a planet outside the Earth’s solar system. This scenario provides perspective on the damaging effect of relying on AI to provide crucial and sensitive information, only to discover that the responses are inaccurate. These might be due to flawed or biased data, which can lead to the dissemination of false information.</p><h3>Data and privacy concerns</h3><p>To make the most of many AI tools, you often need to customize your experience. However, this customization comes at the price of your personal data. If these data are not properly handled, there is an increased risk of data break and cyber attacks.</p><p>For example, US-based facial recognition company Clearview AI was <a href="https://nypost.com/2020/05/16/clearview-ai-sued-over-privacy-civil-liberties-issues/">sued</a> for allegedly harvesting people’s photos and data from social media platforms. A recent <a href="https://africa.businessinsider.com/news/a-lawsuit-claims-openai-stole-massive-amounts-of-personal-data-including-medical/l4elcfj">lawsuit</a> against OpenAI alleged that the leading AI company is scraping data from people who use ChatGPT directly and third-party apps that have integrated ChatGPT, such as Snapchat, Microsoft Team, etc.</p><h3>Emotional Displacements</h3><p>As AI applications like Chatbot become integrated into our favorite apps, it will be increasingly difficult to differentiate the emotions we communicate with machines and humans.</p><p>Social media apps like Snapchat are fast integrating AI features, which many people describe as creepy for their ability to offer relationship advice which may be harmful to the emotional health of the younger populations.</p><p>There is an increased need to apply safety measures and caution to AI integrations so they don’t end up filling the emotional needs we gain from other humans.</p><h3>Embracing a Human-first Approach</h3><p>Adopting technological advancements like AI comes with a new class of responsibilities. Companies leading the AI revolution and relevant authorities need to come together to ensure that AI tools are deployed in a safe and ethical way.</p><p>Furthermore, we need to take a more human-first approach to ensure that the AI tools we deploy are optimized to serve the good of humanity, without exposing us to challenges that threaten our existence.</p><p>In conclusion, we all need to consciously advocate for more human-to-human interactions as AI becomes integrated into our daily apps and business platforms. While AI can do the repetitive jobs done by humans, AI should never replace human connection and consciousness.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e92d44df8e94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing Human-AI Collaboration in the Future of Work]]></title>
            <link>https://medium.com/@thechriscen/embracing-human-ai-collaboration-in-the-future-of-work-ecbe0904dadd?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecbe0904dadd</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Tue, 12 Sep 2023 12:24:23 GMT</pubDate>
            <atom:updated>2023-09-12T12:24:23.590Z</atom:updated>
            <content:encoded><![CDATA[<p>The rise of artificial intelligence (AI) is no longer just a topic for tech enthusiasts; it is redefining the way we work and transforming everyday lives. Microsoft founder Bill Gates <a href="https://www.gatesnotes.com/The-Age-of-AI-Has-Begun">compares</a> its impact to the revolutionary power of the internet and mobile phones. PwC Global <a href="https://qz.com/1015698/pwc-ai-could-increase-global-gdp-by-15-7-trillion-by-2030-with-much-of-the-gains-in-china">estimates</a> that increased adoption of AI will contribute $15.7 trillion to the global economy by 2030.</p><p>To fully harness the potential of the AI revolution, we, as humans, must be prepared to adapt to the reality of displacement and shifts in our careers. According to a McKinsey Research <a href="https://www.mckinsey.com/featured-insights/future-of-work/ai-automation-and-the-future-of-work-ten-things-to-solve-for">study</a>, the advent of AI and automation could potentially lead to the displacement of anywhere from 400 million to 800 million individuals by 2030. On a more positive note, it is also anticipated that AI could facilitate the creation of between 555 million and 890 million new jobs.</p><p>While some fear job displacement, the synergy between humans and AI presents an exciting opportunity for us to shift our focus from repetitive tasks to more strategic, creative, and complex endeavors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WwwmQe8vej6upt2Z.png" /></figure><h3>Humans to Think, AI to execute</h3><p>To thrive in this evolving work landscape, individuals and businesses must be willing to experiment with AI tools to enhance their efficiency. Here are a few domains where humans can <a href="https://www.diamandis.com/blog/embrace-ai-face-extinction-exo">partner</a> with AI:</p><ul><li><strong>Text Generation &amp; Copywriting:</strong></li></ul><p>With AI tools, we can now effortlessly create personalized marketing content for social media and blog posts, as well as script compelling narratives for videos and ads.</p><p><em>Tools to explore:</em> ChhatGPT, Google Bard, Jasper, Copy.ai, etc.</p><ul><li><strong>Customer Experience &amp; Support:</strong></li></ul><p>AI-powered chatbots can automate customer service increasing efficiency and offering round-the-clock service. Incorporating sentiment analysis allows for empathetic customer interactions and improved experiences.</p><p><em>Tools to explore:</em> Anthropic, Cohere, Intercom, HubSpot Chatbot, etc.</p><ul><li><strong>Code Generation &amp; Debugging:</strong></li></ul><p>Software development is evolving with AI automating code writing, completion, and quality assurance. Real-time code suggestions save developers time and minimize errors, while generative AI assists in bug detection and repair.</p><p><em>Tools to explore:</em><strong><em> </em></strong>ChatGPT, OpenAI Codex, GitHub Copilot, &amp; AlphaCode.</p><ul><li><strong>Image Generation &amp; Editing:</strong></li></ul><p>AI is already revolutionizing image generation. With tools like Midjourney, we can easily generate hyper-realistic images for online stores and social media content.</p><p><em>Tools to explore:</em> Midjourney, Stable Diffusion, Adobe Firefly, DALL-E</p><ul><li><strong>Video Generation &amp; Editing:</strong></li></ul><p>By utilizing AI-generated images, text, and music, text-to-video tools can produce videos ranging from brief clips to full-length films. All you have to do is to describe your intent for the video and the AI tool will do the magic for you.</p><p><em>Tools to explore:</em><strong><em> </em></strong>Pictory, Invideo, Descript, Synthesia, &amp; Lumen5.</p><p>As the future of work evolves due to the AI revolution, adapting to change is of the essence. Lifelong learning becomes an essential strategy to maintain relevance and adaptability. Investing in upskilling and reskilling opportunities will empower you with the skills required to collaborate effectively and harness the full potential of AI technologies</p><p><em>In the endgame, remember that AI will not take away your job; only those who understand how to collaborate with AI will take control of the jobs.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecbe0904dadd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing the right Mindset to Thrive in the AI Revolution]]></title>
            <link>https://medium.com/@thechriscen/embracing-the-right-mindset-to-thrive-in-the-ai-revolution-cec93c4cb138?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/cec93c4cb138</guid>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Wed, 30 Aug 2023 12:23:16 GMT</pubDate>
            <atom:updated>2023-08-30T12:23:16.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K5rsGCJvL8tiVQAX95xfxw.png" /></figure><p>Barely a week after ChatGPT was launched back in November 2022, I received a message from my former boss stating that my workload and paycheck would be slashed by about 50% because ChatGPT would be used to automate some of my writing responsibilities. Initially, I dreaded having a meaningful conversation about AI due to its role in my eventual job loss. However, AI has become an unstoppable force to which we all have to adjust, leveraging its impact to build a more meaningful future.</p><p>Artificial intelligence (AI) is rapidly transforming the world around us, and its economic implications are profound. On one hand, AI has the potential to boost economic growth and productivity, creating new jobs and opportunities. On the other hand, AI could also lead to job displacement and increased inequality.</p><p>The way we think about AI will have a major impact on how we navigate this transition. If we adopt a fearful and pessimistic mindset, we are likely to miss out on the many benefits that AI offers. But if we embrace AI with an open mind and a positive attitude, we can position ourselves to thrive in the AI revolution.</p><p>To excel in the AI revolution, I believe that individuals and businesses can adopt a dynamic mindset grounded in <em>experimentation, upskilling, and lifelong learning.</em></p><h4>Experimentation with AI Tools</h4><p>Central to thriving in the AI revolution is the willingness to experiment with AI tools. This means exploring AI applications relevant to our domains, testing, and adapting them to suit specific needs. It also means being open to new ideas and approaches and being willing to fail in order to learn.</p><p>For example, a content creator could experiment with using AI tools to write copies, create images, and videos. Leveraging AI tools will help improve the quality of their work and contribute to their overall efficiency.</p><h4>Investing in Upskilling</h4><p>A McKinsey <a href="https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier#key-insights">report</a> revealed that by 2030, 375 million workers (14% of the global workforce) may need to switch occupational categories due to automation and AI. Consequently, as AI continues to evolve, some jobs will become obsolete. However, new jobs will also be created, and those who can upskill will be well-positioned for these new opportunities.</p><p>While some people who engage in repetitive writing-related tasks are being displaced, more people are securing jobs in the AI economy by learning new skills relevant to AI, such as data science, machine learning, or natural language processing.</p><h4>Embrace Lifelong Learning</h4><p>There is always something new to learn about AI as it’s a rapidly evolving field. If you are curious and willing to learn, you will be able to stay ahead of the curve. This means investing in continuous learning, whether through formal education, online courses, or simply reading about AI developments.</p><p>For example, a software engineer who wants to stay ahead of the curve in AI could take a course on machine learning. They could also read articles about AI research or follow AI experts on social media. This will ensure that they have the skills they need to thrive despite disruptions caused by the AI revolution.</p><p>From my experience, taking time to address my concerns, invest in upskilling, and integrate AI tools into my workflow has become a game changer. I am now in a better position to identify and build solutions that can help individuals and businesses increase their productivity and profitability.</p><p>In the endgame, the AI revolution is just beginning, and the way we think about AI will have a major impact on our future. Instead of having a pessimistic view, we can adopt a dynamic mindset grounded in experimentation, upskilling, and lifelong learning, allowing us to thrive in this new AI age.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cec93c4cb138" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Allbridge: Building bridge for all Bridges]]></title>
            <link>https://medium.com/@thechriscen/allbridge-building-bridge-for-all-bridges-8c84fbab37c8?source=rss-e76e71afe512------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c84fbab37c8</guid>
            <dc:creator><![CDATA[Christian Nwobodo]]></dc:creator>
            <pubDate>Wed, 22 Jun 2022 14:34:40 GMT</pubDate>
            <atom:updated>2022-06-22T14:36:39.457Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*M96AawgSoOd2eXeQ.jpg" /></figure><p>The Layer-1 summer of 202 ended “the single-chain rule them all” argument, as we saw many alternative smart contract platforms gain so much traction. Over the last year, the total value locked (TVL) across layer-1s and scaling solutions increased from $18 billion to about $250 billion, indicating an increased migration of users from Ethereum to other networks, leaving Ethereum to control roughly 60% of the market share. This clearly indicates that crypto is moving towards a multi-chain market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*uxq5Gzm0NOZjWiXS" /></figure><p>The shift to a multi-chain market is an effort in the search for a solution to the <a href="https://vitalik.ca/general/2021/04/07/sharding.html">Scalability trilemma</a>, as coined by Vitalik Buterin. According to Vitalik, “there are three properties that a blockchain tries to have: scalability, decentralization, and security, but, if you stick to ‘simple’ techniques, you can only get two of those three.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Zl0s86LKgWIvw0Qj" /></figure><p>By implication, all networks have to make a trade-off between being fully decentralized, secure, or scalable. For example, while Ethereum focuses on decentralization and security, over scalability, Solana achieves scalability and security at the expense of decentralization. The need for trade-offs has resulted in a fragmented market of over 100 public blockchain networks, which still need to communicate amongst themselves to share assets and information. Bridges are rising to foster these communications.</p><p>Blockchain bridges enable the transfer of assets and information between one network and another. In a<strong> </strong>multi-chain world<strong> </strong>where blockchains can ‘trade’ information with each other through bridges, it is now possible to apply <a href="https://en.wikipedia.org/wiki/International_trade_theory">‘the trade theory’</a> to the crypto economy. Using the Ethereum-Solana as an example as described by Michiel Van, “we can run compute-intensive applications such as derivatives on Solana and process critical transactions on Ethereum.”</p><p>Building simple and effective cross-chain bridges will enable users to access new platforms across chains with their assets, protocols to interoperate with each other, and developers to build out new features and products. This is a novel path, that Allbridge is seeking to walk on and foster a new market for the multi-chain sector through its cross-chain bridge.</p><h3>Introducing Allbridge</h3><p>Allbridge was initially launched as Solbridge in July 2021 by the APYSwap foundation, as a bridge for the Solana network. The renaming was necessary since the team transitioned from designing a Solana-only bridge to a cross-chain bridge for transferring assets and liquidity across different blockchain networks.</p><p>The protocol works as a cross-chain bridge, allowing assets to be transferred across Ethereum Virtual Machines (EVM), Layer-2, and non-EVM compatible blockchains, with the goal of eventually supporting Non-Fungible Token (NFT) transfers. Polygon was the first EVM-compatible network to be bridged to Solana via the protocol when it launched. In less than one year of its launch, it has facilitated over $5 billion in transactions across different blockchains like Ethereum, BSC, Solana, Polygon, Avalanche, Aurora, Harmony, Terra, Celo, Fantom, HECO, Fuse, and Near protocol.</p><h3>How does Allbridge work?</h3><p>In order to use the Allbridge protocol for bridging any asset, users have to connect their wallets and execute a send transaction on source blockchain A and a receive transaction on destination blockchain B. The transaction’s completion time is determined by the underlying transaction speed between the two blockchains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*51P7pTVnQX61tEaO" /></figure><p>To get a better understanding of the inner workings of Allbridge, let us consider the following components of the protocol:</p><ul><li>Cross-chain Token transfer</li><li>Validators</li><li>Bridge Fee</li></ul><p><strong>Cross-Chain Token Transfer</strong></p><p>To undertake a cross-chain token transfer, users need to connect their wallets and send a transaction from a Source blockchain while initiating a receive transaction on the Destination blockchain. To complete the transaction, there are four possible token transfers that can happen through the protocol:</p><ul><li><strong>Send native tokens and receive native tokens:</strong> Native tokens are locked on blockchain A and unlocked on blockchain B. This works similar to a DEX with two liquidity pools facilitating a swap.</li><li><strong>Send native tokens and receive wrapped tokens:</strong> Native tokens are locked in the liquidity pool on blockchain A, and wrapped tokens are minted on blockchain B.</li><li><strong>Send wrapped tokens and receive native tokens: </strong>Wrapped tokens are burned on blockchain A, and native tokens are unlocked from the liquidity pool on blockchain B.</li><li><strong>Send wrapped tokens and receive wrapped tokens:</strong> Wrapped tokens are burned on blockchain A, and minted on blockchain B.</li></ul><p>Finally, a series of requests must be made between the user, the smart contracts on both blockchains, and the validators in order for the transaction to be signed off as complete.</p><p><strong>Validators</strong></p><p>To confirm bridging transactions, Allbridge uses an on-chain validator consensus. If money were received in the Source blockchain smart contract, the Validator delivers its signature to the User; however, if funds were not received in the smart contract, the Validator responds with the message “Transaction not found.” Validators are paid a fair proportion of the fees collected for each completed transaction.</p><p>The basic requirements for becoming a Validator for the protocol are setting up servers to host validation nodes, as well as staking enough ABR tokens.</p><p><strong>Bridge Fee</strong></p><p>The bridge fee, which is a cost that users pay for each bridge transfer from the send transaction on the Source blockchain, contributes to the protocol’s revenue. For each transaction, the bridge fee is calculated separately from the needed gas fee.</p><p>Users without staking in the protocol pay a fixed percentage charge of 0.3% of the tokens they are transferring, whereas Stakers pay a dynamic percentage cost dependent on the amount of xABR they have on the Sending blockchain.</p><h3>Tokenomics</h3><p>The Allbridge ecosystem is powered by the ABR and xABR tokens. ABR as its utility token is used to pay for token subscriptions and bridge fees, as well as staking by Validators and protocol users. The token will also be necessary to participate in the protocol’s governance as the protocol evolves towards a DAO structure.</p><p><strong>Token Subscription Fee- </strong>For a token to be listed on Allbridge, the project will have to pay a monthly subscription fee in ABR and have their token appear on Allbridge automatically anytime their subscription is renewed.</p><p><strong>Bride Fee- </strong>Bridge fees are paid in ABR from the blockchain that is initiating the transfer before the transaction is approved. These fees are reduced for users who stake their ABR for xABR.</p><p>Stakers and the Allbridge team split the revenue earned by the bridge and token subscription fees, with Stakers getting 80% and the Allbridge team getting 20%.</p><p><strong>Staking- </strong>Users can stake their ABR token in return for one-for-one xABR tokens, representing their portion of the staking pool. Stakers are compensated through fees and incentive programs. When more incentives are added to the staking pool, the number of ABR grows, and xABR becomes more valuable than ABR. When users unstake their tokens, they receive more ABR than initially locked, the xABR tokens will be burned in exchange for ABR. This mechanism creates more yields for stakers on Allbridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*4QWXTc0eTpqXJQz6" /></figure><p>On how the ABR token is distributed, Allbridge conducted a public sale via Boca Chica and SmartPad, where it issued 0.0625% of the total supply of 100000000 ABR tokens for sale at the price of 0.2 USDT per token, thereby raising 125000 USDT as revenue. A further breakdown of its token distribution is described in the chart below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*a3MnOJcwlxFqn3nB" /></figure><h3>State of the Allbridge ecosystem</h3><p>The Allbridge ecosystem has reported consistent growth in its vision and product development over the eight months. According to its <a href="https://drive.google.com/file/d/1tUK-oKF7MAZj-ylZq9RKAzHGiKX2xK-D/view">January report,</a> a total of $5.3 billion has been bridged across 132 blockchain pairs- a 117% increase from the $2.3 billion earlier reported in October. In January alone, it facilitated over 7000 transactions, which returned a total of $264,846 as revenue from fees. Solana is evidently the most active network, with over 26,000 transactions recorded on it. Its current total value locked (TVL) sits at a little above $285 million.</p><p>On its product development front, the project has launched <a href="https://info.allbridge.io/">Allbridge Analytics</a>, which provides a single source of truth to view the health of the project using on-chain data. As of May 2022, the protocol provided support for 14 networks including Near, Polygon, and Aurora. To further improve the scalability and security of the protocol it raised $2M in a round led by Rari Capital.</p><h3>Competition &amp; Challenges for Allbridge</h3><p>There has been an increased demand for bridging infrastructures with the rise of alternative smart contract platforms. For the records, there are currently more than 40 different bridging projects with a <a href="https://medium.com/1kxnetwork/blockchain-bridges-5db6afac44f8">different design focus</a>. Allbridge is considered a general-purpose protocol, specifically designed for transferring information across multiple blockchains.</p><p>A closer look at these bridging projects indicates that bridges to Ethereum have experienced the highest level of inflow, with over 57,000 unique visitors in January of 2022. Avalanche bridges hold the highest TVL at $5.9 billion, while Polygon and Fantom (Anyswap) bridges hold $5 billion and $4.2 billion, respectively. The bridging market started off in April 2021 with barely $0.7 billion TVL, but currently has more than $22 billion worth of assets in TVL.</p><p>This data shows that there is enough market share to be captured by cross-chain protocols like Allbridge, as long as they are able to weather the security challenges facing the bridge market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*B50CKnRvOEWIWXCO" /></figure><p>Amidst the growing demands for bridges, <a href="https://twitter.com/vitalikbuterin/status/1479501366192132099?lang=en">Vitalik Buterin</a> had earlier expressed his pessimism about the future of cross-chain applications, on the grounds of security and the incessant hacks and illicit activities associated with bridging infrastructure.<strong> </strong><a href="https://www.bnbchain.world/en/blog/beyond-the-big-bang-security-report/">According to PeckShield</a>, bridges were hacked for a record high of $644 million in Q3 2021. This includes the $611 million stolen from Poly Network in what is likely the most significant theft in DeFi history — even though the funds were returned a few weeks later. In addition, the study found that $147 million, or 55% of illicit assets, were cashed out through cross-chain bridges in the first six months of 2021. These reports call for caution as the cross-chain market continues to grow.</p><p>As for Allbridge, it undertook an audit performed by blockchain security consultant Hacken in October 2021, which found its code to be well-secured. The team has also drafted out several measures to upgrade its security, such as ordering additional security audits, implementing a kill switch, and limiting the outbound transactions.</p><h3>Closing Thoughts</h3><p>In less than a year of launching the Allbridge mainnet, it has bridged over $6.2 billion and integrated with 14 networks. These numbers for a one-year-old project are enough to tell how many opportunities abound for blockchain bridging infrastructures, as the crypto economy advances towards a multi-chain world. In the short term, Allbridge has won much applause, however, its sustainability will be tested by its ability to build lasting solutions to address the challenge of insecurity and hacks that has undermined the efficiency of many bridging protocols. Only then can Allbridge be accorded the status of being the bridge for all bridges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c84fbab37c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>