-
Notifications
You must be signed in to change notification settings - Fork 179
bx script to address
evoskuil edited this page Mar 2, 2017
·
8 revisions
Create a BIP16 pay-to-script-hash address from a script.
$ bx script-to-address --help
Usage: bx script-to-address [-h] [--config VALUE] [--version VALUE]
[SCRIPT]
Info: Create a BIP16 pay-to-script-hash address from a script.
Options (named):
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
-v [--version] The desired pay-to-script-hash address version,
defaults to 5.
Arguments (positional):
SCRIPT The script to use in the address. Multiple tokens
must be quoted. If not specified the script is read
from STDIN.
$ bx script-to-address "dup hash160 [89abcdefabbaabbaabbaabbaabbaabbaabbaabba] equalverify checksig"
3F6i6kwkevjR7AsAd4te2YB2zZyASEm1HM
--version 196 (testnet)
$ bx script-to-address -v 196 "dup hash160 [89abcdefabbaabbaabbaabbaabbaabbaabbaabba] equalverify checksig"
2N6evAVsnGPEmJxViJCWWeVAJCvBLFehT7L
piped commands
$ bx script-decode 76a91489abcdefabbaabbaabbaabbaabbaabbaabbaabba88ac | bx script-to-address
dup hash160 [89abcdefabbaabbaabbaabbaabbaabbaabbaabba] equalverify checksig
3F6i6kwkevjR7AsAd4te2YB2zZyASEm1HM
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands