{"id":25031945,"url":"https://github.com/ranjbar-dev/btc-zmq-listener","last_synced_at":"2025-03-30T19:40:54.944Z","repository":{"id":274940277,"uuid":"924059782","full_name":"ranjbar-dev/btc-zmq-listener","owner":"ranjbar-dev","description":"listen on ZMQ and receive new transactions that bitcoin pushed into zmq ","archived":false,"fork":false,"pushed_at":"2025-02-03T08:50:39.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T13:35:57.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ranjbar-dev.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":"2025-01-29T10:46:45.000Z","updated_at":"2025-02-03T08:50:42.000Z","dependencies_parsed_at":"2025-01-30T09:38:07.883Z","dependency_job_id":null,"html_url":"https://github.com/ranjbar-dev/btc-zmq-listener","commit_stats":null,"previous_names":["ranjbar-dev/btc-zmq-listener"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Fbtc-zmq-listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Fbtc-zmq-listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Fbtc-zmq-listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Fbtc-zmq-listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranjbar-dev","download_url":"https://codeload.github.com/ranjbar-dev/btc-zmq-listener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372504,"owners_count":20766624,"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":[],"created_at":"2025-02-05T22:45:41.328Z","updated_at":"2025-03-30T19:40:54.923Z","avatar_url":"https://github.com/ranjbar-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btczmq \n\nyou can run a bitcoin node on prune mode ( use less Desk and it is configable ) and run this service beside bitcoin node, then you can connect to ws server port 8000 ( confiable on /config folder ) and receive new connections that gets into Bitcoin mempool\n\nadd you client ip address to give access to connect to ws server( /config/config.yaml file ).\n\nwhen client connects to ws server, server pushes latest 1000 pending transactions to client.\n\nscreenshot\n![image](https://github.com/user-attachments/assets/838f6d2f-26e1-45e6-b332-2d4555e3bcb7)\n\nnew transction data example: \n```\n{\n    \"c\": 1,\n    \"d\": {\n        \"txid\": \"596f3ae6bde68fa114289830c5f3204e29b586b29614c6b00ef4c0ebccf9de90\",\n        \"inputs\": [\n            {\n                \"txid\": \"99030fe530a08080b0802c5540b2ab1e5e5caf20786383d0081cfa6915f39076\",\n                \"index\": 56,\n                \"address\": \"1GNfXR51TvWE8TenQRPVWmKHwUauhyyRF4\"\n            }\n        ],\n        \"outputs\": [\n            {\n                \"address\": \"1M6gbBVHBxkMWNiTQ8kXgZpHz7nevwH7fR\",\n                \"value\": 737686\n            }\n        ],\n        \"confirmations\": 0\n    }\n}\n```\n\n### Build binary \n\n`go build -o ./build/main ./cmd/main.go`\n\n\n### Run binary \n\n`./build/main /path-to-src/config/config.yaml`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjbar-dev%2Fbtc-zmq-listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franjbar-dev%2Fbtc-zmq-listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjbar-dev%2Fbtc-zmq-listener/lists"}