Skip to main content
16 votes
Accepted

LevelDB in Geth, key and values

Let's start with having a look at what we get in geth console for block number 40. Now let's consider a Go program. I Explained everything in code comments about how it is constructing keys and ...
Vishal Sharma's user avatar
12 votes
Accepted

Can chaindata be split across two (or more) locations?

Geth has a freezer as of v1.9 https://blog.ethereum.org/2019/07/10/geth-v1-9-0/ Freezer Wouldn’t it be amazing if we didn’t have to waste so much precious space on our expensive and sensitive SSDs to ...
eth's user avatar
  • 85.9k
4 votes

how to Get All tokens against a specific Walllet Addresse?

Here is an article that explains how to retrieve the balance of all ERC20 tokens from a wallet. It works with multiple blockchains (Ethereum, BNB, Polygon, Avalanche) and you can even check in a ...
Antonio U's user avatar
  • 649
3 votes
Accepted

I can no longer access old blocks via RPC in full syncmode?

Update: I had originally thought the OP's question was about stored state, but have since realized that even the block headers seem to be unavailable. Answers have been edited a bit to reflect this, ...
The Renaissance's user avatar
3 votes

Where does Turbo Geth store its data files?

On the Mac, I found the data folder in ~/Library/TurboGeth. You can change the location with the --datadir setting. On Linux, the location is ~/.local/share/turbogeth
Thomas Jay Rush's user avatar
3 votes

Is it possible for multiple geth processes to share chain data?

I don't think that is possible, because it will completely break the goal of the ethereum network and may (and should) break the integrity and network validation of transactions and stored data on the ...
Kaki Master Of Time's user avatar
3 votes

Can we create a token with some data inside it?

This is possible with ERC721 tokens and is built into to spec itself in the form if metadata. You cannot do this with ERC20 tokens, as there is no way to differentiate between individual tokens ...
Shane Fontaine's user avatar
3 votes

Is it possible for the miner of a block to be address 0x0?

If you look at the etherscan page of that address you will see there are several blocks mined by it and it also have uncle blocks too. From the protocol definition any sequence of 20 bytes is ...
Ismael's user avatar
  • 30.5k
3 votes

How is Ethereum Blockchain immutable?

A blockchain is based on consensus. If you change data from your local node, it doesn't change the data of the whole distributed blockchain. You'll just have a different blockchain than everyone else. ...
Teleporting Goat's user avatar
2 votes

LevelDB in Geth, key and values

I think keys are needed to organize tree - to know how to move nodes in trie without knowledge of stored information, read about Patricia-Tree. In examples, they use keys to organize trie.
Gudsaf's user avatar
  • 317
2 votes
Accepted

get back to Ropsten: reclaim address after deletion of genesis block & /testnet/geth/chaindata

Try the following, from If you need some Ropsten Testnet ethers...: geth --testnet removedb geth --testnet --fast --bootnodes "enode://...
BokkyPooBah's user avatar
  • 40.3k
2 votes

Copying Private chain data to another private chain

So you basically want to do a backup & restore. I've been looking into this, to update our genesis configuration for a private Parity chain, but never go to actually try it. As far as I know there'...
wslyvh's user avatar
  • 488
2 votes

Can chaindata be split across two (or more) locations?

You can move the ancient database into separate disk volumes, which can be HDD. It shrinks the blockchain data directory approximately twice times lower. Use --datadir.ancient option. You may delete ...
Roman Shishkin's user avatar
2 votes

How is Ethereum Blockchain immutable?

You have a private blockchain, but you need to understand the public Ethereum blockchain to understand its immutability. The Ethereum blockchain is a Decentralized Application (Dapp). Unless you are ...
Ether Dude's user avatar
2 votes
Accepted

Does blockchain state information take up space?

The question is, does all this new data take up space or it simply rewrites data in each block leaving the chain data size unchanged? There are two normal operating modes for Ethereum nodes: full ...
Mikko Ohtamaa's user avatar
2 votes

Is there a method to prove that data has been fetched from a block on a blockchain?

