You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luke Childs
2f6e978192
|
6 years ago | |
---|---|---|
src | 6 years ago | |
test | 6 years ago | |
.gitignore | 6 years ago | |
.travis.yml | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
package.json | 6 years ago |
README.md
build-output-script
Builds a P2PKH Bitcoin transaction output script
Builds a P2PKH Bitcoin transaction output script from an array of P2PKH addresses and amounts. Will also work with any Bitcoin derived cryptocurrencies with a single byte pubkey hash prefix.
Install
npm install build-output-script
Usage
Send 1 BTC to 1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj
buildOutputScript([['1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj', 100000000]]);
// '0100e1f505000000001976a914da6473ed373e08f46dd8003fca7ba72fbe9c555e88ac'
Send 1 BTC to 1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj
and 1 BTC to 1BitcoinEaterAddressDontSendf59kuE
buildOutputScript([
['1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj', 100000000],
['1BitcoinEaterAddressDontSendf59kuE', 100000000]
]);
// '0200e1f505000000001976a914da6473ed373e08f46dd8003fca7ba72fbe9c555e88ac00e1f505000000001976a914759d6677091e973b9e9d99f19c68fbf43e3f05f988ac'
License
MIT © Luke Childs