Skip to main content

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)')

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.3.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

emercoin-0.0.3-py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page