Skip to main content

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

Release files for pydena 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydena 1.1.1
File Size Uploaded
pydena-1.1.1.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydena 1.1.1
File Interpreter ABI Platform
pydena-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / pydena-1.1.1.tar.gz

Download URL pydena-1.1.1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c49975dd51f7e49c330c8bfffa174ff6d81d6c793f84ed46a62b748d8472a584
BLAKE2b-256 checksum
How to use checksums
6ac57c69f0abb0cd722d1a5c4d9d437893c58bfe239e22631809ada0713bc79f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pydena-1.1.1-py3-none-any.whl

Download URL pydena-1.1.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b86924f2abf8d45408090c4f7aea404bbdca7c86964df81571de0e6b6c86b3be
BLAKE2b-256 checksum
How to use checksums
329d883adf28ec9d9dbe81e708c4619df70899430ed9f49694078f27e29fadd4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page