Signal Submission API

The Signal Submission API allows developers to send encrypted signals into Arc402 for processing. These signals can represent user actions, transactional events, or environmental data. Once submitted, Arc402 can analyze the signals, generate adaptive responses, and support AI-driven automation within your dApp.

import { Arc402 } from "arc402-sdk";

const arc = new Arc402({ apiKey: process.env.ARC402_API_KEY });

const signal = {
    type: "userAction",
    payload: { action: "swapToken", amount: 250 },
    encrypted: true
};

// Send the signal for processing
await arc.submitSignal(signal);

console.log("Signal submitted successfully and ready for AI processing");

This example shows how a developer can submit encrypted signals, allowing Arc402 to process them securely and trigger AI-driven automation or predictive behavior within the application.

Last updated