Wallet lib
Description
This library contains classes to work with hot wallet for different cryptocurrency.
API Documentation
Supported cryptocurrencies
- BCH
- BTC
- DASH
- ZEC
Methods
-
wallet.create_address(label=None)
- creates an address (label is ignored for ZEC) -
wallet.get_balance()
- returns the current balance -
wallet.get_transaction(tx_id)
- returns transaction info by tx id -
wallet.get_transactions(label=None, count=25, offset=0)
- returns list of transactions by label based on count and offset arguments. -
wallet.send(address, amount)
- sends some amount to an address. -
wallet.get_transactions_since(block_hash)
- gets all transactions since block block_hash, or all transactions if block_hash is None. (No mempool transactions) -
wallet.run(command, args...)
- runs a custom command with the arguments specified -
wallet.get_zmq_notifier(zmq_address, topics=[TOPIC_BLOCKHASH,...], loop=None, verbose=False)
- API for receiving topics from specified zmq address (ipc, tpc and udp supported).