Emercoin cryptocurrency API
Project description
Emercoin.py
Emercoin python 3 API
Quick start
Start emercoin wallet and connect to it:
from emercoin import Emer
emer = Emer('rpcuser', 'rpcpassword', 'host', 'port')
# Get current block count in local chain
emer.get_block_count()
# name_filter NVS records
emer.name_filter(r'^dns:[\d]+\.(emc)') # show all dns records containing numbers in zone 'emc'
# for example: 64327.emc
# name_show NVS record
# since name_filter return truncated record content we can fetch it manually
emer.name_show('dns:cofob.ru')
# if we want get all NVS records by type (name_filter(^type:)) and fetch full record body automagicaly (name_show) we use
emer.get_names_by_type('dns')
# if we simply want get all NVS records by regex and fetch full record body
emer.get_names_by_regex(r'^dns:[\d]+\.(emc)')
# we can get NVS record history too
emer.name_history('dns:cofob.ru')
# or call rpc connection directly (bitcoinrpc used)
emer.rpc_connection.method_name(argument1, argument2)
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
emercoin-0.0.4.tar.gz
(17.5 kB
view details)
Built Distribution
emercoin-0.0.4-py3-none-any.whl
(18.2 kB
view details)
File details
Details for the file emercoin-0.0.4.tar.gz
.
File metadata
- Download URL: emercoin-0.0.4.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb259715577cb15ab72e306bde6202093a962632b162e53397d608b15d74d172 |
|
MD5 | 0b6fac857d9f5c3fe076344cf1ab388c |
|
BLAKE2b-256 | 989a70a49d9f905318d6c74eb8f8e0c46527c4ebe6a55eeb2ec20712c5670291 |
File details
Details for the file emercoin-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: emercoin-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1b3ec72acd8f89c1abf2d94c511a8c846bb812c6e1f37c28f7d59762a5ed3a |
|
MD5 | f58b9d81b3b538a7bc930beceb3e905c |
|
BLAKE2b-256 | 5b93ac923d81a7e0705e451c4223f82abf63ec6c98686c5f755e666966752c89 |