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
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
pydena-1.1.0.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file pydena-1.1.0.tar.gz
.
File metadata
- Download URL: pydena-1.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff15f0901222dc98cf6fc6e7726a4232b1fb66bd86ef33369944af92fc6cf735 |
|
MD5 | 18f427c06d9a8d59e8e23f27b9778bab |
|
BLAKE2b-256 | 8f2d61a9309e17ddde915fbd5c43fdd5706245451e00629fcc2886b0a7a87c19 |
File details
Details for the file pydena-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pydena-1.1.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377f516e07ebffc8d1e9c1681a7113807bda411ca53e215db13a5f051f7e8dd3 |
|
MD5 | 58bf19b2c78f46b48072624fa8d6f7e1 |
|
BLAKE2b-256 | b486949ad02e789dfed4177e9154ce9a3226b224c2e740bef879bf323e57b496 |