- Change file mode from 644 to 755 for all project files - Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet" - Rename Miner.extra_meta_data to extra_metadata for consistency
13 lines
386 B
Python
Executable File
13 lines
386 B
Python
Executable File
import asyncio
|
|
from aitbc_cli.core.config import NodeConfig
|
|
from aitbc_cli.core.node_client import NodeClient
|
|
|
|
async def test():
|
|
config = NodeConfig(id="aitbc-primary", endpoint="http://10.1.223.93:8082")
|
|
async with NodeClient(config) as client:
|
|
print("Connected.")
|
|
chains = await client.get_hosted_chains()
|
|
print("Chains:", chains)
|
|
|
|
asyncio.run(test())
|