Name | hathor-wallet JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | Hathor Wallet is a python library that allows you to interact with the hathor-wallet-headless API. |
upload_time | 2023-02-01 01:38:27 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | MIT |
keywords |
hathor
wallet
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Hathor Wallet
Hathor Wallet is a python library that allows you to interact with the [hathor-wallet-headless](https://github.com/HathorNetwork/hathor-wallet-headless) API. To test, you can use the headless wallet running at https://hathor-wallet-headless.mailsonnascin.repl.co/. Or use one running locally, [**here**](https://github.com/HathorNetwork/hathor-wallet-headless) you can get all the instructions to install.
# Installation
To install Hathor Wallet, simply use pip: `pip install hathor-wallet`
# Usage
First, import the library and create an instance of the Configs and HathorWallet class:
```
from hathor_wallet.hathor_wallet import HathorWallet
from hathor_wallet.configs import Configs
configs = Configs(
wallet_base_url='https://hathor-wallet-headless.mailsonnascin.repl.co/',
x_api_key='fa38a4bad4c7a19c319ab7c0672002ca46499cb86d5910c535fb6731fdb775d2',
wallet_id='<your wallet id>',
seed='<wallet seeds you want to start>'
).start()
wallet = HathorWallet(**configs)
```
# Available methods
- `wallet.start()`: Starts the wallet
- `wallet.status()`: Returns the status of the wallet
- `wallet.balance()`: Returns the balance of the wallet
- `wallet.current_address(mark_as_used=None)`: Returns the current address of the wallet, it is possible to pass as a parameter if you want to mark the address as used.
- `wallet.all_generated_addres()`: Returns all addresses generated by the wallet.
- `simple_send_tx`: Performs a simple transaction to another address.
- `tx_history`: Returns the transaction history of the Hathor wallet.
- `wallet.stop()`: Stops the wallet
# Contributions
All contributions are welcome!
Raw data
{
"_id": null,
"home_page": "",
"name": "hathor-wallet",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "hathor,wallet",
"author": "",
"author_email": "Mailson N\u00e1scin <mailson.nascin@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/42/ff/a0004339307af2a07af701d0389fe92ed88c6362389e36d52373527aa738/hathor-wallet-0.1.0.tar.gz",
"platform": null,
"description": "# Hathor Wallet\r\nHathor Wallet is a python library that allows you to interact with the [hathor-wallet-headless](https://github.com/HathorNetwork/hathor-wallet-headless) API. To test, you can use the headless wallet running at https://hathor-wallet-headless.mailsonnascin.repl.co/. Or use one running locally, [**here**](https://github.com/HathorNetwork/hathor-wallet-headless) you can get all the instructions to install.\r\n\r\n# Installation\r\nTo install Hathor Wallet, simply use pip: `pip install hathor-wallet`\r\n\r\n# Usage\r\nFirst, import the library and create an instance of the Configs and HathorWallet class:\r\n```\r\nfrom hathor_wallet.hathor_wallet import HathorWallet\r\nfrom hathor_wallet.configs import Configs\r\n\r\nconfigs = Configs(\r\n wallet_base_url='https://hathor-wallet-headless.mailsonnascin.repl.co/',\r\n x_api_key='fa38a4bad4c7a19c319ab7c0672002ca46499cb86d5910c535fb6731fdb775d2',\r\n wallet_id='<your wallet id>',\r\n seed='<wallet seeds you want to start>' \r\n ).start()\r\n\r\nwallet = HathorWallet(**configs)\r\n```\r\n\r\n# Available methods\r\n- `wallet.start()`: Starts the wallet\r\n- `wallet.status()`: Returns the status of the wallet\r\n- `wallet.balance()`: Returns the balance of the wallet\r\n- `wallet.current_address(mark_as_used=None)`: Returns the current address of the wallet, it is possible to pass as a parameter if you want to mark the address as used.\r\n- `wallet.all_generated_addres()`: Returns all addresses generated by the wallet.\r\n- `simple_send_tx`: Performs a simple transaction to another address.\r\n- `tx_history`: Returns the transaction history of the Hathor wallet.\r\n- `wallet.stop()`: Stops the wallet\r\n\r\n# Contributions\r\nAll contributions are welcome!\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Hathor Wallet is a python library that allows you to interact with the hathor-wallet-headless API.",
"version": "0.1.0",
"split_keywords": [
"hathor",
"wallet"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "61cd13e725bb38625462aace2c68c18f82a94b7c6efba253f96ff1e24cab0884",
"md5": "4a5fa39b554ad181f1439366de269e0f",
"sha256": "383bfb484e778e2c35f8146499321809f08fd9ce06cb46bdb4f40a756f3b72ea"
},
"downloads": -1,
"filename": "hathor_wallet-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4a5fa39b554ad181f1439366de269e0f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5190,
"upload_time": "2023-02-01T01:38:26",
"upload_time_iso_8601": "2023-02-01T01:38:26.249917Z",
"url": "https://files.pythonhosted.org/packages/61/cd/13e725bb38625462aace2c68c18f82a94b7c6efba253f96ff1e24cab0884/hathor_wallet-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "42ffa0004339307af2a07af701d0389fe92ed88c6362389e36d52373527aa738",
"md5": "9a4dd05a5d78d4634b4dfc31d4d2b92a",
"sha256": "039d46fd032af412ea0d16972312680e20526a5c08d72400548181098c44f240"
},
"downloads": -1,
"filename": "hathor-wallet-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "9a4dd05a5d78d4634b4dfc31d4d2b92a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4384,
"upload_time": "2023-02-01T01:38:27",
"upload_time_iso_8601": "2023-02-01T01:38:27.924335Z",
"url": "https://files.pythonhosted.org/packages/42/ff/a0004339307af2a07af701d0389fe92ed88c6362389e36d52373527aa738/hathor-wallet-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-01 01:38:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "hathor-wallet"
}