@shaurya2k06/aegissdk
v0.1.0
Published
Minimal agent SDK for **Aegis on Kite**.
Readme
Aegis SDK
Minimal agent SDK for Aegis on Kite.
Install
npm install @shaurya2k06/aegissdkUsage
import { AegisAgentSdk } from "@shaurya2k06/aegissdk";
import vaultAbi from "./AnchoredVault.abi.json" assert { type: "json" };
const sdk = new AegisAgentSdk({
rpcUrl: "https://rpc-testnet.gokite.ai",
agentPrivateKey: process.env.AGENT_PRIVATE_KEY,
vaultAddress: "0xYourVaultAddress",
vaultAbi: vaultAbi,
});
const nonce = await sdk.requestNonce("0xYourSessionId");
const receipt = await sdk.anchoredPay({
sessionId: "0xYourSessionId",
service: "0xServiceAddress",
amount6: 1_000_000n,
attestationDocHex: "0x...",
});Notes
amount6is token amount in 6 decimals.attestationDocHexmust be the encoded attestation payload accepted by the deployed verifier.- Tagline: Your agent. Proven.
