Skip to main content

Unofficial Idena Network and Explorer API Wrapper

Project description

pydena

Unofficial Python API for idena-go RPC

Help Support Me by Donating iDNA to My Address Here

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.1.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

pydena-1.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydena-1.1.1.tar.gz
  • Upload date:
  • Size: 7.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 c49975dd51f7e49c330c8bfffa174ff6d81d6c793f84ed46a62b748d8472a584
MD5 b93a4b98bf2b34b4599fbb96cd3b3016
BLAKE2b-256 6ac57c69f0abb0cd722d1a5c4d9d437893c58bfe239e22631809ada0713bc79f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydena-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b86924f2abf8d45408090c4f7aea404bbdca7c86964df81571de0e6b6c86b3be
MD5 51aaad3f4c95e4299048a80cf2716cee
BLAKE2b-256 329d883adf28ec9d9dbe81e708c4619df70899430ed9f49694078f27e29fadd4

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