Radix Agent Kit lets you create AI agents that understand plain English commands and execute them on the Radix blockchain. Instead of writing complex transaction code, just tell your agent what to do.
Copy
// Traditional blockchain development ❌const manifest = transactionBuilder.createTransferManifest(...)const intent = await transactionBuilder.buildTransactionIntent(...)const signedTransaction = await wallet.signTransaction(...)await gateway.submitTransaction(...)// With Radix Agent Kit ✅await agent.run("Send 100 XRD to account_tdx_...");
import "dotenv/config"; // Required for Node.js environmentsimport { RadixAgent, RadixNetwork } from "radix-agent-kit";// Create an agentconst agent = new RadixAgent({ networkId: RadixNetwork.Stokenet, openaiApiKey: process.env.OPENAI_API_KEY, mnemonic: process.env.RADIX_MNEMONIC});// Natural language blockchain operationsawait agent.run("What's my XRD balance?");await agent.run("Send 100 XRD to account_tdx_...");await agent.run("Create a token called GameCoin with 1M supply");await agent.run("Stake 100 XRD with validator_tdx_...");
Your App ↓AI Agent (GPT-4) ↓16 Blockchain Tools ↓Radix Gateway API ↓Radix Network
The AI agent acts as a translator between natural language and blockchain operations, using specialized tools to execute your commands safely and efficiently.
Assistant
Responses are generated using AI and may contain mistakes.