Answer the question
In order to leave comments, you need to log in
How to view raw Ethereum blockchain on local chain (+ my attempts)?
Actually, I launched a private ether blockchain according to the instructions , one might even say - local, because I'm the only one there and the accounts are all for the sake of appearance. I did the initial launch through geth, he created the chain for me, he saved it for me, he also mined the ether for me there for the sake of appearance.
Geth placed a local blockchain on a laptop, in a special dedicated folder, I have it at the address (I use a Mac): /Users/Ololo/EthereumTestNet/geth/chaindata
Actually chaindata
, the folder contains files that represent the blockchain database, as I understand it, reading foreign literature. This folder is the LevelDB database, which contains the following files:
000002.ldb
with notepad, it crashed: everything is encrypted there. I thought the problem was with the encoding. I found several DBMS that can work with LevelDB, it also turned out to be a fiasco: someone did not understand anything, someone did not open it, someone said "give me a password to decrypt". var db = levelup('/Users/Ololo/EthereumTestNet/geth/chaindata');
InitializationError: Must provide db
. I tried to play around with the paths to the database, but I got the notorious InitializationError: Must provide db
- nothing helps. In general, I am exhausted. Answer the question
In order to leave comments, you need to log in
Everything is fine, I achieved what I wanted:
Instead of:
var level = require('level')
var db = level('/Users/User/WebstormProjects/untitled/bin/chaindata')
var levelup = require('levelup');
var db = levelup('/Users/User/WebstormProjects/untitled/bin/chaindata');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question