{"id":17968293,"url":"https://github.com/hunterlong/btcexporter","last_synced_at":"2025-03-25T09:30:42.151Z","repository":{"id":57648180,"uuid":"129556885","full_name":"hunterlong/btcexporter","owner":"hunterlong","description":"Prometheus exporter for Bitcoin Wallet Balances - Log Bitcoin Balances for any address you want!","archived":false,"fork":false,"pushed_at":"2018-07-12T20:22:49.000Z","size":8,"stargazers_count":15,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T00:38:18.012Z","etag":null,"topics":["bitcoin","crypto","cryptocurrency","prometheus-exporter"],"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/hunterlong.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":"2018-04-14T21:47:35.000Z","updated_at":"2023-12-29T15:18:12.000Z","dependencies_parsed_at":"2022-08-25T08:10:16.037Z","dependency_job_id":null,"html_url":"https://github.com/hunterlong/btcexporter","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/hunterlong%2Fbtcexporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterlong%2Fbtcexporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterlong%2Fbtcexporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterlong%2Fbtcexporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunterlong","download_url":"https://codeload.github.com/hunterlong/btcexporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245435025,"owners_count":20614815,"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":["bitcoin","crypto","cryptocurrency","prometheus-exporter"],"created_at":"2024-10-29T14:20:52.674Z","updated_at":"2025-03-25T09:30:42.138Z","avatar_url":"https://github.com/hunterlong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BTCexporter  [![Docker Build Status](https://img.shields.io/docker/build/hunterlong/btcexporter.svg)](https://hub.docker.com/r/hunterlong/btcexporter/)\n\nA lightweight Prometheus exporter that will output Bitcoin Balances from a list of addresses you specify. BTCexporter uses blockchain.info to fetch bitcoin balances. If you also wanting a Ethereum prometheus exporter, you can use [ETHexporter](https://github.com/hunterlong/btcexporter) which uses a geth server. You might also want to chart your ERC20 token balances for the Ethereum blockchain, checkout out [TOKENexporter](https://github.com/hunterlong/tokenexporter).\n\n## Watch Addresses\nThe `addresses.txt` file holds all the addresses to fetch balances for. Use the format `name:address` on each new line. BTCexporter updates balances every 60 seconds since the bitcoin blockchain doesn't update very quickly.\n```\nexample2:1Kr6QSydW9bFQG1mXiPNNu6WpJGmUa9i1g\nexample3:17A16QmavnUfCW11DAApiJxp7ARnxN5pGX\n```\n\n## Running the Exporter\nYou can easily run this Bitcoin balance prometheus exporter with the docker command:\n```\ndocker run -it -d -p 9019:9019 \\\n  -v /myfolder/addresses.txt:/app/addresses.txt \\ \n  hunterlong/btcexporter\n```\n\n## Build Docker Image\nClone this repo and then follow the simple steps below!\n\n##### Build Docker Image\n`docker build -t hunterlong/btcexporter:latest .`\n\n##### Run ethexporter\n`docker run -d -p 9019:9019 hunterlong/btcexporter:latest`\n\n## Pull from Dockerhub\nCreate a `addresses.txt` file with the correct format mentioned above.\n```\ndocker run -d -v ~/btcexporter:/app \\\n -p 9019:9019 \\\n hunterlong/btcexporter:latest\n```\nThe Docker image should be running with the default addresses.\n\n## Prometheus Response\n```\nbtc_balance{name=\"example2\",address=\"1Kr6QSydW9bFQG1mXiPNNu6WpJGmUa9i1g\"} 2543.029143\nbtc_balance{name=\"example3\",address=\"17A16QmavnUfCW11DAApiJxp7ARnxN5pGX\"} 7286.88533\nbtc_balance{name=\"example4\",address=\"1DcKsGnjpD38bfj6RMxz945YwohZUTVLby\"} 1271.125171\nbtc_balance{name=\"example5\",address=\"3JjPf13Rd8g6WAyvg8yiPnrsdjJt1NP4FC\"} 129.7400535\nbtc_balance{name=\"example6\",address=\"1TjstSNNZezhTMj6m9pcGwMr1fxLhwUuH\"} 0\nbtc_balance{name=\"example7\",address=\"1NDyJtNTjmwk5xPNhjgAMu4HDHigtobu1s\"} 42094.21118\nbtc_balance{name=\"example8\",address=\"3DzSVk4veMCkNbNT9CdETeE26uWxmNbBnD\"} 1243.824953\nbtc_balance{name=\"example9\",address=\"1LV5y3NkVkmdWnF6xRCEXrAnUkRgge4KSq\"} 529.1578158\nbtc_balance{name=\"example10\",address=\"1EEqRvnS7XqMoXDcaGL7bLS3hzZi1qUZm1\"} 1377.11966\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunterlong%2Fbtcexporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunterlong%2Fbtcexporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunterlong%2Fbtcexporter/lists"}