Adaptive Response API
import { Arc402 } from "arc402-sdk";
const arc = new Arc402({ apiKey: process.env.ARC402_API_KEY });
// Prepare context data
const inputData = {
userId: "0xABCD",
recentActivity: ["trade", "stake", "swap"]
};
// Get insights from Arc402
const insights = await arc.adaptiveResponse(inputData);
insights.actions.forEach(action => {
console.log("Suggested action:", action.description);
});Last updated