helper for creating cash accounts
Project description
Cash Account Helper
A helper library + cli to help you create a cash account.
Installation
Requires python3 for now.
pip install pycashaccount
Status / ToDo
It is very basic for now.
OP_RETURN output for electron-cash op_return markdownOP_RETURN hex-like output- additional payment types
- generate raw hex output that common node CLIs can use
CLI (command line interface) usage after installation
For example, get the information required for a key hash account (it uses a simple address):
cashaccount address emergent_reasons bitcoincash:qrme8l598x49gmjhn92dgwhk5a3znu5wfcf5uf94e9 --opreturn-hex
Generally:
cashaccount payment_type name payment_info --formatting
Get help:
cashaccount --help
cashaccount address --help
CLI usage directly from repository
Same usage as the installed cli, except you can call it from the cli
script at the repository root:
./cli --help
Library usage
Look at cashaccount/cli.py
for usage.
For example, create a registration from a name and payment information.
from cashaccount import PaymentKeyHash, Registration, opreturn_hexlike
name = 'emergent_reasons'
info = PaymentKeyHash('bitcoincash:qrme8l598x49gmjhn92dgwhk5a3znu5wfcf5uf94e9')
registration = Registration(name, info)
print(registration)
print(opreturn_hexlike(registration))
Contributions
Contributions are welcome:
- Fork the repository and submit a pull request from your fork.
- Install test requirements
pip install -r requirements-test.txt
- Update tests to cover any changes
- Confirm all tests pass before submitting a Pull Request (e.g.
pytest --cov -v
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycashaccount-0.1.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for pycashaccount-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccea182e7c45081a6c57b935e0db49cf283015b8ffcb49a66cf265653780ff2f |
|
MD5 | 848a0a780b7d8c6404b2f937c160f77b |
|
BLAKE2b-256 | f3d9db32c8640272977816185fc3a0e3f2acb27c13c2d9d3ee14c53af50f0284 |