Skip to main content

Peaq SDK

Peaq Network SDK for comprehensive blockchain interactions on EVM and Substrate chains.

Installation

pip install peaq-sdk

Usage

from peaq_sdk import Sdk
from peaq_sdk.types import ChainType
from eth_account import Account

# Create an instance
sdk = await Sdk.create_instance({
    "base_url": "https://your-rpc-url.com",
    "chain_type": ChainType.EVM,
    "auth": Account.from_key("your-private-key")
})

# Use SDK modules
result = await sdk.storage.add_item({"item_type": "test", "item": "data"})
did = await sdk.did.create({...})
transfer = sdk.transfer.native("0x...", 1.5)

Features

  • DID Operations: Create, read, update, and remove decentralized identifiers
  • Storage Management: On-chain data storage with add, get, update, remove operations
  • RBAC System: Role-based access control with roles, groups, and permissions
  • Token Transfers: Native token and ERC-20/721 transfers across chains
  • Multi-chain Support: EVM and Substrate chain compatibility
  • Transaction Management: Status callbacks and confirmation modes

Tests

Run tests with:

python -m pytest -s

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peaq_sdk-1.0.1.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peaq_sdk-1.0.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file peaq_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: peaq_sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for peaq_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fce5019ed9fff56232313e315fcf3159b179b88902d715a5867a196c66348151
MD5 69252aebefdad5475e55b1b857fd4097
BLAKE2b-256 a47ca406e9902ba583b9b0c454b816b48c611a48c8e6975411224c138cc7e790

See more details on using hashes here.

Provenance

The following attestation bundles were made for peaq_sdk-1.0.1.tar.gz:

Publisher: publish-sdk.yml on peaqnetwork/peaq-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file peaq_sdk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: peaq_sdk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for peaq_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a06870e2763b7b84eac8f280f532b5336194e277e13815d3ee98919b01269d7
MD5 72ac1334b1df94167b157a13c98f7706
BLAKE2b-256 ce44254419a6e9ea450876405ac262eb277a09db56ccc5d63a029c7e50c5a7e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for peaq_sdk-1.0.1-py3-none-any.whl:

Publisher: publish-sdk.yml on peaqnetwork/peaq-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

0.2.1

2 files

0.2.0

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page