{"_id":"@codewarriorr/btcv-api-client","_rev":"3-7b37aaebd965873584de9ed2047d6391","name":"@codewarriorr/btcv-api-client","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@codewarriorr/btcv-api-client","version":"1.0.0","description":"BTCV Electrum protocol API client","main":"lib/index.ts","types":"lib/index.d.ts","scripts":{"test":"jest","test-ci":"JEST_JUNIT_OUTPUT_DIR=./test-results JEST_JUNIT_OUTPUT_NAME=btcv-api-test-results.xml jest --reporters='default' --reporters='jest-junit' --maxWorkers 2 --forceExit","build":"tsc","lint":"prettier --check .","prepare":"npm run build","prepublishOnly":"npm test && npm run lint"},"dependencies":{"bignumber.js":"^9.0.1","bitcoinjs-lib":"^5.2.0","websocket":"^1.0.33"},"devDependencies":{"@types/jest":"^26.0.22","@types/websocket":"^1.0.2","electrum-host-parse":"^0.1.1","fs":"0.0.1-security","jest":"^26.6.3","jest-circus":"^26.6.3","jest-junit":"^12.0.0","prettier":"^2.2.1","ts-jest":"^26.5.4","typescript":"^4.2.3"},"homepage":"https://github.com/CodeWarriorr/btcv-api-client#readme","repository":{"type":"git","url":"git://github.com/CodeWarriorr/btcv-api-client.git"},"bugs":{"url":"https://github.com/CodeWarriorr/btcv-api-client/issues"},"keywords":["client","electrum","bitcoin","bitcoin_vault"],"engines":{"node":">=12"},"author":{"name":"Michal Mach"},"license":"MIT","gitHead":"c74c9204d25acc9a81508c959a9cb0e5258566da","_id":"@codewarriorr/btcv-api-client@1.0.0","_nodeVersion":"14.15.4","_npmVersion":"7.7.0","dist":{"integrity":"sha512-Vm+2zJxP431vdDl3TUGuQDMt3V4wfjt/SMGR721BjslVgHHqWQpDLIPM+5jZuXY3K+U3kJDtRljwahRIUVci6g==","shasum":"5b32c3eac7e3ef8ebeca262c6c44fabfdc49d653","tarball":"https://registry.npmjs.org/@codewarriorr/btcv-api-client/-/btcv-api-client-1.0.0.tgz","fileCount":21,"unpackedSize":39885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJge+1QCRA9TVsSAnZWagAAcvwP/3VSBqY94+Q1rzfsOwrv\n3VeMGDlsZWCBepXaB1wUD6kpU5ssUO13JtLRsdB1NFGPMtNlNNotAyBhZ48p\n6zT3vl9u5wEUglCaoCGIHCuYErWMCJ050prUzXCwm24eGfx8H/j0/o3HFG2M\nA6RwC2B5IiIsYsJEgCmp3e6V57uku07KRKdq2363yfqA5MWKzxxyvIeqttlN\nRTZb/m2ZIwTT5XdHDlAk5QU7iSI2EHkhNmC3y+CqW5lG4YHlwq51tjUV0Gkv\nR+jqNm52a1xFPu4FXioSMgLgeHen9w3qUYSZeyYX21z0vAEwQx5YV0wx1dJb\n6pAX02LC43H56Wu506GaoUzfsAfaoCNkRsBb7f/gSi2y51azNCi6gajQ4QU2\nH1qPdUoLtzZpEEMxc3KUbbuPD3Fbg291PLDfhz5cqjzCnyuhL90y0s4XWqgb\ncrTI7jwsJqY1Ws0727qoA3EZ0ebcee7RlDXf7IlM9U6xgf0ETvyQf9dFLnRd\nTv20L1JWxKbM7ivCRaQ6IGSghqFTRlkccpSu+mAs/UzJiOtWV02WtyhrIqN8\n2YM1P8UGuqiA9wtSbqLuh7P9jLnHQIjaiyauN0pkuximeYvStqnXj7d/EY6n\nOwsaa6nRalI5RMgMSpaxR+2k6HCQBMwaGIS/KMqssJkVuJS99Wf8b1kDgcEc\ncbg7\r\n=zPXc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHBLkRRddawBuO8uo5NBkAa2jP4MKvnYNdiZoATVEELWAiEA+ilQdsTrV3ZKlv61dNkayGbzCRi4Igl60HDs+ZLcOvk="}]},"_npmUser":{"name":"codewarriorr","email":"codewarriorr@pm.me"},"directories":{},"maintainers":[{"name":"codewarriorr","email":"codewarriorr@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/btcv-api-client_1.0.0_1618734415445_0.6369753497478816"},"_hasShrinkwrap":false},"1.0.1":{"name":"@codewarriorr/btcv-api-client","version":"1.0.1","description":"BTCV Electrum protocol API client","main":"lib/index.ts","types":"lib/index.d.ts","scripts":{"test":"jest","test-ci":"JEST_JUNIT_OUTPUT_DIR=./test-results JEST_JUNIT_OUTPUT_NAME=btcv-api-test-results.xml jest --reporters='default' --reporters='jest-junit' --maxWorkers 2 --forceExit","build":"tsc","lint":"prettier --check .","prepare":"npm run build","prepublishOnly":"npm test && npm run lint"},"dependencies":{"bignumber.js":"^9.0.1","bitcoinjs-lib":"^5.2.0","websocket":"^1.0.33"},"devDependencies":{"@types/jest":"^26.0.22","@types/websocket":"^1.0.2","electrum-host-parse":"^0.1.1","fs":"0.0.1-security","jest":"^26.6.3","jest-circus":"^26.6.3","jest-junit":"^12.0.0","prettier":"^2.2.1","ts-jest":"^26.5.4","typescript":"^4.2.3"},"homepage":"https://github.com/CodeWarriorr/btcv-api-client#readme","repository":{"type":"git","url":"git://github.com/CodeWarriorr/btcv-api-client.git"},"bugs":{"url":"https://github.com/CodeWarriorr/btcv-api-client/issues"},"keywords":["client","electrum","bitcoin","bitcoin_vault"],"engines":{"node":">=12"},"author":{"name":"Michal Mach"},"license":"MIT","gitHead":"c74c9204d25acc9a81508c959a9cb0e5258566da","_id":"@codewarriorr/btcv-api-client@1.0.1","_nodeVersion":"14.15.4","_npmVersion":"7.7.0","dist":{"integrity":"sha512-GdKZ8oiWcE7Cqomej1X4F4bglhjEEA2YveX9UaHm/7uWno6F5Zr1EU164dnFkOyPcZ8YlTdn1z4DApc3QBVXVg==","shasum":"06f47820d5650b4130fb3f2f054a1c3aa784d7c7","tarball":"https://registry.npmjs.org/@codewarriorr/btcv-api-client/-/btcv-api-client-1.0.1.tgz","fileCount":23,"unpackedSize":40644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJge/H7CRA9TVsSAnZWagAAY+kP/0B1YjjJWbxqTM9Tb0JA\nrNG4wBGNqLembaGzJzBeordTNOsxRDtzk48VMDdYtKb5Zs0Chi/dZAHUrBdv\nN+xM7riYRzfnP1sGLLFh1bLhXonNMu+/8QA6b+swzttpL6awgkJwpBS4Sg7l\nBOZdsCO+VfnqwXyEc1ql9Ke1LV+zpBjILZ2SFNqt9RvHzKGLt6je+e/ymeXU\nuYzGwDoLELEOtlaieWEvY2ERlKLXvLUpRPBFswFWFHle9YmIFmXFT5B6WTiC\nv9hxzE2XpRIlfbnxqVZkCzSTTHKRIHEH+8c+Z0o9e3F40uHdKvdISmHqr/fy\n52xVESp8uOU80+7kOG8DciPTdn8Lok890VZxrotM3YI27wnuMrTGR9BTXauP\n2QsC1IXgMngvQw9aJzTTP95VU6DjS4uxtUkEJ6aao3yVFSATZ5k2AxcY3DQg\ntDzrfNGnuLwoRhPFWdxC9nYDqQU2oKMboFjdq09wShqcNEz62IoSgGH8WRoU\nFXIh0Pk+/zfsrUd+dRUbe3nG2X2rNM8UHUejzKHg+lh4FpMx74J5smYkAVce\nkklkn811C913anYiQUFkW8wyxYLaUzylP7HQgDzZcu++Rv1h4TMj2ZbfPn1C\nPmQuBGZrDX99sgTaMwjiVTVo0D3voTWAnfMgx4gtCvLEtnRsRx/VhGMxMwLo\nsIPi\r\n=UDe+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcatjWNcqXxiK6qr8W18cjWJeGzHrj7NSx278RgG8QYQIhAIHb8L/XzZ0FpxaxL1L8m5rdxgrFdvLmbj/JIyrRLdZY"}]},"_npmUser":{"name":"codewarriorr","email":"codewarriorr@pm.me"},"directories":{},"maintainers":[{"name":"codewarriorr","email":"codewarriorr@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/btcv-api-client_1.0.1_1618735611306_0.10124121451865786"},"_hasShrinkwrap":false},"1.0.2":{"name":"@codewarriorr/btcv-api-client","version":"1.0.2","description":"BTCV Electrum protocol API client","main":"lib/index.js","types":"lib/types.d.ts","scripts":{"test":"jest","test-ci":"JEST_JUNIT_OUTPUT_DIR=./test-results JEST_JUNIT_OUTPUT_NAME=btcv-api-test-results.xml jest --reporters='default' --reporters='jest-junit' --maxWorkers 2 --forceExit","build":"tsc","lint":"prettier --check .","prepare":"npm run build","prepublishOnly":"npm run lint && npm run build"},"dependencies":{"bignumber.js":"^9.0.1","bitcoinjs-lib":"^5.2.0","websocket":"^1.0.33"},"devDependencies":{"@types/jest":"^26.0.22","@types/websocket":"^1.0.2","electrum-host-parse":"^0.1.1","fs":"0.0.1-security","jest":"^26.6.3","jest-circus":"^26.6.3","jest-junit":"^12.0.0","prettier":"^2.2.1","ts-jest":"^26.5.4","typescript":"^4.2.3"},"homepage":"https://github.com/CodeWarriorr/btcv-api-client#readme","repository":{"type":"git","url":"git://github.com/CodeWarriorr/btcv-api-client.git"},"bugs":{"url":"https://github.com/CodeWarriorr/btcv-api-client/issues"},"keywords":["client","electrum","bitcoin","bitcoin_vault"],"engines":{"node":">=12"},"author":{"name":"Michal Mach"},"license":"MIT","gitHead":"c74c9204d25acc9a81508c959a9cb0e5258566da","_id":"@codewarriorr/btcv-api-client@1.0.2","_nodeVersion":"14.15.4","_npmVersion":"7.7.0","dist":{"integrity":"sha512-u3ZV6Lp25hK4yNPLyzVcwqTVE/qmFbr286aZIIDToO9nxF4X4uhjibT0RVpE9UZmAz1KnSu+8FlopokUMTzxPg==","shasum":"e9b4ceeb337aa7047fb74cf918c5a7f486b057b1","tarball":"https://registry.npmjs.org/@codewarriorr/btcv-api-client/-/btcv-api-client-1.0.2.tgz","fileCount":23,"unpackedSize":40649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJge/MmCRA9TVsSAnZWagAAS/wP/1P4HAI9WVN6xAdQql1F\ne8EQPPKF2riucAjRbA+XlRB4H6041sHus7jYuyHLM/UXPK2lyTWDciD6MvCW\nAedSGP7pL95DpEoXMXysRF10B70mx+Czc/JwcDwGh6QXLG1KGKdzTDN18oB4\nIo0h+Au7dY4IWBMRi5SenJBqRbcl27Q8HfROoYZFZO66j837llIhocbqnjzD\n0URYvwbUYHtz7GMyyPTQIU45pLyWPk3mA/L373wfj8Ez31uiP7/WiGLVlWSH\nKJapzJgV2W/HnNsSLo0t+0+NapxIrSAn7Zfl3yJBaJ83JcjlN0Miw5itsckz\necD9LzvtJ5NMJ5UPGLXsSW+6Zo3MqLHW/ZBkIYu0nm14AUEECWEkQxRxLeBX\neaHkDf5EWm9CR4g2+ogB1zPZPExsw2gj4K4s0x1Km87CXy/IHpAe2Oa+F8uK\npROOOp3RbvfHV972bvJjMjjgGtCPPYzR2AvaoWixwgJ//9ogODZdN/gB/Bx8\nLZsmpd4GNRfHoFy2tqgoIlLChOtiTkUxaEYUtGgp9te4qACXJSr0QAZS8h3k\nud9PCxDMdFV3QylECIGWlykRVibhehdJQjLKgXM8MugziUFX+hp+XwNtkMQ2\nUPRxXq7RkmwSErs1t4FjU1UaPTr5FFtV+m86FKqYZa4hSULZEwGdtc+Tm8dI\nRUuQ\r\n=Hrkd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbnHIqDVBKMes86d6/gjS66sc2MAXs4olVSX737hwGsgIgA2nsJBoigUl++v0rWQXbk4YwYpLVMcQrULSsdNuHers="}]},"_npmUser":{"name":"codewarriorr","email":"codewarriorr@pm.me"},"directories":{},"maintainers":[{"name":"codewarriorr","email":"codewarriorr@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/btcv-api-client_1.0.2_1618735909957_0.3907361199451991"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-18T08:26:55.384Z","1.0.0":"2021-04-18T08:26:55.573Z","modified":"2022-04-05T00:07:35.311Z","1.0.1":"2021-04-18T08:46:51.478Z","1.0.2":"2021-04-18T08:51:50.123Z"},"maintainers":[{"name":"codewarriorr","email":"codewarriorr@pm.me"}],"description":"BTCV Electrum protocol API client","homepage":"https://github.com/CodeWarriorr/btcv-api-client#readme","keywords":["client","electrum","bitcoin","bitcoin_vault"],"repository":{"type":"git","url":"git://github.com/CodeWarriorr/btcv-api-client.git"},"author":{"name":"Michal Mach"},"bugs":{"url":"https://github.com/CodeWarriorr/btcv-api-client/issues"},"license":"MIT","readme":"# BTCV api client\n\nTypeScript implementation of [Electrum Protocol] Client.\n\nThis is a library that can communicate with the [ElectrumX Server]\non `tcp`, `ssl`, `ws` and `wss` protocols.\n\nWorks in node.js and browser.\n\nImplements BTCV methods described in [Electrum Protocol methods] documentation.\n\n## Install\n\n```\nnpm install --save @codewarriorr/btcv-api-client\n```\n\n## Usage\n\n```js\nconst { BtcvApiClient } = require('@codewarriorr/btcv-api-client');\n\nasync function main() {\n  const config = {\n    host: '127.0.0.1',\n    port: 5002,\n    protocol: 'ssl',\n  };\n  const client = new BtcvApiClient(config);\n\n  try {\n    await client.connect();\n\n    const header = await client.getCurrentBlock();\n    console.log('Current header:', header);\n  } catch (err) {\n    console.error(err);\n  } finally {\n    await client.close();\n  }\n}\n\nmain();\n```\n\nSee more [examples](example/).\n\n[electrum protocol]: https://electrumx.readthedocs.io/en/latest/protocol.html\n[electrum protocol methods]: https://github.com/bitcoinvault/electrumx/wiki/Protocol-Methods\n[electrumx server]: https://github.com/bitcoinvault/electrumx\n","readmeFilename":"README.md"}