SDK Extensions & Plugins

Arc402’s SDK is designed to be flexible and extensible, allowing developers to create custom functionality tailored to their applications. You can add new signal types, develop domain-specific intelligence models, or connect external services to the network.

This makes it easy to adapt Arc402 to specialized use cases, whether you need to process unique data streams, incorporate external APIs, or implement custom AI logic. Extensions and plugins integrate seamlessly, giving developers the freedom to enhance functionality while leveraging the core intelligence of the network.

import { Arc402, PluginManager } from "arc402-sdk";

// Create a custom plugin for a new signal type
class CustomSignalPlugin {
    handleSignal(signal) {
        // Transform or enrich the signal before submitting
        return { ...signal, processedAt: Date.now() };
    }
}

// Register the plugin
PluginManager.register(new CustomSignalPlugin());

// Submit a signal using the new plugin
arc.submitSignal({ type: "customSignal", payload: { value: 123 } });
console.log("Custom signal processed through plugin");

Last updated