Making Sense of Ethereum Transaction History With Etherscan
Tags: ethereum, subtopic, dapps
Published: 2020-03-02 20:21:51

---
title: Making Sense of Ethereum Transaction History With Etherscan
published: true
date: 2020-03-02 20:02:49 UTC
tags: Ethereum,subtopic,dapps,ethereum
canonical_url: https://blog.coincodecap.com/ethereum-transaction-history-with-etherscan/?utm_source=rss&utm_medium=rss&utm_campaign=ethereum-transaction-history-with-etherscan
---

Let’s say you’re executing a _lot_ of [Ethereum](https://blog.coincodecap.com/tag/ethereum/) transactions, some manually and some scripted. When the dust settles, you need to make sure that everything went perfectly because a lot is riding on it. What’s the best way to satisfy yourself that it all went down as planned?

#### A Flurry of Activity

I recently spent about 26 hours engaged in what is arguably the most intense set of network interactions of my entire career. The stakes were high, and the clock was ticking.

The job? 

Deploy four smart contracts to the [Ethereum](https://blog.coincodecap.com/tag/ethereum/) mainnet and prepare them with their initial state data.

The next day we were to open our “Founders sale” on [Open Sea](https://opensea.io/assets?query=avastars), the leading NFT marketplace. Our [Discord](http://discord.gg/avastars) was going bonkers. Buyers were queued up like the teeming masses pressed against a Target storefront on Black Friday morning. _When does the sale start???_

Each of the contracts has a set of management roles associated with it that need to be set to the right wallet addresses, or control of them could be lost entirely.

#### The Gas Cost

The [gas](https://www.investopedia.com/terms/g/gas-ethereum.asp) cost alone to initialize the data on one of these contracts amounted to over $1,700 and over 1000 scripted transactions. If a single transaction failed, I had to restart the script so that I couldn’t go to sleep.

Gas prices fluctuated during this long march. Therefore, each time I restarted the script, I needed to check the current gas price and determine if I needed to give each Ethereum transaction more gas so that it would complete faster. But not too much, or we’d be overspending.

The project was [Avastars](https://avastars.io), a collectible NFT effort I’d been working on non-stop for the previous seven months, and into which [my client](https://www.nft42.com/) had a lot of time, money, and reputation invested.

And the thing about Ethereum [smart contracts](https://blog.coincodecap.com/tag/smart-contact/) is, once they’re deployed, they’re immutable. You can’t fix a bug on a contract without redeploying it and moving over all the state from the old contract, also an expensive and tedious process.

Failure was, needless to say, not an option. 

#### When Things Went South

Meanwhile, at my terminal, everything that could go wrong did go wrong. And, it seemed, everything that _couldn’t_ go wrong _also_ went wrong. 

I kid you not, midway through the process, my router was hit with a sustained DDOS attack, taking my network offline for several hours. I switched to my cellphone’s hotspot and forged on.

In the end, the contracts were deployed, their states successfully initialized, and all was, seemingly well. I even took the next day off and relaxed (if you can call wrestling with the layout of a [tech book](http://amazon.com/Building-Ethereum-Solidity-Cliff-Hall/dp/1734552107) all day relaxing).

Now, a little less than a month later, Avastars is the number 6 project in 7-day trade volume on Open Sea. And this is just from the initial promotional NFTs that I minted during that arduous session.

![Avatars at OpenSea DappRanking](https://cdn-images-1.medium.com/max/2600/1*tkPgKDQKMwqykS5fCI1hiA.png)<figcaption>#6 with a bullet, baby</figcaption>

### Analyzing the Ethereum Transaction History

Before I could relax, though, I had to be certain I hadn’t missed anything in my sleep-deprived, over-caffeinated haze.

I had created the bulk of my transactions with a handful of Node scripts that I tested locally and on two public testnets (Rinkeby and Ropsten). 

Of course, they generated [reasonable](https://github.com/Dapp-Wizards/Avastars-Contracts/blob/master/data/promos/create-promos.mainnet.txt) [logging](https://github.com/Dapp-Wizards/Avastars-Contracts/blob/master/data/traits/create-traits.mainnet.txt) [output](https://github.com/Dapp-Wizards/Avastars-Contracts/blob/master/data/traits/verify-traits.mainnet.txt). That feedback gave me confidence that what I had intended to happen had _probably_ happened. 

But the transactions themselves are public, and the blockchain is the ultimate source of truth. Once the deal is done, analyzing those transactions is the best way to be sure that everything we intended to do took place.

#### Etherscan comes to the rescue 

Currently, the best tool for browsing transactions on the Ethereum blockchain (that I know of) is [Etherscan.io](https://etherscan.io?utm_source=coincodecap.com). But when you look at the transactions, it’s not always easy to follow.

![Transaction history on Etherscan](https://cdn-images-1.medium.com/max/2600/1*ni4hfVFCFViyIiAuZCoN9w.png)<figcaption>Transaction history, public view, etherscan.io</figcaption>

Now, if you recognize the contract and wallet addresses, you can follow this. The leftmost number/link is the unique Ethereum transaction hash. Columns 4 and 6 are the _from_ and _to_ addresses. Still, it’s cryptic. You need to dive into one transaction, review it, pop back out, view another, try and remember which one was the ‘setAdmin’ call and which was ‘setOwner’. You could make a printout and scribble notes on it.

Or, what if you could transform the important wallet and contract addresses to meaningful names? And make notes about which transactions did what.

Well, surprise, you can. All you have to do is create an Etherescan login.

Being an anonymously browsable public service, I think many people don’t bother to do this. But if you do, a whole world of possibilities opens up. You can tag wallet and contract addresses with names, add notes to each Ethererum transaction, making the history far more navigable, and much more.

Below is that same set of transactions, annotated. See the difference.

![Annotated Transaction history](https://cdn-images-1.medium.com/max/2600/1*wnkn5OQ68BfaT1IOazc9RA.png)<figcaption>the same transaction history, logged in, with address tags and transaction notes.</figcaption>

When you create an account and are logged in, if you click an address link to look at its transaction history, you’ll see the option to add a tag.

![](https://cdn-images-1.medium.com/max/2600/1*V13TZT9YDsQhSansXat8Yw.png)<figcaption>To add a name tag to a viewed contract or wallet address, click the “Update?” link under “More Info”.</figcaption>

When logged in, if you view a transaction, you can enter a private note in the box at the bottom of the form, like so…

![Add a note to a viewed transaction.](https://cdn-images-1.medium.com/max/2600/1*SVYmzH-AHJVWj9_1Fv8hhA.png)<figcaption>Add a note to a viewed transaction.</figcaption>

### Summary

Clearly, Etherscan is looking out for all our best interests, let us browse the blockchain and annotate it for our personal edification, all for free.

![Private Transaction notes](https://cdn-images-1.medium.com/max/1000/1*pl_yfeQDdKf1bDjq3wN2sw.png)<figcaption>Private Transaction notes</figcaption>

![Private Address Name Tags](https://cdn-images-1.medium.com/max/1000/1*Ux_gcqEzbXQSpTwEy1Ie3A.png)<figcaption>Private Address Name Tags</figcaption>

With a simple email/password secured account, you can add tags to contract and wallet addresses so that they’re more recognizable in a list.

 And when you add notes to a transaction, they appear under the transaction hash in lists, making the sequence of events clear. 

However, only I can see my tags and notes. They help me make sense of what has happened. But I’d love to see this markup be sharable with others. There may be privacy concerns involved with that, though, so we’ll see how Etherscan handles this functionality in the future.

In the meantime, if you do a lot of Ethereum transactions and need to analyze them afterward, you’ll want to be sure you have an account on Etherscan and leverage their tags and notes functionality.

**Attribution**

> **This article is contributed by [Cliff Hall](https://cliffordhall.com/)**.

**Also, Read**

- [**Top 10 Ethereum Newsletter**](https://blog.coincodecap.com/ethereum-newsletters/)
- [**Flash Loans — Borrow Without Collateral**](https://blog.coincodecap.com/what-are-flash-loans-on-ethereum/)
- **[What are Dapps? (An ultimate guide)](https://blog.coincodecap.com/what-are-dapps-an-ultimate-guide/)**
- [**An ultimate guide to Bitcoin Paper Wallet**](https://blog.coincodecap.com/what-is-bitcoin-paper-wallet/)


The post [Making Sense of Ethereum Transaction History With Etherscan](https://blog.coincodecap.com/ethereum-transaction-history-with-etherscan/) appeared first on [CoinCodeCap Blog](https://blog.coincodecap.com).