Categorygithub.com/umbracle/geth-data-layer
modulepackage
0.0.0-20230214105246-c744afd3faec
Repository: https://github.com/umbracle/geth-data-layer.git
Documentation: pkg.go.dev

# README

Geth-data-layer

Go library to access the geth stored data.

Usage

package main

import (
	"fmt"

	gethdatalayer "github.com/umbracle/geth-data-layer"
)

func main() {
	path := "..../chaindata" // path to the storage data

	store, err := gethdatalayer.NewStore(path)
	if err != nil {
		panic(err)
	}

	iter := store.Iterator()
	// iter.Seek(1000000)

	for iter.Next() {
		val, _ := iter.Value()
		fmt.Println(val.Number)
	}
}

There are three storage interaces:

  • NewAncientStore: Access the ancient store data.
  • NewLevelDbStore: Access the leveldb store data.
  • NewStore: Abstraction on top of the leveldb and ancient data.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Constants

eip-2930.
eip-1559.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author