Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company, and our productsAsk questions, find answers and collaborate at work with Stack Overflow for Teams.
Try Teams for free Explore Teams TeamsAsk questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsI'm working with my metamask wallet to interact with my DApp. While reading about data in Ethereum, I read that the blocks in the chain do not store any account information. It will have only transaction details. So when we create a new account with practically no transaction, how come it shows up in the EtherScan? Is creating a new account a transaction in the blockchain? If so, does it consumes gas?
metamask gas wallets etherscan ethereum-wallet-dapp Share Improve this question Follow asked Nov 9, 2023 at 10:25 Valli Nayaki Chidambaram Valli Nayaki Chidambaram 11 3 3 bronze badges 1 1 The addresses are not created, they are already present. We just calculate the private key and start sending transactions. It s not like we generate the address. We just get the private key of a random address. – Zartaj Afser Commented Nov 9, 2023 at 10:44 Add a comment |nice to meet you.
In Ethereum, creating a new account is not a transaction and doesn't consume gas because it happens off-chain on your device.
Your new account shows up on Etherscan because it's a public address that can be derived from your private key.
However, this new account won't have a transaction history until it interacts with the Ethereum network, for instance, by sending or receiving Ether or interacting with a smart contract. These actions are transactions and do consume gas.
Thanks.
Share Improve this answer Follow answered Nov 9, 2023 at 10:49 Ari Setiawan Ari Setiawan 354 3 3 silver badges 11 11 bronze badges Add a comment | 1Dev Advocate at Chainstack here!
Imagine you're given a lock that has never been used, and you create a unique key for it. In Ethereum, creating an account is like crafting this unique key, known as a private key . Now, here's a fascinating aspect of Ethereum: the lock—your account —already exists in the world of Ethereum! It's not that you create a new lock; you just make a key that perfectly fits into one of the countless locks floating in the Ethereum universe.
The Universe of Addresses : Ethereum has many possible addresses (like locks waiting to be opened), and they all technically exist from the beginning. They're just waiting for someone to claim them by generating the corresponding private key.
Generating Your Key : When you use a wallet like MetaMask, it randomly generates a private key for you. This private key then mathematically determines your public Ethereum address (the lock). But here's the catch: it remains invisible on the blockchain until you do something with that account, like sending or receiving funds (turning the key in the lock).
You can find more info on how this works with MetaMask in this article I wrote: MetaMask under the hood—not just a crypto wallet
The Role of Transactions : Think of the blockchain as a ledger. It only records events that happen, like transactions. Nothing will be recorded if your account hasn't been involved in any transactions.
How Etherscan Comes Into Play : Blockchain explorers like Etherscan are like detectives with a master list of all possible locks and keys. If you give Etherscan a lock (an address), it can acknowledge that this is a valid lock. However, without any transactions, Etherscan won't have any history of that lock because it hasn't been a part of any recorded events.
Gas Fees and Account Creation : Creating an Ethereum account doesn't require gas. Gas comes into play when you want to make a transaction—when you turn the key and interact with the lock, which becomes part of the blockchain's recorded history.
When you create a new Ethereum account, you're not carving out a new space on the blockchain. Instead, you're just claiming one of the myriad pre-existing spaces by creating a key for it. No gas is needed until you decide to make a transaction and leave your mark on the Ethereum history book.
Feel free to reach out any time!
Share Improve this answer Follow answered Nov 9, 2023 at 13:32 Dave Dev Advocate Chainstack Dave Dev Advocate Chainstack 1,797 4 4 silver badges 20 20 bronze badges Add a comment |To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2025.1.7.20880