https://github.com/bitcoin-com/wallet_lib
https://github.com/bitcoin-com/wallet_lib
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitcoin-com/wallet_lib
- Owner: Bitcoin-com
- License: mit
- Created: 2019-11-15T03:29:35.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2020-03-16T02:22:06.000Z (about 6 years ago)
- Last Synced: 2025-03-21T09:48:09.164Z (about 1 year ago)
- Language: Python
- Size: 51.8 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wallet lib
[](https://badge.fury.io/py/wallet-lib) 
## Description
This library contains classes to work with hot wallet for different cryptocurrency.
## API Documentation
### Supported cryptocurrencies
1. BCH
1. BTC
1. DASH
1. ZEC
### Methods
1. `wallet.create_address(label=None)` - creates an address (label is ignored for ZEC)
1. `wallet.get_balance()` - returns the current balance
1. `wallet.get_transaction(tx_id)` - returns transaction info by tx id
1. `wallet.get_transactions(label=None, count=25, offset=0)` - returns list of transactions by label based on count and offset arguments.
1. `wallet.send(address, amount)` - sends some amount to an address.
1. `wallet.get_transactions_since(blockhash=None, target_confirmations=1)` - gets all transactions since block: blockhash, or all transactions if blockhash is None. target_confirmations return the nth from the best blockhash.
1. `wallet.run(command, *args)` - runs a custom command with the arguments specified
1. `wallet.get_zmq_notifier(zmq_address, topics=[{ALL_TOPICS}], loop=None, verbose=False)` - API for receiving topics from specified zmq address (ipc, tpc and udp supported).