Skip to content
/ pydena Public

Unofficial Python API Wrapper for idena-go RPC

Notifications You must be signed in to change notification settings

M4cs/pydena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unofficial Python API Wrapper for idena-go RPC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages