{"_id":"@abcpros/bch-js","_rev":"3-7e8b7986cb094b4abd76f48e0649ac79","name":"@abcpros/bch-js","dist-tags":{"latest":"4.0.2"},"versions":{"4.0.0":{"name":"@abcpros/bch-js","version":"4.0.0","description":"The FullStack.cash JavaScript library for Bitcoin Cash and SLP Tokens","author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"contributors":[{"name":"Gabriel Cardona","email":"gabriel@bitcoin.com"},{"name":"Stoyan Zhekov","email":"zh@zhware.net"}],"main":"src/bch-js","scripts":{"test":"nyc mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/","test:integration":"npm run test:integration:bchn","test:integration:nft":"export RESTURL=https://bchn.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 -g '#nft1' test/integration/chains/bchn/slp.js","test:integration:abc":"export RESTURL=https://abc.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/abc/","test:integration:bchn":"export RESTURL=https://bchn.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/","test:integration:testnet":"IS_USING_FREE_TIER=true mocha --timeout 30000 test/integration/chains/testnet/","test:integration:local:abc":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/","test:integration:local:bchn":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/","test:integration:local:testnet":"RESTURL=http://localhost:4000/v5/ mocha --timeout 30000 test/integration/chains/testnet","test:integration:decatur:bchn":"export RESTURL=http://192.168.0.36:3000/v5/ && mocha --timeout 30000 test/integration/","test:integration:temp:bchn":"export RESTURL=http://157.90.174.219:3000/v5/ && mocha --timeout 30000 test/integration/","test:temp":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#Encryption' test/integration/","test:temp2":"mocha --timeout=30000 -g '#TransactionLib' test/unit/","test:temp3":"export RESTURL=https://bchn.fullstack.cash/v5/ && mocha --timeout 30000 -g '#DSProof' test/integration/chains/","test:temp4":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#decodeOpReturn' test/integration/","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha --timeout 25000 test/unit/","docs":"apidoc -i src/ -o docs","lint":"standard --env mocha --fix"},"license":"MIT","homepage":"https://github.com/Permissionless-Software-Foundation/bch-js","repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/bch-js.git"},"dependencies":{"@abcpros/xaddress":"^0.0.6","@psf/bip21":"^2.0.1","@psf/bip32-utils":"^1.0.0","@psf/bitcoincash-ops":"^2.0.0","@psf/bitcoincashjs-lib":"^4.0.2","@abcpros/coininfo":"^5.2.0","@uppy/core":"^1.10.4","@uppy/tus":"^1.5.12","axios":"^0.21.1","bc-bip68":"^1.0.5","bchaddrjs-slp":"^0.2.5","bigi":"^1.4.2","bignumber.js":"^9.0.0","bip-schnorr":"^0.3.0","bip38":"^2.0.2","bip39":"^3.0.2","bip66":"^1.1.5","bitcoinjs-message":"^2.0.0","bs58":"^4.0.1","cashaddrjs":"^0.3.3","ini":"^1.3.8","randombytes":"^2.0.6","safe-buffer":"^5.1.2","satoshi-bitcoin":"^1.0.4","slp-mdm":"0.0.6","slp-parser":"0.0.4","wif":"^2.0.6"},"devDependencies":{"apidoc":"^0.17.7","assert":"^2.0.0","chai":"^4.1.2","coveralls":"^3.0.2","eslint":"5.16.0","eslint-config-prettier":"^6.0.0","eslint-config-standard":"^14.1.0","eslint-plugin-node":"^9.1.0","eslint-plugin-prettier":"^3.1.0","eslint-plugin-standard":"^4.0.0","husky":"^4.3.6","lodash.clonedeep":"^4.5.0","mocha":"^6.1.4","node-mocks-http":"^1.7.0","nyc":"^14.1.0","prettier":"^1.18.2","semantic-release":"^17.3.9","sinon":"^7.3.2","standard":"^16.0.3"},"apidoc":{"title":"bch-js","url":"bchjs."},"husky":{"hooks":{"pre-commit":"npm run lint"}},"gitHead":"4dc88c0af34373acbf9e2897aa442066a175c037","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/bch-js/issues"},"_id":"@abcpros/bch-js@4.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-JYII6h9bL0F0qo4c3johAhSPq/gyahyDNIK9jEBgKTxvEoRw6A4k7zUO/WZTWb02XFEwNJxjX7btwNwmerlLYA==","shasum":"7f9e3a165d4b3ce073a7c95c7275d4e687be8d8e","tarball":"https://registry.npmjs.org/@abcpros/bch-js/-/bch-js-4.0.0.tgz","fileCount":135,"unpackedSize":1419870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEy4iCRA9TVsSAnZWagAAeToP/2NpCwDy6hzEEfSaafX9\nJ6VhPdM+eyvBhxbbox1+EM/V6ODrfUT3MjOLzkV/s0R207S0Yx5qiLYePfA2\nnAY5Ey9UtFYlEOivt7U/eTBlGWZZaluLdvnZP3P6aXJ4fWyyWfUd3McM9Xxh\nkmToGaV0zOachFvpt0nm27r6QjXZMy3xUTZ+WQBrR7kIIUYZVIQpEKQVLnjs\nYTpq0yREKHVXLxDSA3u6vMGLzlUyJ+Ey8tAh5jB1WbrEw871BrxDE33yo1zh\nPHSugLiasKrvN6VzVo1bl8kX+wOOJl9DdDArS5qCctsf33Z/ov/Srj60yuuv\n5jE4Iv8bnzY3Z5wqBYLeooMuS+ihI8cinWtMlz8d2BLpQ8t0fbigt3o4e2zs\nNtN56KsZnuuxbVC1o0e5FElkVi/kUIvBjzAKpYuHNwmnVtewgh9CrxPoKHo/\nZ2UM44kZ1A4LmSUCGpxrQH0QSMgveZ1EaJMqgCok6UB1mttFHypW35KuNRnu\n0of2N8xXS7DgGe63DKgh3tz9NdLYNTw+WPiLM7phLQ2czoT4Vr/H+IHn+Re+\nXf3/nDzLcoaaWhnDFy5FFoXqiAGbvTeex7XRGZ8BXmFGWIHw2rj29bI6WfTP\nkqRi1JV4z7chhbtKMBYFJJ61eKgpmL2MyLM3mNt2pMMEKAD1Q6oKDzdIKNjE\nODzf\r\n=uC/C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEdO0wSAr0pwf/Fm97eH8JQ8nZgrdt89npm3DEXmVxRBAiEAm6x4HqKYLmqidxW8iwWFaTX+0xdgVL7RBDjIYDRiJXQ="}]},"_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/bch-js_4.0.0_1628646946476_0.33233298229803676"},"_hasShrinkwrap":false},"4.0.1":{"name":"@abcpros/bch-js","version":"4.0.1","description":"The FullStack.cash JavaScript library for Bitcoin Cash and SLP Tokens","author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"contributors":[{"name":"Gabriel Cardona","email":"gabriel@bitcoin.com"},{"name":"Stoyan Zhekov","email":"zh@zhware.net"}],"main":"src/bch-js","scripts":{"test":"nyc mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/","test:integration":"npm run test:integration:bchn","test:integration:nft":"export RESTURL=https://bchn.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 -g '#nft1' test/integration/chains/bchn/slp.js","test:integration:abc":"export RESTURL=https://abc.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/abc/","test:integration:bchn":"export RESTURL=https://bchn.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/","test:integration:testnet":"IS_USING_FREE_TIER=true mocha --timeout 30000 test/integration/chains/testnet/","test:integration:local:abc":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/","test:integration:local:bchn":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/","test:integration:local:testnet":"RESTURL=http://localhost:4000/v5/ mocha --timeout 30000 test/integration/chains/testnet","test:integration:decatur:bchn":"export RESTURL=http://192.168.0.36:3000/v5/ && mocha --timeout 30000 test/integration/","test:integration:temp:bchn":"export RESTURL=http://157.90.174.219:3000/v5/ && mocha --timeout 30000 test/integration/","test:temp":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#Encryption' test/integration/","test:temp2":"mocha --timeout=30000 -g '#TransactionLib' test/unit/","test:temp3":"export RESTURL=https://bchn.fullstack.cash/v5/ && mocha --timeout 30000 -g '#DSProof' test/integration/chains/","test:temp4":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#decodeOpReturn' test/integration/","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha --timeout 25000 test/unit/","docs":"apidoc -i src/ -o docs","lint":"standard --env mocha --fix"},"license":"MIT","homepage":"https://github.com/Permissionless-Software-Foundation/bch-js","repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/bch-js.git"},"dependencies":{"@abcpros/xaddress":"^0.0.9","@psf/bip21":"^2.0.1","@psf/bip32-utils":"^1.0.0","@psf/bitcoincash-ops":"^2.0.0","@psf/bitcoincashjs-lib":"^4.0.2","@abcpros/coininfo":"^5.2.0","@uppy/core":"^1.10.4","@uppy/tus":"^1.5.12","axios":"^0.21.1","bc-bip68":"^1.0.5","bchaddrjs-slp":"^0.2.5","bigi":"^1.4.2","bignumber.js":"^9.0.0","bip-schnorr":"^0.3.0","bip38":"^2.0.2","bip39":"^3.0.2","bip66":"^1.1.5","bitcoinjs-message":"^2.0.0","bs58":"^4.0.1","cashaddrjs":"^0.3.3","ini":"^1.3.8","randombytes":"^2.0.6","safe-buffer":"^5.1.2","satoshi-bitcoin":"^1.0.4","slp-mdm":"0.0.6","slp-parser":"0.0.4","wif":"^2.0.6"},"devDependencies":{"apidoc":"^0.17.7","assert":"^2.0.0","chai":"^4.1.2","coveralls":"^3.0.2","eslint":"5.16.0","eslint-config-prettier":"^6.0.0","eslint-config-standard":"^14.1.0","eslint-plugin-node":"^9.1.0","eslint-plugin-prettier":"^3.1.0","eslint-plugin-standard":"^4.0.0","husky":"^4.3.6","lodash.clonedeep":"^4.5.0","mocha":"^6.1.4","node-mocks-http":"^1.7.0","nyc":"^14.1.0","prettier":"^1.18.2","semantic-release":"^17.3.9","sinon":"^7.3.2","standard":"^16.0.3"},"apidoc":{"title":"bch-js","url":"bchjs."},"husky":{"hooks":{"pre-commit":"npm run lint"}},"gitHead":"c5fcccf291629dfb542d0b583e80584156af5304","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/bch-js/issues"},"_id":"@abcpros/bch-js@4.0.1","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-XuOL0rzqyZKXg+mxTPg0Ti53+vqtkyLk+AYBslhBZsqUAAqlFamAv9m1XfiqPWcBsOwdlpQfmYIs2QubskwuQQ==","shasum":"7fa0ee5c8d4a0b45cc9c528596f5a6099359d195","tarball":"https://registry.npmjs.org/@abcpros/bch-js/-/bch-js-4.0.1.tgz","fileCount":135,"unpackedSize":1424026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFMsrCRA9TVsSAnZWagAARWQP/1/PjSIIygqvwKMPJktx\nzFyl04wFUpHKPm0NzpE2cwOC6gSyBdjOPmCyub7+q210TYrC6Dr4jIMnAU3d\njDeDTobTXk3LWfchLj1+tlhMCrVPri8m6cT34PgmC96bjIhRVKHzntFtgPDZ\nYkvgblSUBiOaoJx7QPqQ6JeWjH0FPlT4rWY9aoGyjGB0Hpe0CwgSuE0Cx623\nDmKUNF9XMsuDIqIsG91zZq6wSLE5cdifQF5hN969KWupDmnENbGDTicrzdY6\neCTwLUiueE0zlcJT7vrk65qDSk24Hkl7XNQhnhDo5/32nGtPs5SYTLKhfuBT\nEjl7PYSd8TmTmq8u8bdxc77/tg2cRB3GUE54h7u8mo9jlf5W5AQf7g84xZjY\n1zmcG3CC8e8ZUZHbj3WpfajaC4YuyQZLRXNeBnYLpi82EwTVGUQg8p7t+G4N\nomPGepS/sMd+lNs3vreIlOcb1DZ2KgxF8/5hcHp5fDPob9WlmgrMKhhWEmzS\ncZhvPsvTiAH4M1Mt2EqIa46NYrUcKqji9xOWU+6DHtUzsahQN5CS8ucDo8jS\nBxy68WaTeaMEoXD3EV7w6FIMcha+N6PvRUDsUy28xxUgHQwROTFL33bfE6Cs\n94E6WfIEDLpMCuZt/leVc/YzsB6B2W/8iQEBgSUqDHrfG2Qo+V/6u78uAG+d\n4QrF\r\n=D/TY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICuUkYdM8huAPWUbxJev5cqkn2xKCcCfNccg5EEHD6FcAiEAilNUROdxF9kLK3zI5i2IPGuGFNpo1q8qU+OMeLlepfU="}]},"_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/bch-js_4.0.1_1628752683199_0.9027616261446176"},"_hasShrinkwrap":false},"4.0.2":{"name":"@abcpros/bch-js","version":"4.0.2","description":"The FullStack.cash JavaScript library for Bitcoin Cash and SLP Tokens","author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"contributors":[{"name":"Gabriel Cardona","email":"gabriel@bitcoin.com"},{"name":"Stoyan Zhekov","email":"zh@zhware.net"}],"main":"src/bch-js","scripts":{"test":"nyc mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/","test:integration":"npm run test:integration:bchn","test:integration:nft":"export RESTURL=https://bchn.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 -g '#nft1' test/integration/chains/bchn/slp.js","test:integration:abc":"export RESTURL=https://abc.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/abc/","test:integration:bchn":"export RESTURL=https://bchn.fullstack.cash/v5/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/","test:integration:testnet":"IS_USING_FREE_TIER=true mocha --timeout 30000 test/integration/chains/testnet/","test:integration:local:abc":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/","test:integration:local:bchn":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/","test:integration:local:testnet":"RESTURL=http://localhost:4000/v5/ mocha --timeout 30000 test/integration/chains/testnet","test:integration:decatur:bchn":"export RESTURL=http://192.168.0.36:3000/v5/ && mocha --timeout 30000 test/integration/","test:integration:temp:bchn":"export RESTURL=http://157.90.174.219:3000/v5/ && mocha --timeout 30000 test/integration/","test:temp":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#Encryption' test/integration/","test:temp2":"mocha --timeout=30000 -g '#TransactionLib' test/unit/","test:temp3":"export RESTURL=https://bchn.fullstack.cash/v5/ && mocha --timeout 30000 -g '#DSProof' test/integration/chains/","test:temp4":"export RESTURL=http://localhost:3000/v5/ && mocha --timeout 30000 -g '#decodeOpReturn' test/integration/","coverage":"nyc report --reporter=text-lcov | coveralls","coverage:report":"nyc --reporter=html mocha --timeout 25000 test/unit/","docs":"apidoc -i src/ -o docs","lint":"standard --env mocha --fix"},"license":"MIT","homepage":"https://github.com/Permissionless-Software-Foundation/bch-js","repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/bch-js.git"},"dependencies":{"@abcpros/coininfo":"^5.2.0","@abcpros/xaddress":"^0.0.9","@psf/bip21":"^2.0.1","@psf/bip32-utils":"^1.0.0","@psf/bitcoincash-ops":"^2.0.0","@psf/bitcoincashjs-lib":"^4.0.2","@uppy/core":"^1.10.4","@uppy/tus":"^1.5.12","axios":"^0.21.1","bc-bip68":"^1.0.5","bchaddrjs-slp":"^0.2.5","bigi":"^1.4.2","bignumber.js":"^9.0.0","bip-schnorr":"^0.3.0","bip38":"^2.0.2","bip39":"^3.0.2","bip66":"^1.1.5","bitcoinjs-message":"^2.0.0","bs58":"^4.0.1","cashaddrjs":"^0.3.3","ini":"^1.3.8","randombytes":"^2.0.6","safe-buffer":"^5.1.2","satoshi-bitcoin":"^1.0.4","slp-mdm":"0.0.6","slp-parser":"0.0.4","wif":"^2.0.6"},"devDependencies":{"apidoc":"^0.17.7","assert":"^2.0.0","chai":"^4.1.2","coveralls":"^3.0.2","eslint":"5.16.0","eslint-config-prettier":"^6.0.0","eslint-config-standard":"^14.1.0","eslint-plugin-node":"^9.1.0","eslint-plugin-prettier":"^3.1.0","eslint-plugin-standard":"^4.0.0","husky":"^4.3.6","lodash.clonedeep":"^4.5.0","mocha":"^6.1.4","node-mocks-http":"^1.7.0","nyc":"^14.1.0","prettier":"^1.18.2","semantic-release":"^17.3.9","sinon":"^7.3.2","standard":"^16.0.3"},"apidoc":{"title":"bch-js","url":"bchjs."},"husky":{"hooks":{"pre-commit":"npm run lint"}},"gitHead":"a027f63b61132f0c337b9bac725b2b846e818a0c","bugs":{"url":"https://github.com/Permissionless-Software-Foundation/bch-js/issues"},"_id":"@abcpros/bch-js@4.0.2","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-4XSGrCJd+IBLiXVgNFkeSdqmH3GLtTIObGrS7m727XiLDmXPItL2akVovC8kdZKoPr/UC8xHDMpedZro2JesCg==","shasum":"fc8b0da8a4fa44a28fb98e20e25ad4380a091818","tarball":"https://registry.npmjs.org/@abcpros/bch-js/-/bch-js-4.0.2.tgz","fileCount":135,"unpackedSize":1424024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFocaCRA9TVsSAnZWagAAxkIP/jhc1VNDI9Yi6jRxFT++\n2BlyDjPTkKnc1hJa1RfENasiy58NzqeovzKSUTj6SRjKsHMzzKhOQUHiVq1g\nvcYmH5y0bLODwtaPX5v+sUf7bA75KG4NoEYe4ABP4Psqj1lWY6sZpZCao68O\njky89AgotfBgpPbv/qs+XD7uKhxO5elFfQOgJpk/U6535uFFflC0wXYDICVc\ncz6Z4w2aiQErDzcRPlzBWbuAIQPwLddWE3dyrhI9Pf0vmuTPP0LYml7m/BsF\n/LGZv6CTfCLS73pGInl/Sw9r2SWKwXeVXFVg+WDY7QcXiU/ze9Wr958QW806\nBcQpbyhuGdzE3Y+WgDeSA9FQQwltYqaFne/2oIlHk7q3mn5IYBZ640/7QC8m\nvjNwnTpbgEohKD5HgrrGg5Gjf66YfMgPcZkOVQTEyl/1zAF/rxJryxL8J7h7\nSfjgL0wd2bNjvH0gu/FVExe52+C/ulrKaoBjkYCGXFL0is79o0GrVI7vv+bG\n3E9lkqCV264K884gKGpJAXryyMDs7miLKsYy8oit++80t5Fm/QAYSghULDR/\n1pFsZjTzJ6H86A+X4cIohQzgGpUGa0iVsiBlssSQQvNyaSjaWVwIs9jnRPtt\nBW9s/rNFIKjEQjH2EZ9093dee4yb+nOj3t9mdmBWQVOAaaAGIuErej5jJCYG\nKZKc\r\n=xsVG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj11ZwWcstSho+ke6tPtFzJf1afC3mbtgVB2OPnVWROQIgNN9oBeEWmgRsfs6kVTtN3F7unQpB/xH737KHeiqchzs="}]},"_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/bch-js_4.0.2_1628866330460_0.8113801611852574"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-11T01:55:46.387Z","4.0.0":"2021-08-11T01:55:46.711Z","modified":"2022-04-04T10:58:06.298Z","4.0.1":"2021-08-12T07:18:03.563Z","4.0.2":"2021-08-13T14:52:10.625Z"},"maintainers":[{"name":"ngocviet","email":"vince.tran8x@gmail.com"}],"description":"The FullStack.cash JavaScript library for Bitcoin Cash and SLP Tokens","homepage":"https://github.com/Permissionless-Software-Foundation/bch-js","repository":{"type":"git","url":"git+https://github.com/Permissionless-Software-Foundation/bch-js.git"},"contributors":[{"name":"Gabriel Cardona","email":"gabriel@bitcoin.com"},{"name":"Stoyan Zhekov","email":"zh@zhware.net"}],"author":{"name":"Chris Troutner","email":"chris.troutner@gmail.com"},"bugs":{"url":"https://github.com/Permissionless-Software-Foundation/bch-js/issues"},"license":"MIT","readme":"# bch-js\n\n[![Version](https://img.shields.io/npm/v/@psf/bch-js)](https://www.npmjs.com/package/@psf/bch-js)\n[![Downloads/week](https://img.shields.io/npm/dw/@psf/bch-js)](https://npmjs.org/package/@psf/bch-js)\n[![License](https://img.shields.io/npm/l/@psf/bch-js)](https://github.com/Permissionless-Software-Foundation/bch-js/blob/master/LICENSE.md)\n[![js-standard-style](https://img.shields.io/badge/javascript-standard%20code%20style-green.svg?style=flat-square)](https://github.com/feross/standard)\n\n[bch-js](https://www.npmjs.com/package/@psf/bch-js) is a JavaScript npm library for creating web and mobile apps that can interact with the Bitcoin Cash (BCH) blockchains. It can be used for free, but requires an account on [FullStack.cash](https://fullstack.cash) for increased rate limits. Learn more from [this article](https://troutsblog.com/research/bitcoin-cash/how-to-bch-full-stack-developer) about Full Stack Bitcoin Cash development.\n\n### Quick Start Videos:\n\nHere are two YouTube walk-through videos to help you get started:\n\n- [Introduction to bch-js and the bch-js-examples repository](https://youtu.be/GD2i1ZUiyrk)\n- [Working with the FullStack.cash JWT token](https://youtu.be/GD2i1ZUiyrk)\n\n### Quick Links\n\n- [npm Library](https://www.npmjs.com/package/@psf/bch-js)\n- [Documentation](https://bchjs.fullstack.cash/)\n- [Examples](https://github.com/Permissionless-Software-Foundation/bch-js-examples)\n- [bchn.fullstack.cash](https://bchn.fullstack.cash) - The REST API this library talks to by default.\n- [FullStack.cash](https://fullstack.cash) - cloud-based infrastructure for application developers.\n- [FullStack.cash Account](https://fullstack.cash/login) - Get your API key to unlock increased rate limits.\n- [Permissionless Software Foundation](https://psfoundation.cash) - The organization that maintains this library.\n\n### Quick Notes\n\n- Install library: `npm install @psf/bch-js`\n\n- Instantiate the library in your code:\n\n```\nconst BCHJS = require(\"@psf/bch-js\")\nlet bchjs = new BCHJS() // Defaults to BCHN network.\n\n// testnet\nbchjs = new BCHJS({ restURL: 'https://testnet3.fullstack.cash/v4/' })\n```\n\nThis library is intended to be paired with\nthe [bch-api](https://github.com/Permissionless-Software-Foundation/bch-api) REST API, and the infrastructure provided by [FullStack.cash](https://fullstack.cash). The `restURL` property can be changed to work with different Bitcoin Cash networks:\n\n- BCHN Mainnet REST API server: https://bchn.fullstack.cash/v4/\n- ABC Mainnet REST API server: https://abc.fullstack.cash/v4/\n- Testnet3 REST API server: https://testnet3.fullstack.cash/v4/\n- Check server status: https://metrics.fullstack.cash\n\n### API Key\n\nThe [bch-api](https://github.com/Permissionless-Software-Foundation/bch-api) REST API hosted by [FullStack.cash](https://fullstack.cash) uses JWT tokens to pay for increased\nrate limits when interacting with the back end server. See [this article](https://troutsblog.com/research/bitcoin-cash/how-to-bch-full-stack-developer) if you want to understand the system-as-a-whole. The JWT token can be fed to bch-js _implicitly_ or _explicitly_.\n\n- Implicitly: bch-js will detect your JWT token if you set the `BCHJSTOKEN` environment variable.\n- Explicitly: You can directly feed in the JWT token with the `apiToken` property when instantiating the library. Here is an example:\n\n```\nconst BCHJS = require(\"@psf/bch-js\")\nlet bchjs = new BCHJS({\n  restURL: 'https://bchn.fullstack.cash/v5/',\n  apiToken: 'eyJhbGciO...' // Your JWT token here.\n})\n```\n\n### Gatsby\n\nbch-js is included in this [gatsby-ipfs-template](https://github.com/Permissionless-Software-Foundation/gatsby-ipfs-template) for building uncensorable web apps that can interact with the blockchain. When building a Gatsby (or other front-end app that uses Webpack), you'll need to add these lines to your `gatsby-node.js` file, as per [this issue](https://github.com/gatsbyjs/gatsby/issues/564):\n\n```\nexports.onCreateWebpackConfig = ({ actions }) => {\n  actions.setWebpackConfig({\n    node: {\n      fs: 'empty'\n    }\n  })\n}\n```\n\nThis is because the new IPFS class in bch-js uses the fs library for uploading files, which is not supported by Gatsby.\n\nWe also provide [minimal-slp-wallet-web](https://www.npmjs.com/package/minimal-slp-wallet-web) as a basic Bitcoin Cash wallet with SLP support, for front end projects. bch-js is encapsulated inside the instantiation of the library Class.\n\n## Features\n\n- [ECMAScript 2017 standard JavaScript](https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017) used instead of TypeScript. Works\n  natively with node.js v10 or higher.\n\n- Full SLP tokens support: bch-js has full support for all SLP token functionality, including send, mint, and genesis transactions. It also fully support all aspects of [non-fugible tokans (NFTs)](https://www.youtube.com/watch?v=vvlpYUx6HRs).\n\n- [Semantic Release](https://github.com/semantic-release/semantic-release) for\n  continuous delivery using semantic versioning.\n\n- [Greenkeeper](https://greenkeeper.io/) automatic dependency management for\n  automatically maintaining the latest, most secure dependencies.\n\n- [IPFS uploads](https://ipfs.io) of all files and dependencies, to backup\n  dependencies in case they are ever inaccessible from GitHub or npm.\n\n## Documentation:\n\nFull documentation for this library can be found here:\n\n- [Documentation](https://bchjs.fullstack.cash/)\n\nbch-js uses [APIDOC](http://apidocjs.com/) so that documentation and working code\nlive in the same repository. To generate the documentation:\n\n- `npm run docs`\n- Open the generated `docs/index.html` file in a web browser.\n\n## Support\n\nHave questions? Need help? Join our community support\n[Telegram channel](https://t.me/bch_js_toolkit)\n\n## IPFS Releases\n\nCopies of this repository are also published on [IPFS](https://ipfs.io).\n\n- v4.5.4: QmWv3pxJy3MH8vU5nLUVyzqFxfNKXLQQEnz1rgStNuQijd\n\n## License\n\n[MIT](LICENSE.md)\n","readmeFilename":"README.md"}