Connect AI agents to Sui Chain with Sui Agent Kit
npm i @getnimbus/sui-agent-kit
import { SuiAgentKit, createSuiTools } from "@getnimbus/sui-agent-kit"; // Initialize with private key and optional RPC URL const agent = new SuiAgentKit( "your_sui_private_key", "https://fullnode.mainnet.sui.io:443", "your-openai-api-key" ); // Create LangChain tools const tools = createSuiTools(agent);
import { SuiAgentKit, deploy_token } from '@getnimbus/sui-agent-kit'; const agent = new SuiAgentKit( "your_sui_private_key", "https://fullnode.mainnet.sui.io:443", "your-openai-api-key" ); const result = await deploy_token(agent, { name: 'TOKEN_NAME', symbol: 'TOKEN_SYMBOL', totalSupply: 'TOKEN_SUPPLY', description: 'TOKEN_DESCRIPTION', fixedSupply: true, imageUrl: 'TOKEN_IMAGE_URL', decimals: TOKEN_DECIMAL, }); console.log('Token deployed:', result);
import { SuiAgentKit, get_holding } from '@getnimbus/sui-agent-kit'; const agent = new SuiAgentKit( "your_sui_private_key", "https://fullnode.mainnet.sui.io:443", "your-openai-api-key" ); const assets = await get_holding(agent); console.log('Wallet's assets:', assets);
import { SuiAgentKit, transfer_token } from '@getnimbus/sui-agent-kit'; const agent = new SuiAgentKit( "your_sui_private_key", "https://fullnode.mainnet.sui.io:443", "your-openai-api-key" ); const result = await transfer_token(agent, "SUI", destination_address, amount); console.log('Transaction:', result);