Akash Python SDK¶
-
Quick Start
Get up and running with the Akash Python SDK in minutes
-
Banking operations
Send AKT, query balances, and manage multi-asset transactions
-
Governance & staking
Participate in network governance and earn staking rewards
-
Deploy applications
Deploy and manage workloads on the Akash decentralized cloud
-
API reference
Technical documentation for all SDK classes and methods
-
Wallet management
Create, import, and manage Akash wallets with cryptographic security
This is Python SDK for Akash Network, a decentralized compute marketplace. This SDK provides a Python interface for interacting with the Akash blockchain, enabling developers to build applications on Akash's decentralized infrastructure.
Compatibility
Compatible with Akash Node v0.38.0 and v0.38.1
Quick example¶
from akash.client import AkashClient
from akash.wallet import AkashWallet
wallet = AkashWallet.generate()
print(f"Address: {wallet.address}")
client = AkashClient("https://rpc.akashnet.net:443")
if client.health_check():
print("Connected to Akash mainnet!")
status = client.rpc_query("status")
network = status.get('node_info', {}).get('network')
height = status.get('sync_info', {}).get('latest_block_height')
print(f"Network: {network}, Block: {height}")
known_address = "akash17xpfvakm2amg962yls6f84z3kell8c5lserqta"
balance = client.bank.get_balance(known_address, "uakt")
print(f"Balance: {int(balance) / 1_000_000:.6f} AKT")
from akash import AkashClient, AkashWallet
recipient_wallet = AkashWallet.generate()
wallet = AkashWallet.from_mnemonic("your twelve word mnemonic phrase here")
client = AkashClient("https://rpc.akashnet.net:443")
result = client.bank.send(
wallet=wallet,
to_address=recipient_wallet.address,
amount="1000000",
denom="uakt",
fee_amount="5000",
gas_limit=200000,
memo=""
)
if result.success:
print(f"Transaction successful!")
print(f"Hash: {result.tx_hash}")
else:
print(f"Transaction failed: {result.raw_log}")
from akash.client import AkashClient
from akash.wallet import AkashWallet
wallet = AkashWallet.from_mnemonic("your mnemonic")
client = AkashClient("https://rpc.akashnet.net:443")
proposals = client.governance.get_proposals()
print(f"Found {len(proposals)} proposals")
result = client.governance.vote(
wallet=wallet,
proposal_id=42,
option="YES"
)
Getting started
See the Installation guide to install the SDK, then follow the Quick start tutorial.