script2addresses
v1.2.0
Published
Transform bitcoin script to bitcoin addresses
Downloads
12
Maintainers
Readme
script2addresses
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.