Peaq Network SDK for DID, Storage, RBAC operations, and blockchain interactions
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fce5019ed9fff56232313e315fcf3159b179b88902d715a5867a196c66348151
|
|
| MD5 |
69252aebefdad5475e55b1b857fd4097
|
|
| BLAKE2b-256 |
a47ca406e9902ba583b9b0c454b816b48c611a48c8e6975411224c138cc7e790
|
Provenance
The following attestation bundles were made for peaq_sdk-1.0.1.tar.gz:
Publisher:
publish-sdk.yml on peaqnetwork/peaq-sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
peaq_sdk-1.0.1.tar.gz -
Subject digest:
fce5019ed9fff56232313e315fcf3159b179b88902d715a5867a196c66348151 - Sigstore transparency entry: 720863779
- Sigstore integration time:
-
Permalink:
peaqnetwork/peaq-sdk-py@75051ffcde9faa0670b023694748d2049081dfcc -
Branch / Tag:
refs/heads/dev - Owner: https://github.com/peaqnetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@75051ffcde9faa0670b023694748d2049081dfcc -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a06870e2763b7b84eac8f280f532b5336194e277e13815d3ee98919b01269d7
|
|
| MD5 |
72ac1334b1df94167b157a13c98f7706
|
|
| BLAKE2b-256 |
ce44254419a6e9ea450876405ac262eb277a09db56ccc5d63a029c7e50c5a7e2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
peaq_sdk-1.0.1-py3-none-any.whl -
Subject digest:
3a06870e2763b7b84eac8f280f532b5336194e277e13815d3ee98919b01269d7 - Sigstore transparency entry: 720863796
- Sigstore integration time:
-
Permalink:
peaqnetwork/peaq-sdk-py@75051ffcde9faa0670b023694748d2049081dfcc -
Branch / Tag:
refs/heads/dev - Owner: https://github.com/peaqnetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@75051ffcde9faa0670b023694748d2049081dfcc -
Trigger Event:
workflow_dispatch
-
Statement type: