https://github.com/m4cs/pydena
Unofficial Python API Wrapper for idena-go RPC
https://github.com/m4cs/pydena
api-wrapper idena idena-node python-api
Last synced: 7 months ago
JSON representation
Unofficial Python API Wrapper for idena-go RPC
- Host: GitHub
- URL: https://github.com/m4cs/pydena
- Owner: M4cs
- Created: 2021-05-06T20:21:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T19:52:08.000Z (over 4 years ago)
- Last Synced: 2025-04-10T23:49:02.052Z (7 months ago)
- Topics: api-wrapper, idena, idena-node, python-api
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pydena
Unofficial Python API for [idena-go RPC](https://github.com/idena-network/idena-go)
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:**
- [X] IPFS API ✔
- [X] Accounts API ✔
- [X] Blockchain API ✔
- [X] 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:**
```py
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](https://m4cs.github.io/pydena/)