{"id":19011716,"url":"https://github.com/umbracle/geth-data-layer","last_synced_at":"2025-04-22T23:27:27.457Z","repository":{"id":61626185,"uuid":"542615222","full_name":"umbracle/geth-data-layer","owner":"umbracle","description":"Go library to access the blockchain state of Go-ethereum","archived":false,"fork":false,"pushed_at":"2023-02-14T10:52:46.000Z","size":26,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T16:03:22.084Z","etag":null,"topics":["blockchain","data","geth"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umbracle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-28T13:50:59.000Z","updated_at":"2024-07-11T02:02:34.000Z","dependencies_parsed_at":"2024-06-20T14:09:16.438Z","dependency_job_id":"cc73fb25-b4e3-4036-99d7-3417f415c729","html_url":"https://github.com/umbracle/geth-data-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbracle%2Fgeth-data-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbracle%2Fgeth-data-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbracle%2Fgeth-data-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbracle%2Fgeth-data-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbracle","download_url":"https://codeload.github.com/umbracle/geth-data-layer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250339403,"owners_count":21414354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","data","geth"],"created_at":"2024-11-08T19:15:30.836Z","updated_at":"2025-04-22T23:27:27.440Z","avatar_url":"https://github.com/umbracle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geth-data-layer\n\nGo library to access the [`geth`](https://github.com/ethereum/go-ethereum) stored data.\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tgethdatalayer \"github.com/umbracle/geth-data-layer\"\n)\n\nfunc main() {\n\tpath := \"..../chaindata\" // path to the storage data\n\n\tstore, err := gethdatalayer.NewStore(path)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\titer := store.Iterator()\n\t// iter.Seek(1000000)\n\n\tfor iter.Next() {\n\t\tval, _ := iter.Value()\n\t\tfmt.Println(val.Number)\n\t}\n}\n```\n\nThere are three storage interaces:\n\n- `NewAncientStore`: Access the `ancient` store data.\n- `NewLevelDbStore`: Access the `leveldb` store data.\n- `NewStore`: Abstraction on top of the `leveldb` and `ancient` data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbracle%2Fgeth-data-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbracle%2Fgeth-data-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbracle%2Fgeth-data-layer/lists"}