AI Network is a layer 1 blockchain designed to accommodate large-scale AI models, utilizing a decentralized GPU network powered by the $AIN token, enriching AI-drivenNFTs(AINFTs). TheAINetwork Toolkitis a set of tools for interacting with the AINetwork Blockchain. These tools allow you to transferAIN, read and write values, create apps, and set permissions for specific paths within the blockchain database.
Installing dependencies
Before using the AINetwork Toolkit, you need to install the ain-py package. You can install it with pip:Set environmental variables
You need to set theAIN_BLOCKCHAIN_ACCOUNT_PRIVATE_KEY environmental variable to your AIN Blockchain Account Private Key.
Get AIN Blockchain private key
Initialize the AINetwork Toolkit
You can initialize the AINetwork Toolkit like this:Initialize the Agent with the AINetwork Toolkit
You can initialize the agent with the AINetwork Toolkit like this:Example Usage
Here are some examples of how you can use the agent with the AINetwork Toolkit:Define App name to test
Create an app in the AINetwork Blockchain database
Set a value at a given path in the AINetwork Blockchain database
Set permissions for a path in the AINetwork Blockchain database
Retrieve the permissions for a path in the AINetwork Blockchain database
Get AIN from faucet
Get AIN Balance
Transfer AIN
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.