{"id":19017386,"url":"https://github.com/ferranbt/blocktracker","last_synced_at":"2026-05-02T05:42:00.467Z","repository":{"id":104353018,"uuid":"145843564","full_name":"ferranbt/blocktracker","owner":"ferranbt","description":"Track and reconcile Ethereum blocks on realtime","archived":false,"fork":false,"pushed_at":"2018-08-30T11:18:15.000Z","size":8,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T23:30:04.456Z","etag":null,"topics":["block","ethereum","stream","track"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ferranbt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-23T11:21:39.000Z","updated_at":"2019-02-24T20:30:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"26d00e45-d6b5-48bd-9912-3b314221d433","html_url":"https://github.com/ferranbt/blocktracker","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/ferranbt%2Fblocktracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferranbt%2Fblocktracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferranbt%2Fblocktracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferranbt%2Fblocktracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferranbt","download_url":"https://codeload.github.com/ferranbt/blocktracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240061631,"owners_count":19742067,"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":["block","ethereum","stream","track"],"created_at":"2024-11-08T19:46:51.075Z","updated_at":"2026-04-27T00:30:18.680Z","avatar_url":"https://github.com/ferranbt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# BlockTracker\n\nBased on [ethereumjs-blockstream](https://github.com/ethereumjs/ethereumjs-blockstream).\n\n## Command Line Tool Usage\n\nInstall the command line tool with:\n\n```\ngo get -u github.com/ferranbt/blocktracker/cmd/blocktracker\n```\n\nThen run it with:\n\n```\nblocktracker\n```\n\n## Library Usage\n\nInstall the library with:\n\n```\ngo get -u github.com/ferranbt/blocktracker\n```\n\n```\ntracker, err := blocktracker.NewBlockTrackerWithEndpoint(logger, rpcEndpoint, true)\nif err != nil {\n    panic(err)\n}\n\neventCh := make(chan blocktracker.Event)\ntracker.EventCh = eventCh\n\ntracker.Start(context.Background())\n\nfor {\n    evnt := \u003c-eventCh:\n\t\n\tfmt.Println(\"-------------------------------------\")\n\tfor _, b := range evnt.Added {\n\t\tblock := b.(*types.Block)\n\t\tfmt.Printf(\"ADD %s: %s\\n\", block.Number().String(), block.Hash().String())\n\t}\n\tfor _, b := range evnt.Removed {\n\t\tblock := b.(*types.Block)\n\t\tfmt.Printf(\"DEL %s: %s\\n\", block.Number().String(), block.Hash().String())\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferranbt%2Fblocktracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferranbt%2Fblocktracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferranbt%2Fblocktracker/lists"}