Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Blockchain import and export instructions

KKudryavtsev edited this page Oct 30, 2015 · 2 revisions

name: Blockchain Import/Export category:

Note: Binary format is concatenated RLP-encoded blocks

C++

Import:

eth --import <filename>

Formats supported: binary

Export:

eth --export Myfile --format binary --from 45 --to latest

Formats supported: hex (newlines separating), binary or JSON --from and --to also support blockhashes

Go

Import

geth import <filename>

Formats supported: binary

Genesis block:

geth --genesis <filename> --genesisnonce <nonce>

Formats supported: json

Export

geth export <filename>

Formats supported: binary

Python

Clone this wiki locally