npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

script2addresses

1.2.0 • Public • Published

script2addresses

NPM Package Build Status Coverage Status Dependency status Dev Dependency status

js-standard-style

Installation

npm install script2addresses

Examples

var script2addresses = require('script2addresses')
var bitcoin = require('bitcoinjs-lib')
 
var script = bitcoin.script.fromASM('OP_2 032069e003dcc548bc7de5e2623a3f3716873cd08764f1ab9e16fc1ca69bee6aa5 0386acd4c6ffd015e71c0e3f535c3b6e70a777908cc31695de660846c87cf88ef3 OP_2 OP_CHECKMULTISIG')
console.log(script2addresses(script))
// {
//   type: 'multisig',
//   addresses: [
//     '17FpX7QDJTpUyd6C7Rk9CywBKs5CyAznvd',
//     '16kUTyxJhwcX1zehx4EY7j2ovHs7U35nyq'
//   ]
// }

License

Code released under the MIT license.

install

npm i script2addresses

Downloadsweekly downloads

22

version

1.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability