-
Notifications
You must be signed in to change notification settings - Fork 177
bx uri encode
Eric Voskuil edited this page Oct 3, 2015
·
4 revisions
Compose a Bitcoin URI from specified parts.
$ bx uri-encode --help
Usage: bx uri-encode [-h] [--amount VALUE] [--config VALUE] [--label
VALUE] [--message VALUE] [--request VALUE] [ADDRESS]
Info: Compose a Bitcoin URI from specified parts.
Options (named):
-a [--amount] The value of the amount parameter.
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
-l [--label] The value of the label parameter.
-m [--message] The value of the message parameter.
-r [--request] The value of the payment request parameter.
Arguments (positional):
ADDRESS The payment address or stealth address for the
address part.
See also uri-decode.
BIP-21 Examples address
$ bx uri-encode 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L
bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L
BIP-21 Examples address, --label
$ bx uri-encode -l Luke-Jr 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L
bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?label=Luke-Jr
BIP-21 Examples address, --amount, --label
$ bx uri-encode -a 20.3 -l Luke-Jr 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L
bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=20.3&label=Luke-Jr
BIP-21 Examples address, --amount, --label, --message
$ bx uri-encode -a 20.3 -l Luke-Jr -m "Donation for project xyz" 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L
bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=20.3&label=Luke-Jr&message=Donation%20for%20project%20xyz
stealth address
$ bx uri-encode 1DsiaW2kjjZAT92tAW8rvS1tF9ZSVzpz5WPBLAQFrPrMRMQQz7X6qR8h
bitcoin:1DsiaW2kjjZAT92tAW8rvS1tF9ZSVzpz5WPBLAQFrPrMRMQQz7X6qR8h
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