Skip to main content

Unofficial Idena Network and Explorer API Wrapper

Project description

pydena

Unofficial Python API for idena-go RPC

Requirements

  • Python 3.6+

Installation

# From pypi
pip install pydena

# From source
git clone github.com/M4cs/pydena
cd pydena
python3 setup.py install

Roadmap

RPC APIs:

  • IPFS API ✔
  • Accounts API ✔
  • Blockchain API ✔
  • DNA API ✔
  • Net API ❌
  • Flip API ❌
  • Contracts API ❌

Idena API:

This will be worked on after RPC. Version 2 will migrate API -> pydena.RPC. pydena.API will become the http API for the explorer.

Usage

Initialize your API:

from pydena import API

# Local Node with No API Key on http://localhost:9009
api = API()

# Local Node with API Key
api = API(apikey='YOUR-API-KEY')

# Remote node with API Key
api = API('http://localhost:9999', 'YOUR-API-KEY')

# Get Coinbase Address:
api.getCoinbaseAddress()

# Get Last Block:
api.getLastBlock()

# To get JSON responses, just pass `raw=True` to any API/RPC Call
api.getLastBlock(raw=True)

# See all in documentation below!

View the official documentation here

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydena-1.0.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

pydena-1.0.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pydena-1.0.3.tar.gz.

File metadata

  • Download URL: pydena-1.0.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for pydena-1.0.3.tar.gz
Algorithm Hash digest
SHA256 cf8e863d493abaeeeed6e74f3c63d823f48674be4304a72455be3dd0634743b2
MD5 19250a3f0adb03020c137a47762ad19f
BLAKE2b-256 30876d759684dd98cf091820da1473fc930687b7f934975643d464fae5c1d286

See more details on using hashes here.

File details

Details for the file pydena-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pydena-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for pydena-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4765a894328df236d8c46b9ae3977cd2f8b9ab341b96f7b85172575779a8bc1
MD5 556bda43e7729d707ddfc00ee9c331d2
BLAKE2b-256 d764f7dd3e4302f6e3b046202b278e65cc99f18f4e378a8fac6e58eeb399b391

See more details on using hashes here.

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