{"_id":"@aloe2/utxo-lib","name":"@aloe2/utxo-lib","dist-tags":{"aloe-bbc82c9c9":"2.4.20228282226","latest":"2.4.20228282226"},"versions":{"2.4.20228282226":{"name":"@aloe2/utxo-lib","version":"2.4.20228282226","description":"Client-side Bitcoin JavaScript library","main":"./dist/src/index.js","engines":{"node":">=10.22.0 <17","npm":">=3.10.10"},"keywords":["bitgo","utxo","bitcoinjs","bitcoin","zcash","dash","browserify","javascript"],"scripts":{"prepare":"npm run build","build":"yarn tsc --build --incremental --verbose .","coverage-report":"nyc report --reporter=lcov","coverage-html":"nyc report --reporter=html","coverage":"npm run build && nyc --check-coverage mocha","test":"npm run coverage","unit-test":"mocha","lint":"eslint --quiet .","fmt":"prettier --write '{src,test}/**/*.{ts,js}'","precommit":"yarn lint-staged"},"nyc":{"include":["src/**"],"branches":78,"functions":90,"lines":88},"repository":{"type":"git","url":"git+https://github.com/BitGo/BitGoJS.git","directory":"modules/utxo-lib"},"dependencies":{"@aloe2/blake2b":"^3.0.20228282226","@noble/secp256k1":"1.6.3","bip174":"npm:@bitgo/bip174@3.0.0","bip32":"^3.0.1","bitcoin-ops":"^1.3.0","bitcoinjs-lib":"npm:@bitgo/bitcoinjs-lib@7.0.0-rc.1","bn.js":"^5.2.1","bs58check":"^2.1.2","cashaddress":"^1.1.0","create-hash":"^1.2.0","create-hmac":"^1.1.7","ecpair":"npm:@bitgo/ecpair@2.1.0-rc.0","elliptic":"^6.5.2","typeforce":"^1.11.3","varuint-bitcoin":"^1.1.2"},"devDependencies":{"@types/elliptic":"^6.4.12","@types/fs-extra":"^9.0.12","@types/node":"^14.18.12","axios":"^0.21.1","debug":"^3.1.0","fs-extra":"^9.1.0"},"lint-staged":{"*.{js,ts}":["yarn prettier --write","yarn eslint --fix"]},"publishConfig":{"access":"public"},"author":{"name":"BitGo SDK Team","email":"sdkteam@bitgo.com"},"license":"MIT","gitHead":"ff34e1949ea30d3016d4a8e17d459eee4436eda5","types":"./dist/src/index.d.ts","bugs":{"url":"https://github.com/BitGo/BitGoJS/issues"},"homepage":"https://github.com/BitGo/BitGoJS#readme","_id":"@aloe2/utxo-lib@2.4.20228282226","_nodeVersion":"14.18.0","_npmVersion":"lerna/5.5.0/node@v14.18.0+x64 (darwin)","dist":{"integrity":"sha512-RP1gMHX5k5suMOf1SZfsqCvdjFwruNWWse7VGhrLfqsCesyPa2tceY/DXPE1OT9t+p4yWyNgLUT4RbCwrIRzWw==","shasum":"5b2e1ca976b2738f6ed9acdc9376068b16464363","tarball":"https://registry.npmjs.org/@aloe2/utxo-lib/-/utxo-lib-2.4.20228282226.tgz","fileCount":198,"unpackedSize":876633,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdQGtRx596RgKs1AamOFKRWyI0eZZfN1LhT9YBwlV07AiBrZEjqMsfDTiLb/h2HCdn8jwMdlgNA3QLnH46oveLANA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNS5WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNOg//c+WohZ1X50ebNdycq4RzTuwMEP8LBwohivnvzykCEc5900li\r\nwCO35wUZbpznqTrEuHsTdrqmx5dD9tZCrFGo5e8//wMS4g7WHT81IQCsnW0c\r\nlHSDa3Q+99gQZtqjE/jqpJIICwf/4g64gWUkENOIr3abRSgyqLJvSESTCd7a\r\nLc3o93Z8cAtd6IX38aAl2cUXax9lg9c52fXja8CgN2lvQtu5kCt/ooSlFDYc\r\n2PhSSCOklhBs7wz5/ONXsFWa1pCEdaYj6j9zGMh7NcBPv5ueesu25+xmd+bX\r\nPDp3FQoaLG0H74yNaG2Lwd53bRxLdeXwdA1By5FFPfMv0sjPgYoscZcSxX7k\r\nvJG5hrcza1zDcfzOCCrSlxCr6IyeOyi5CLPxG6mKwfE7xMKSlov56wjFM5C3\r\nc16DzWezdfZv0UNaPp/62nC+jXY2yJkXPBZCsDzA6vv4lH1vFTdyEvF8LLrM\r\nwZzBstX6GgqK6eUC7bnQuXFnef7DNOQIK9LqM7sPNtoUYrYWD7TFtiFfKiaZ\r\nhCFKn5Vnngsw1CsL3El9iXA3yg3dW5C3xduUcx8E0OOxlTbxTEqzl7casAHa\r\nGOlN6weV/Lve70ggu36aRe2J46xx33b7lIwSpiIol88CMP/AwvY2SqlO7/1d\r\nynHuosdaWtrchpdrT6kG2PrSl3YM8m82Y8M=\r\n=dTNr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aaronloe","email":"aaronloe@gmail.com"},"directories":{},"maintainers":[{"name":"aaronloe","email":"aaronloe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utxo-lib_2.4.20228282226_1664429653825_0.5044891169854082"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-29T05:34:13.765Z","2.4.20228282226":"2022-09-29T05:34:14.070Z","modified":"2022-09-29T05:34:14.249Z"},"maintainers":[{"name":"aaronloe","email":"aaronloe@gmail.com"}],"description":"Client-side Bitcoin JavaScript library","homepage":"https://github.com/BitGo/BitGoJS#readme","keywords":["bitgo","utxo","bitcoinjs","bitcoin","zcash","dash","browserify","javascript"],"repository":{"type":"git","url":"git+https://github.com/BitGo/BitGoJS.git","directory":"modules/utxo-lib"},"author":{"name":"BitGo SDK Team","email":"sdkteam@bitgo.com"},"bugs":{"url":"https://github.com/BitGo/BitGoJS/issues"},"license":"MIT","readme":"# BitGo UTXO library\n\nThis library is a wrapper around [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) adding altcoin support.\n\n## Features\n- Multicoin support: Configurable behaviour based on [network](https://github.com/BitGo/bitgo-utxo-lib/blob/master/src/networks.js) objects.\n- Backed by [BitGo](https://www.bitgo.com/info/)\n\n## Installation\n\n``` bash\n# using npm\nnpm install @bitgo/utxo-lib\n\n# using yarn\nyarn add @bitgo/utxo-lib\n```\n\n## Setup\n\nJavaScript (ESM)\n``` javascript\nimport * as utxolib from '@bitgo/utxo-lib'\n```\n\nNodeJS (CJS)\n``` javascript\nconst utxolib = require('@bitgo/utxo-lib')\n```\n\n## Usage\n\nSupport for parsing and building altcoin transactions is provided by the following methods\n\n``` typescript\nutxolib.bitgo.createTransactionFromBuffer(buffer, network): UtxoTransaction\n// (similarly `createTransactionFromHex(string, network)`)\n\nutxolib.bitgo.createTransactionBuilderForNetwork(network): UtxoTransactionBuilder\n\nutxolib.bitgo.createTransactionBuilderFromTransaction(tx): UtxoTransactionBuilder\n```\n\nThe `UtxoTransaction(Builder)` classes have the same interface as the `Transaction` type in `bitcoinjs-lib` .\n\n## Supported coins\n\n|Network|Mainnet|Testnet|\n|---|---|---|\n|Bitcoin|`utxolib.networks.bitcoin`|`utxolib.networks.testnet`|\n|Bitcoin Cash|`utxolib.networks.bitcoincash`|`utxolib.networks.bitcoincashTestnet`|\n|Bitcoin Gold|`utxolib.networks.bitcoingold`|`utxolib.networks.bitcoingoldTestnet`|\n|Bitcoin SV (Satoshi Vision)|`utxolib.networks.bitcoinsv`|`utxolib.networks.bitcoinsvTestnet`|\n|Dash|`utxolib.networks.dash`|`utxolib.networks.dash`|\n|Litecoin|`utxolib.networks.litecoin`|`utxolib.networks.litecoinTest`|\n|Zcash|`utxolib.networks.zcash`|`utxolib.networks.zcashTest`|\n\n> [Bitcoin SV](https://blog.bitgo.com/bsv-deprecation-6b3fff4df34c) no longer supports sending funds to BitGo wallets. Existing customers with Bitcoin SV in BitGo wallets will still be able to access and sweep funds to an external Bitcoin SV wallet.\n","readmeFilename":"README.md"}