{"id":20511201,"url":"https://github.com/getbitpocket/electrum-network-plugin","last_synced_at":"2026-05-07T15:33:57.453Z","repository":{"id":143859481,"uuid":"55362198","full_name":"getbitpocket/electrum-network-plugin","owner":"getbitpocket","description":"Cordova plugin for accessing the electrum/bitcoin network","archived":false,"fork":false,"pushed_at":"2016-11-13T14:52:37.000Z","size":232,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T09:07:27.016Z","etag":null,"topics":["bitcoin","cordova","cordova-plugin","electrum"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getbitpocket.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":"2016-04-03T18:34:34.000Z","updated_at":"2017-05-27T11:22:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"258e64ba-4b40-47bd-a4bc-6ffba671395b","html_url":"https://github.com/getbitpocket/electrum-network-plugin","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/getbitpocket%2Felectrum-network-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbitpocket%2Felectrum-network-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbitpocket%2Felectrum-network-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getbitpocket%2Felectrum-network-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getbitpocket","download_url":"https://codeload.github.com/getbitpocket/electrum-network-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117660,"owners_count":20074433,"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","cordova","cordova-plugin","electrum"],"created_at":"2024-11-15T20:35:02.914Z","updated_at":"2025-10-26T05:48:19.990Z","avatar_url":"https://github.com/getbitpocket.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova Plugin for accessing Electrum network servers\n\nElectrum network protocol documentation can be found here: [http://docs.electrum.org/en/latest/protocol.html](http://docs.electrum.org/en/latest/protocol.html)\n\n## Installation\n\n - Add the Plugin to your Cordova project: `cordova plugin add https://github.com/getbitpocket/electrum-network-plugin`\n - Depending on the Promise support of your target environment (http://caniuse.com/#feat=promises), the [es6-shim](https://github.com/paulmillr/es6-shim) javascript library might be included\n\n## Quick Examples\n\n### Example: Init Network, discover peers and send a request to a random network peer\n\n```javascript\n\nvar networkDiscovery = new electrum.NetworkDiscovery();\nnetworkDiscovery.init();\n\nnetworkDiscovery.on('peers:discovered', function() {\n    \n    networkDiscovery.sendRandomRequest({ \"id\": 1, \"method\":\"blockchain.address.get_balance\", \"params\":[\"1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L\"] });\n    \n    networkDiscovery.on('peers:response', function(response) {\n        console.log(response);\n    });\n    \n});\n\n```\n\n### Example: Connect to a peer and send a request\n\n```javascript\n\nvar peer = new electrum.Peer('some.electrum.server.com', 50002);\npeer.connect();\n\npeer.on('connected', function() {\n    \n    peer.sendRequest({ \"id\": 1, \"method\":\"blockchain.address.get_balance\", \"params\":[\"1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L\"] });\n    \n    peer.on('response', function(response) {\n        console.log(response);\n    });\n    \n});\n\n```\n\n## Build Project\n\n`npm install`\n\n`npm run build`\n\n## Running Unit Tests\n\n`npm install`\n\n`npm test`\n\n## Running Integration Tests\n\n - `npm install`\n - `npm run integration -- run android` or `npm run integration -- run ios` for testing on real devices\n - `npm run integration -- emulate android` or `npm run integration -- emulate ios` for testing on emulator\n\n## Roadmap\n\n - This plugin should also work with altcoins, which support electrum\n - Observable (rx.js) rather of Promise for Requests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetbitpocket%2Felectrum-network-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetbitpocket%2Felectrum-network-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetbitpocket%2Felectrum-network-plugin/lists"}