Skip to main content

Python SDK for Dina Network — the fastest blockchain with swarm wallets, parallel execution, and 82 DRC standards

Project description

dina-network

Python SDK for Dina Network — the fastest blockchain with swarm wallets, parallel execution, and 82 DRC smart contract standards.

Install

pip install dina-network

Quick Start

from dina import DinaWallet, DinaClient

# Create a wallet
wallet = DinaWallet.generate()
print(f"Address: {wallet.address}")

# Connect to testnet
client = DinaClient("http://35.184.213.248:8545")

# Check balance
balance = client.get_balance(wallet.address)

# Send USDC
tx_hash = client.transfer(wallet, to="0x...", amount=1_000_000)  # 1 USDC

# Wait for confirmation (100ms finality)
receipt = client.wait_for_transaction(tx_hash)

Async Support

from dina import AsyncDinaClient, DinaWallet

wallet = DinaWallet.generate()
client = AsyncDinaClient("http://35.184.213.248:8545")

balance = await client.get_balance(wallet.address)
tx_hash = await client.transfer(wallet, to="0x...", amount=1_000_000)

Testnet

RPC: http://35.184.213.248:8545
REST: http://35.184.213.248:8080
Chain ID: dina-testnet-1

License

MIT

Project details


Download files

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

Source Distribution

dina_network-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

dina_network-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file dina_network-0.1.0.tar.gz.

File metadata

  • Download URL: dina_network-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for dina_network-0.1.0.tar.gz
Algorithm Hash digest
SHA256 16702b06039f1b164f46300d8aa61f680de7acaa1756d311e2e5019cd694a4e2
MD5 7a1d9125d2ae84287a15050e0f126fb2
BLAKE2b-256 c974029ca3003179c1c3c89ae0ed571a692e1429aec5a16a7a2fa8c25d4296d1

See more details on using hashes here.

File details

Details for the file dina_network-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dina_network-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for dina_network-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 502e0c74c59a432113cc5583a3b9ff85d9827849a9ca3a4e09462e09fdb1e78b
MD5 b63db0ff780481c74d4187981ed88138
BLAKE2b-256 3bf2463d09a8e46b82139c409bcd28ccf386ecb0e8912ce58f1fea0475710a78

See more details on using hashes here.

Supported by

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