pybtctool - command interface for Bitcoin signatures and
transactions
pybtctool |
[-sBbJj] COMMAND [,
COMMAND_ARG] ... |
pybtctool has a set of commands for interacting with the
Bitcoin network.
With a command, you can generate a signature, hash, seed, or
address; serialise or deserialise standard data formats; query the
blockchain; and many more operations.
- -s
- The -s option lets you read arguments from the command line.
- -b
- The -b option lets you read binary data as an argument.
- -j
- -J
- The -j option lets you read JSON from the command line (-J to split a JSON
list into multiple arguments).
Presently supported commands are:
- add
- key1 key2 -> key1 + key2 (works on privkeys or pubkeys)
- multiply
- pubkey privkey -> returns pubkey * privkey
- history
- address1 address2 etc. -> outputs to those addresses
- unspent
- address1 address2 etc. -> unspent outputs to those
addresses
- fetchtx
- txash -> tx if present
- pushtx
- hex or bin tx -> tries to push to blockchain.info/pushtx
- access
- JSON list or object prop -> desired property of that json
object
- multiaccess
- JSON list prop -> like access, but mapped across each
list element
- slice
- JSON list start end -> given slice of the list
- count
- JSON list -> number of elements
- sum
- JSON list -> sum of all values