{"id":16560131,"url":"https://github.com/friedger/pub-stacks-dump","last_synced_at":"2026-02-26T10:09:33.345Z","repository":{"id":54391704,"uuid":"330370471","full_name":"friedger/pub-stacks-dump","owner":"friedger","description":"Hourly update of stacks-dump on Stacks 2.0 Mainnet","archived":false,"fork":false,"pushed_at":"2021-03-13T01:25:55.000Z","size":4031,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T03:22:48.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://friedger.github.io/pub-stacks-dump/","language":"HTML","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/friedger.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}},"created_at":"2021-01-17T11:01:48.000Z","updated_at":"2023-12-23T21:35:23.000Z","dependencies_parsed_at":"2022-08-13T14:20:12.228Z","dependency_job_id":null,"html_url":"https://github.com/friedger/pub-stacks-dump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/friedger/pub-stacks-dump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedger%2Fpub-stacks-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedger%2Fpub-stacks-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedger%2Fpub-stacks-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedger%2Fpub-stacks-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friedger","download_url":"https://codeload.github.com/friedger/pub-stacks-dump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedger%2Fpub-stacks-dump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281571909,"owners_count":26524095,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T20:28:12.160Z","updated_at":"2025-10-29T06:19:24.641Z","avatar_url":"https://github.com/friedger.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pub-stacks-dump\n\nThis script is used to provide an hourly update of stacks-dump from an independent miner on the [Stacks 2.0 Mainnet](https://www.stacks.co/).\n\nThe information is published via GitHub pages and available at the link below:\n\n[https://friedger.github.io/pub-stacks-dump/](https://friedger.github.io/pub-stacks-dump/)\n\n## Requirements\n\nThis script _should_ run on any system that supports Bash. Please file an issue if you get an error.\n\nThis script expects that you have `git` installed and configured on your system.\n\nThis script relies on (pub-stacks-dump fork](https://github.com/friedger/stacks-dump/tree/pub-stacks-dump) of [stacks-dump by psq](https://github.com/psq/stacks-dump) to review the stacks-node storage and output statistics based on the miner's data. The `stacks-dump` repository must be downloaded separately.\n\nThis script has a set of variables that need to be updated to match your system configuration:\n\n- directory for working_dir data from stacks-node\n  `__stacksnode=\"/tmp/stacks-testnet-bb8423eafa69dc8f/\"`\n- directory for running stacks-dump\n  `__stacksdump=\"/home/friedger/_repos/github/psq/stacks-dump\"`\n- directory for repo to publish results\n  `__publishdir=\"/home/friedger/_repos/github/friedger/pub-stacks-dump\"`\n- file name for saving stacks-node data\n  `__outputfile=\"stacks-dump.txt\"`\n- file name for saving jsummary stacks-node data as json\n  `__outputjsonfile=\"stacks-dump.json\"`\n- file name for saving miners stacks-node data as csv\n  `__outputcsvfile=\"stacks-dump.csv\"`\n- file name for saving blocks stacks-node data as txt\n  `__outputcsvfile=\"stacks-dump-blocks.txt\"`\n- website to access data after published\n  `__website=\"https://friedger.github.io/pub-stacks-dump/\"`\n- twitter account used for twitter card in SEO\n  `__twitter=\"@fmdroid\"`\n- average costs for commit transaction in sats\n  `__avg_tx_costs=60000`\n\nGitHub Pages is used for publishing, however instructions to set that up are outside the scope of this readme. Feel free to [review the GitHub documentation](https://docs.github.com/en/github/working-with-github-pages) or use the publishing platform of your choice.\n\n## Usage\n\nBy default, the script will run one time and exit.\n\n```bash\nbash publish.sh\n```\n\nIf you would like to run the script in a loop, it accepts a value after the file name that is passed to `sleep` as a parameter. From the [sleep man page](https://linux.die.net/man/1/sleep):\n\n\u003e Pause for NUMBER seconds. SUFFIX may be 's' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days.\n\nFor example, to publish every hour:\n\n```bash\nbash publish.sh 1h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriedger%2Fpub-stacks-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriedger%2Fpub-stacks-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriedger%2Fpub-stacks-dump/lists"}