Hathor Wallet is a python library that allows you to interact with the hathor-wallet-headless API.
Project description
Hathor Wallet
Hathor Wallet is a python library that allows you to interact with the hathor-wallet-headless API.
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-replit.mailsonnascin.repl.co/',
x_api_key='fa38a4bad4c7a19c319ab7c0672002ca46499cb86d5910c535fb6731fdb775d2',
wallet_id='mailson-nascin',
seed='coral quarter dismiss notice sorry shoulder length sting marine arrange portion split spawn knee zone cover rebel ring code just version afford same fossil'
).start()
wallet = HathorWallet(**configs)
Available methods
wallet.start()
: Starts the walletwallet.status()
: Returns the status of the walletwallet.balance()
: Returns the balance of the walletwallet.current_address(mark_as_used: Optional[str] = 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.wallet.stop()
: Stops the wallet
Contributions
All contributions are welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hathor-wallet-0.0.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for hathor_wallet-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff00dcc56d9989fbed1f10ad89c0cba2c9661e7b22df9db289b65654d7ce267 |
|
MD5 | 410e630755bab83eb53a63a5c2e0cc63 |
|
BLAKE2b-256 | eb82db012f96774296b2b6adcb98d2a2bcc53b2e046e4ebd4d5d8f22c611a3af |