It's all about the context. A block header contains various information. Proving that all of that is plausible in a given block requires that the previous block hash is also correct. So you need to be ...
Lauri Peltonen's user avatar
2 votes

Is there a method to prove that data has been fetched from a block on a blockchain?

If the requirement is without checking the Blockchain, the short answer is no. When you say, to prove that data has been fetched from X, it means the information exists on X. And the Blockchain is the ...
Giuseppe Bertone's user avatar
1 vote

How to determine whether an address is an EOA or a contract address?

Unfortunately, I could not find the precise details on the data presented in the dataset. The links from this page did not work for me. But the only correct way to find whether an account is an EOA is ...
Stanislav Breadless's user avatar
1 vote
Accepted

Get all transactions from blocks in a range of blocknumbers web3

web3.eth.getBlock(i) is an asynchronous function, you should either use a callback or async / await. Because you are not waiting for the result, you get undefined simply because there is no result (...
hroussille's user avatar
  • 7,741
1 vote

How to access mainnet data on Rinkeby?

You can't do it via rinkeby, but you can do it on your own local chain using the mainnet forking tools like hardhat has: https://hardhat.org/hardhat-network/guides/mainnet-forking.html
thefett's user avatar
  • 3,910
1 vote

Getting count of Ethereum transactions per day

You could try getBlockTransactionCountByNumber RPC method to get the number of transactions in a block. You can query Infura (or any other RPC provider) for each block that's been minted and create an ...
pbsh's user avatar
  • 2,471
1 vote
Accepted

AnyswapV5ERC20 deployment - set totalSupply

So basically Andre Cronje is saying that in order to have token compliant with the cross-chain swaps your token must inherit the AnyswapV5ERC20 class from the AnyswapV5ERC20.sol. contract ...
Hristo Todorov's user avatar
1 vote

Ethereum raw transaction structure

0x // https://eth.wiki/fundamentals/rlp for more on f8 // 0xf8-0xf7=1byte=2 chars which tells you next 2 chars is the length of the paylaod f8 // length of payload. 0x69=105bytes=210 chars. 69 // ...
Yilmaz's user avatar
  • 1,705
1 vote

What exactly is the role of Oracles like Chainlink in decentralized insurance?

Firstly I think its important to define what an oracle is first. As per Wikipedia, A blockchain oracle is a third-party service that provides smart contracts with information from the outside world. ...
AvocadoChocolate's user avatar
1 vote

Geth Fatal: Error starting protocol stack: gap in the chain between ancients and leveldb

As you say, upon issuing the "geth removedb" command, choose only to delete the leveldB and not the ancient dB. Then restart geth. If the ancient dB is not corrupted it will indeed rebuild ...
Stephen Hodgkiss's user avatar
1 vote

Can chaindata be split across two (or more) locations?

If you are trying to build an archive node you can follow some tricks outlined here: https://github.com/allada/bsc-archive-snapshot This is for the binance chain, but it should also apply to ethereum ...
ALL's user avatar
  • 11
1 vote
Accepted

Some transactions dated as 1970

You probably mean traces, not transactions. There are 8893 traces with zero timestamp (1970-01-01 00:00:00 UTC) that correspond to 8893 initial balances hardcoded into Ethereum Genesis block. You ...
Mikhail Vladimirov's user avatar
1 vote

should I stop geth for copying /chaindata to another machine?

Of course. It should be stopped.
obanadingyo's user avatar
1 vote
Accepted

In ethereum network how data structured and is every data stored, is public?

All the data is visible for everyone who has access to the blockchain. If it's a private blockchain you can control who has access to it. Your idea about the architecture is approximately correct ...
Lauri Peltonen's user avatar
1 vote

Get full archive node data

You can get a paid (small fee) verified copy from http://archivenode.net or http://getblockchain.download or http://download.myethereumdatabase.net or http://get.myethereumdatabase.net If you don’t ...
user2284570's user avatar
  • 1,018

Only top scored, non community-wiki answers of a minimum length are eligible