Account Abstraction SDK
The GoKite Account Abstraction (AA) SDK enables developers to build smart contract wallets, manage transactions, and implement rule-based agent spending on the Kite AI Layer 1 chain using ERC-4337 Account Abstraction principles.
What is the GoKite AA SDK?
The SDK provides a simple interface to:
Create and manage Account Abstraction wallets.
Deploy upgradeable vaults for AI agents using proxy contracts.
Set spending rules for token budgets and providers.
Send gasless transactions via bundler integration.
Integrate third-party authentication (Privy, Particle, etc.) for user signing.
Package: gokite-aa-sdk on npm
Installation
npm install gokite-aa-sdkQuick Start
Initialize the SDK
import { GokiteAASDK } from 'gokite-aa-sdk';
const sdk = new GokiteAASDK(
'kite_testnet', // Network name
'https://rpc-testnet.gokite.ai', // Kite RPC URL
'https://bundler-service.staging.gokite.ai/rpc/' // Bundler RPC
);Get Account Abstraction Wallet Address
Authentication
Implement signFunction with your preferred wallet/auth SDK:
Construct and Send User Operation
Batch Operation
Core Features & General Usage
Deploy ClientAgentVault Proxy
Create a secure, upgradeable vault for your agent.
Uses UUPS pattern.
Initializes with settlement token and AA wallet as admin.
Configure Spending Rules
Define budgets & time windows for an agent's transactions.
Withdraw Funds
Move tokens from the vault:
View Rules & Balances (Read-Only)
Fetch spending rules:
Check token balance:
Useful Addresses on Kite Testnet
Settlement Token:
0x0fF5393387ad2f9f691FD6Fd28e07E3969e27e63Settlement Contract:
0x8d9FaD78d5Ce247aA01C140798B9558fd64a63E3ClientAgentVault Implementation:
0xB5AAFCC6DD4DFc2B80fb8BCcf406E1a2Fd559e23
Resources
NPM Package: gokite-aa-sdk
Last updated
