{"_id":"@abcpros/minimal-slp-wallet","_rev":"5-3bdd58b3c003333a36148337dd97219c","name":"@abcpros/minimal-slp-wallet","dist-tags":{"latest":"3.0.4"},"versions":{"3.0.1":{"name":"@abcpros/minimal-slp-wallet","version":"3.0.1","description":"A minimalist Bitcoin Cash (BCH) wallet npm library, for use in a web apps.","main":"index.js","scripts":{"start":"node index.js","test":"TEST=unit nyc mocha test/unit/","test:integration":"mocha --timeout 25000 test/integration/","test:temp":"mocha --timeout 25000 -g '#UTXOs' test/integration/","lint":"standard --env mocha --fix","docs":"apidoc -i lib/ -o docs","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha test/unit/ --exit","build":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js","build-debug":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js"},"keywords":["bitcoin","bitcoin cash","wallet","javascript","cryptocurrency","react","front end","client","apidoc","slp","tokens"],"author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"license":"MIT","apidoc":{"title":"minimal-slp-wallet","url":"localhost:5000"},"repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet.git"},"dependencies":{"@abcpros/bch-js":"^4.0.0","apidoc":"^0.25.0","bch-donation":"^1.1.1","crypto-js":"^4.0.0"},"devDependencies":{"browserify":"^17.0.0","chai":"^4.2.0","coveralls":"^3.1.0","eslint":"7.11.0","eslint-config-prettier":"^6.13.0","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-standard":"^4.0.1","husky":"^6.0.0","lodash.clonedeep":"^4.5.0","mocha":"^8.2.0","nyc":"^15.1.0","semantic-release":"^17.4.3","sinon":"^9.2.0","standard":"^14.3.4","tinyify":"^3.0.0"},"release":{"publish":[{"path":"@semantic-release/npm","npmPublish":true}]},"husky":{"hooks":{"pre-commit":"npm run lint && npm run build"}},"gitHead":"198c1ebc07643ff6083fa85cb5c51e4cfb9bcaf1","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet/issues"},"homepage":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet#readme","_id":"@abcpros/minimal-slp-wallet@3.0.1","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-P3HNWfee5sUQLFrJKdhREsr3w7Icyrvh++MakWx0aePW5jIZrJLRIv2HxmiwSqLWQuvX2Rn8VpU0Za5z9VjJYA==","shasum":"eb0e463351d67096d4e13aacd95ccdd08768d521","tarball":"https://registry.npmjs.org/@abcpros/minimal-slp-wallet/-/minimal-slp-wallet-3.0.1.tgz","fileCount":26,"unpackedSize":1481451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEzLeCRA9TVsSAnZWagAAcykP+wVg21FQkYSlkLOTaUdy\nmfuwZFf3ZwFYFGAWJhCEbQMI6qRkS86GEeZA5BOUCc2Fo+aij6hkOVfwpIVv\nesF+1RhliYaLryFR4e819UfnxZ1dZkXu0GWZREYK4UqXXyT1mQj/fljVDugo\nerdMKjUcuT2Z5fODmFo0oe8FgOnsJ+8sMmdYl7jbbMzK1Ab7hrzxAQHkFFnX\nm6FMbMjhSXh+x0mhYvY2x16HCl+aNhRvt5Uw7BGo3XEPZpfQBlgOcjTpGIwQ\nuDbgv+NG3iBGRlrDPkvaM6f/wSDyqi0x5aaJNoyvLitsdYvxC/bYGxyGOUtr\n3PNjPNJACV5g6Fmh4Ll4gcaaqxd+J2cAGT2kBpvCAberni6eIUMcYNktg3je\nTgtZtV3n9qtJgOPQ7GlKS4/3DWa5/ssvTBiCO0K7ohxbQBxEx1QpnFRVlxFB\n6dy1MSFGgkp0AOhn1ziBm7/h/hk8WrSR7eswwv5+F64IJWYinTkdmuhV7XFI\n+1+DMis41NinL3xj/UXf69HtITmwgSkksHEZPZIUIX78lw+jXq6+yP/OE/PE\ntfeeyjeu+DciHqlZS7uKqJYlwLdNncvCaLdnTAIUa6/aCcVAbqSska7WgT7p\nfj3KSxnDSDerctfYKgYgxVUCHlHS0frc+4JDet10+3JX/cfGUrTOtNbHIcn2\n7te6\r\n=hOtY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAjm01PKKpLgnncm/pIRgYS8OA1cxZSHrfMEblA2qDVAiAfHgau9wnAW/obkXSg/8qX8pLPbyVQSDDuDYgrTQFrog=="}]},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"directories":{},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minimal-slp-wallet_3.0.1_1628648158230_0.36903008255571845"},"_hasShrinkwrap":false},"3.0.2":{"name":"@abcpros/minimal-slp-wallet","version":"3.0.2","description":"A minimalist Bitcoin Cash (BCH) wallet npm library, for use in a web apps.","main":"index.js","scripts":{"start":"node index.js","test":"TEST=unit nyc mocha test/unit/","test:integration":"mocha --timeout 25000 test/integration/","test:temp":"mocha --timeout 25000 -g '#UTXOs' test/integration/","lint":"standard --env mocha --fix","docs":"apidoc -i lib/ -o docs","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha test/unit/ --exit","build":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js","build-debug":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js"},"keywords":["bitcoin","bitcoin cash","wallet","javascript","cryptocurrency","react","front end","client","apidoc","slp","tokens"],"author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"license":"MIT","apidoc":{"title":"minimal-slp-wallet","url":"localhost:5000"},"repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet.git"},"dependencies":{"@abcpros/bch-js":"^4.0.0","apidoc":"^0.25.0","bch-donation":"^1.1.1","crypto-js":"^4.0.0"},"devDependencies":{"browserify":"^17.0.0","chai":"^4.2.0","coveralls":"^3.1.0","eslint":"7.11.0","eslint-config-prettier":"^6.13.0","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-standard":"^4.0.1","husky":"^6.0.0","lodash.clonedeep":"^4.5.0","mocha":"^8.2.0","nyc":"^15.1.0","semantic-release":"^17.4.3","sinon":"^9.2.0","standard":"^14.3.4","tinyify":"^3.0.0"},"release":{"publish":[{"path":"@semantic-release/npm","npmPublish":true}]},"husky":{"hooks":{"pre-commit":"npm run lint && npm run build"}},"gitHead":"9ad46a11bb3f04752668de31a51d7a379cf5a308","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet/issues"},"homepage":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet#readme","_id":"@abcpros/minimal-slp-wallet@3.0.2","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-jzTLrblTcqFR21GajcWYImrxt3eQzmjKNSwcuN6Fz+MS4YeT6v1/qq+cXQZxNSUnoQpXACPcTplWiKdxAKnJ5Q==","shasum":"b211a70036573fe508d14b7fa8f52f5f0718aa9c","tarball":"https://registry.npmjs.org/@abcpros/minimal-slp-wallet/-/minimal-slp-wallet-3.0.2.tgz","fileCount":26,"unpackedSize":1503630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFM00CRA9TVsSAnZWagAAaEEP/iT3QglMRWm1nqEk/OSD\nVlj9iQw+FqtrOIah4FEBIVXfI/Cbcu5AACJIlQPvMvW1Yk75J9T8VxiStAD/\nlyb0WjTOhbXsx9Jw/G4Op/8ksYKlzVGWOd5mgeeWYpqLCshu2XwtS/Vsb9Ri\nScZErJJrn3oldRqNpBUYvYHn2Qd9QhacP5uNYMsfLkCW2vzhtyvHe8pZBh8p\nFdTc2YI94rbP7O9qnhpLkMMjv0PaUtmN/31XLyd6ZRLopeRxMJSlP39Cpq94\najfFvnpqTam8MTqdpm9Bii926LrPJ+fJ22p3FgZemSfJXIfi5UEhFD+VbDSq\nBZxYs3Q6ozwYjcnlLTIME+RWTZsQLYBvj5Ej/IyP+R89/eZqe6rUFEE+FqL6\nBcZ1m2m8i/syf//7ykNa3aVNi1Mx8zNxnY456eyaj433Sgb8EeqQ9Vj3nDo0\n/r+spEgxtvWdbdWWAzUTIBYDSD08eW3uwdlhZNAPh+VgRDBWTVh6SSOVjJUo\nYFLFw8E2jLQIKh0p9+EYQ/iOBY0dt6yJN5Ege2kQd6w4Ytjz0xXhr1l6ZcNG\n9PcB+xypV3bK/OJQVbki/e4OgQIeGsd6jPHopnKm8WxLOOsXaI8FIDPspYRJ\nR/28wujPAm6fiozBxhcs29J1hI4hZ5zS3bpmajB0DCOy5Nnc6/oyYV1XZ2Je\nUarY\r\n=HRtT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJeh+g2ZF7nhP+BKIESPkHj2JQBPRLg08wsRiDXrVBJAIgDPZwn4lPgEgXHo5zlNwO0Nk/LkRQsBuOKiyBJXoaDH0="}]},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"directories":{},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minimal-slp-wallet_3.0.2_1628753204408_0.24416137439605112"},"_hasShrinkwrap":false},"3.0.3":{"name":"@abcpros/minimal-slp-wallet","version":"3.0.3","description":"A minimalist Bitcoin Cash (BCH) wallet npm library, for use in a web apps.","main":"index.js","scripts":{"start":"node index.js","test":"TEST=unit nyc mocha test/unit/","test:integration":"mocha --timeout 25000 test/integration/","test:temp":"mocha --timeout 25000 -g '#UTXOs' test/integration/","lint":"standard --env mocha --fix","docs":"apidoc -i lib/ -o docs","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha test/unit/ --exit","build":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js","build-debug":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js"},"keywords":["bitcoin","bitcoin cash","wallet","javascript","cryptocurrency","react","front end","client","apidoc","slp","tokens"],"author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"license":"MIT","apidoc":{"title":"minimal-slp-wallet","url":"localhost:5000"},"repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet.git"},"dependencies":{"@abcpros/bch-js":"^4.0.2","apidoc":"^0.25.0","bch-donation":"^1.1.1","crypto-js":"^4.0.0"},"devDependencies":{"browserify":"^17.0.0","chai":"^4.2.0","coveralls":"^3.1.0","eslint":"7.11.0","eslint-config-prettier":"^6.13.0","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-standard":"^4.0.1","husky":"^6.0.0","lodash.clonedeep":"^4.5.0","mocha":"^8.2.0","nyc":"^15.1.0","semantic-release":"^17.4.3","sinon":"^9.2.0","standard":"^14.3.4","tinyify":"^3.0.0"},"release":{"publish":[{"path":"@semantic-release/npm","npmPublish":true}]},"husky":{"hooks":{"pre-commit":"npm run lint && npm run build"}},"gitHead":"e0d5d7f9bf44b692be6dfb3345e64e9dae34eb36","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet/issues"},"homepage":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet#readme","_id":"@abcpros/minimal-slp-wallet@3.0.3","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-Uuw5VxaQIltw8DTGXq8NVD7nVPUzkYYDHfgZHot2dIVhpo5uHnPKKiefzrcUzhnXp8SnMVpkjcjJrBwY/PoUEQ==","shasum":"aafc4e48052c4a099737b306f401c3b6b0521aa7","tarball":"https://registry.npmjs.org/@abcpros/minimal-slp-wallet/-/minimal-slp-wallet-3.0.3.tgz","fileCount":26,"unpackedSize":1510677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFofvCRA9TVsSAnZWagAAMhAP/iSHHxyQUWbNy7ptPyrM\nFZ2xsj7oh6ausqCstWLMz7KtoesH4T1FO7jqagbYDMF/1HRC6IOfbztDNAXU\neY31Jpi1Ch/X1rGfFd/af7mn5rXn9MgIWna5Twy3JW0RVkV7f7YnZ9AzsYxM\nQ3kF21/JOggV+6Yv+hoEvrEi/lPXGFoK2ekxI1JJE1UqoJWz/kmE0gON45Zs\nSnpagsMU+09IxPQ8gn8ukbFvzeQSa/I0D+iQ/jjkhJQHxdAWyd4zuXYBGY18\nMKiEnKDse8Ex1BtsQ0C/AzbrdSJwFvr/VUnEZ1LaHlaQ+ThJkIGwulh10tUD\nYFGQzu1CUeCbNOmZThs9GFwrvm7SU5sZFG2zFQQxsuKY1qYDGQz3j+61Pz24\nGAH5vGSZxbNFoW2AR6pYhxHdayB6ZtfCT/o5RTPwK3L/ydDFxZqJl9rTO8/g\nqLK8xEtMr9hPV7HIp5LoPlAHgPFIZayuQwhqYPo4QFkMnC4/74CVpWx5Jmfm\naz3D49nztb/Qwyau/Ya0c3FT+kuzZFUGsd0BBnaYdNf1qLd0JtxqOYe6RaiS\nv0pQqqA9WVKAIGYmjgXZ4YaHIaD8DvqMvCMHnN38zpG2z/+gLLMUGGQMq0yP\nzE9aOJRYHEAC2QMtUFRcZEJqIIGiqpXi6FZLmpZxlTu/VxvRWwDPlDAgY8ZP\nS6Bs\r\n=2T8c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEViAKabnBuXD75LVyyPMpbMd0RCp58eaR6yd8kFpilTAiAQeY0Dm0YOBY2frkY0NIpj0Yu9lzjEliF9/NGbgbofRw=="}]},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"directories":{},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minimal-slp-wallet_3.0.3_1628866543723_0.5621768769616664"},"_hasShrinkwrap":false},"3.0.4":{"name":"@abcpros/minimal-slp-wallet","version":"3.0.4","description":"A minimalist Bitcoin Cash (BCH) wallet npm library, for use in a web apps.","main":"dist/minimal-slp-wallet.min.js","scripts":{"start":"node index.js","test":"TEST=unit nyc mocha test/unit/","test:integration":"mocha --timeout 25000 test/integration/","test:temp":"mocha --timeout 25000 -g '#UTXOs' test/integration/","lint":"standard --env mocha --fix","docs":"apidoc -i lib/ -o docs","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha test/unit/ --exit","build":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js","build-debug":"browserify index.js -p tinyify --s SlpWallet -o dist/minimal-slp-wallet.min.js"},"keywords":["bitcoin","bitcoin cash","wallet","javascript","cryptocurrency","react","front end","client","apidoc","slp","tokens"],"author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"license":"MIT","apidoc":{"title":"minimal-slp-wallet","url":"localhost:5000"},"repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet.git"},"dependencies":{"@abcpros/bch-js":"^4.0.2","apidoc":"^0.25.0","bch-donation":"^1.1.1","crypto-js":"^4.0.0"},"devDependencies":{"browserify":"^17.0.0","chai":"^4.2.0","coveralls":"^3.1.0","eslint":"7.11.0","eslint-config-prettier":"^6.13.0","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-standard":"^4.0.1","husky":"^6.0.0","lodash.clonedeep":"^4.5.0","mocha":"^8.2.0","nyc":"^15.1.0","semantic-release":"^17.4.3","sinon":"^9.2.0","standard":"^14.3.4","tinyify":"^3.0.0"},"release":{"publish":[{"path":"@semantic-release/npm","npmPublish":true}]},"husky":{"hooks":{"pre-commit":"npm run lint && npm run build"}},"gitHead":"3987e46a0265e412a95487c9273cb90c70d94698","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet/issues"},"homepage":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet#readme","_id":"@abcpros/minimal-slp-wallet@3.0.4","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-cYrP6u5h5NEGbJP4baj8G1kFIBBdFJr8DnCGStqnRFb3AyG2TB47HbfxdAgHvBecztJiNNFna15BfsjkjbZm4Q==","shasum":"35b9bcf5d76928162208e0ef3ef14916ad4a1c3e","tarball":"https://registry.npmjs.org/@abcpros/minimal-slp-wallet/-/minimal-slp-wallet-3.0.4.tgz","fileCount":26,"unpackedSize":1510699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhux38CRA9TVsSAnZWagAACq0P/jIJxxLE2F/kR6j7pL6c\nkgLbnFHB0dwBDzdxFnBoCqnPHvTsPmAzjCD7NEoNUp/b/AL28kK1UEuqvuFT\np7WQwKdkMEdAf8JTRbxmr3nQdDtWyQuBEYJP9IAaMP49Vgn9Ey99bFLpVJ5w\nn30q/Jg0w1TE+a6vSqJ01ubOgXbJI1n1RxOCChbDIaNfRaCt1LacxW01JI+b\na0YPwVYn6IWjSnPl1NF73+X+Uh+eaq4rR7FCOcMmPPBEEZWQcrPsJh9QvcbA\n92loE4PnPVnUWuWMfvkUgwWFnAtC0cFvHdZnNfEGny5E/53r9EpjxWgDMupl\nT1eNdBpFIA9aHlmXdyy3H4emSTwd+U9jGPAwXj3c1y4H1HKPIJYQDgL4CqfJ\nVW8iSYMRHc77JgiNeVUtG71G6FIzQvFBlVCMx8L1Kg+U2S5WFb6sBUh8Zzoj\nQ93qgplVvRwXgCgI6B1s37oPQ1Otu5vG8SPtAM1UomwU62rGNbOuACfrLBuE\nPTHZwXxYGApPlzN2I2LvdyH0ZmenFp0tH+ygR3ME/IY9WWhIjWKV/QA8mhj+\n263dusdX/ubiVVqWvHvOAs8Yv9/B3iUlfchuZXQvG1BBJxnvm54n5Ca/dZln\nbOyAQ4NmS+RGWYYC1VILmyphChBHwYef88Y3eaVx60210EltLgQlPnaf6Fkk\nl/qX\r\n=XHdI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5JnjikTY+Ap39QEBH4CQG8E/xq+XFzjYMl4HXDoNjKAiAX5e0U3vCka0eD4JYf/D783uYPD5lYov3Foylrr55H6A=="}]},"_npmUser":{"name":"ngocviet","email":"vince.tran8x@gmail.com"},"directories":{},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minimal-slp-wallet_3.0.4_1632472367771_0.4923764558759789"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-11T02:15:58.133Z","3.0.1":"2021-08-11T02:15:58.413Z","modified":"2022-04-04T10:58:11.424Z","3.0.2":"2021-08-12T07:26:44.676Z","3.0.3":"2021-08-13T14:55:43.895Z","3.0.4":"2021-09-24T08:32:47.939Z"},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"description":"A minimalist Bitcoin Cash (BCH) wallet npm library, for use in a web apps.","homepage":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet#readme","keywords":["bitcoin","bitcoin cash","wallet","javascript","cryptocurrency","react","front end","client","apidoc","slp","tokens"],"repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet.git"},"author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"bugs":{"url":"https://github.com/Permissionless-Software-Foundation/minimal-slp-wallet/issues"},"license":"MIT","readme":"# minimal-slp-wallet\n\nThis is a minimalist Bitcoin Cash (BCH) wallet for use with front end web apps.\nIt's token aware, unlike the wallet the code is forked from: [minimal-bch-wallet](https://github.com/Permissionless-Software-Foundation/minimal-bch-wallet).\nIt's intended to be used with the [gatsby-ipfs-web-wallet](https://github.com/Permissionless-Software-Foundation/gatsby-ipfs-web-wallet) web-based wallet, and the [bch-js](https://www.npmjs.com/package/@chris.troutner/bch-js) JavaScript library provided by [FullStack.cash](https://fullstack.cash)\n\nThe default derivation path for the wallet keypair is `m/44'/245'/0'/0/0`. This is the BIP44 standard for SLP token-aware BCH wallets.\n\n## Examples\nThe [examples](./examples) directory shows how to write node.js JavaScript apps that use this library to work with BCH:\n\n- [Create a wallet](./examples/create-wallet.js)\n- [Send BCH](./examples/send-bch.js)\n- [List Tokens](./examples/list-tokens.js)\n- [Send Tokens](./examples/send-tokens.js)\n\n## How to use it?\n\n### Import\n#### Add to your HTML scripts\n```js\n<script src=\"https://unpkg.com/minimal-slp-wallet\"></script>\n```\n\n#### Node module\n```bash\nnpm install minimal-slp-wallet --save\n```\n\n```js\n// module import\nimport BchWallet from \"minimal-slp-wallet\";\n\n// nodejs modules\nconst BchWallet = require(\"minimal-slp-wallet\");\n```\n\n### Create new wallets\n```js\nconst bchWallet = new BchWallet();\nawait bchWallet.walletInfoPromise // Wait for wallet to be created.\n\n// 12 words seed phrase for the wallet\nconsole.log(bchWallet.walletInfo.mnemonic);\n\n// cash address derived from the seed (derivation path: m/44'/245'/0'/0/0)\nconsole.log(bchWallet.walletInfo.cashAddress);\n\n// legacy address derived from the seed (derivation path: m/44'/245'/0'/0/0)\nconsole.log(bchWallet.walletInfo.legacyAddress);\n\n// private key for the BCH address derived from the seed (derivation path: m/44'/245'/0'/0/0)\nconsole.log(bchWallet.walletInfo.privateKey);\n```\n\n### Mnemonic encryption\n```js\nconst bchWallet = new BchWallet(null, {\n  password: \"myStrongPassword\"\n});\n\n// 12 words seed phrase for the wallet\nconsole.log(bchWallet.walletInfo.mnemonic);\n\n// encrypted mnemonic\nconsole.log(bchWallet.walletInfo.mnemonicEncrypted);\n\nconst bchWallet2 = new BchWallet(bchWallet.walletInfo.mnemonicEncrypted, {\n  password: \"myStrongPassword\"\n});\n\n// decrypted mnemonic\nconsole.log(bchWallet2.walletInfo.mnemonic);\n```\n\n### Initialize wallet with mnemonic\n```js\n// initialize with 12 words seed phrase for the wallet\nconst bchWallet = new BchWallet(\"minor bench until split suffer shine series bag avoid cruel orient aunt\");\n\n// initialize for specific HD derivation path\nconst bchWallet2 = new BchWallet(\"minor bench until split suffer shine series bag avoid cruel orient aunt\", {\n    HdPath: \"m/44'/245'/0'/1'\"\n});\n```\n\n### Send transactions\nYou can send funds to other BCH wallets. You can distribute funds to N users by simply extending the receiver array.\n```js\nconst bchWallet = new BchWallet();\n\nconst receivers = [\n    {\n        address: \"bitcoincash:qp2rmj8heytjrksxm2xrjs0hncnvl08xwgkweawu9h\",\n        // amount in satoshis, 1 satoshi = 0.00000001 Bitcoin\n        amountSat: 100000\n    }\n];\n\nconst txid = await bchWallet.send(receivers);\n\n// Transaction ID\n// you can then see the transaction in one of the explorers\n// example: `https://explorer.bitcoin.com/bch/tx/${tx.txid}`;\nconsole.log(txid);\n```\n\n### Send Tokens\nYou can send tokens in a similar way:\n```js\n\nconst receiver = {\n  address: \"simpleledger:qpeq7xx5x3a2jfa0x0w8cjqp4v9cm842vgsjqwzvfk\",\n  tokenId: \"a4fb5c2da1aa064e25018a43f9165040071d9e984ba190c222a7f59053af84b2\",\n  qty: 1.25\n}\n\nconst txid = await bchWallet.sendTokens(receiver);\n\n// Transaction ID\nconsole.log(txid);\n```\n\n*Note:* Only single token sends are supported at the moment. i.e. One token type\nper receiver per transaction.\n\n\n### Get Wallet Balance\nGets balance (confirmed + unconfirmed) for an BCH address\n\n```js\n// will get a balance for bchWallet.cashAddress\nconst myBalance = await bchWallet.getBalance();\n\n// will get a balance for any address\nconst balanceOfOtherAddress = await bchWallet.getBalance(\"bitcoincash:qp2rmj8heytjrksxm2xrjs0hncnvl08xwgkweawu9h\");\n```\n\n### List Tokens\nList the SLP tokens held by an address.\n```js\n// will get token balance for bchWallet.cashAddress\nconst myBalance = await bchWallet.listTokens();\n\n// will get a balance for any address\nconst balanceOfOtherAddress = await bchWallet.listTokens(\"simpleledger:qpeq7xx5x3a2jfa0x0w8cjqp4v9cm842vgsjqwzvfk\");\n```\n\n### Get Wallet Transaction History\nGet an array of TXIDs of the transactions involving this wallet.\n\n```js\n// will get transaction history for bchWallet.cashAddress\nconst myTransactions = await bchWallet.getTransactions();\n\n// will get transaction history for any address\nconst txHistoryOfOtherAddress = await bchWallet.getTransactions(\"bitcoincash:qp2rmj8heytjrksxm2xrjs0hncnvl08xwgkweawu9h\");\n```\n\n\n### Error Handling\n```js\ntry {\n    tx = await bchWallet.send([\n        { address: \"bitcoincash:qrlhkg4d9z3y88j246a6482xzregxaxnfsagmd2kh3\", amountSat: 1000 }\n    ]);\n} catch (err) {\n    console.error(err);\n\n    if (err.message && err.message.indexOf(\"Insufficient\") > -1) {\n        return alert(\"Insufficient balance on your BCH account.\");\n    }\n\n    return alert(\"Error. Try again later.\");\n}\n```\n\n### Save keys in the browser\nWhile developing BCH apps, remember to never send the private keys / mnemonic / seed phrase to your servers.\n1. Your servers can be hacked\n2. Depending on your jurisdiction you may not have the allowance to manage the funds of your users\n```js\nconst bchWallet1 = new BchWallet();\n\n// save the mnemonic for later\nlocalStorage.setItem(\"BCH_MNEMONIC\", bchWallet1.walletInfo.mnemonic);\n\n// retrieve mnemonic to initialize the wallet\nconst bchWallet2 = new BchWallet(localStorage.getItem(\"BCH_MNEMONIC\"));\n```\n\n\n# Licence\n[MIT](LICENSE.md)\n\n\ntest\n","readmeFilename":"README.md"}