New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@ethersflow/sdk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersflow/sdk

EthersFlow TypeScript SDK & Cloudflare Worker helpers for Multi-Model Adversarial Consensus

latest
Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
6
-53.85%
Maintainers
1
Weekly downloads
 
Created
Source

@ethersflow/sdk

Official TypeScript SDK and Cloudflare Worker middleware for EthersFlow — the multi-model trust layer that verifies AI agent action directives through adversarial consensus before execution.

Installation

npm install @ethersflow/sdk

Quick Start

import { EthersFlow } from '@ethersflow/sdk';

const ef = new EthersFlow(process.env.ETHERSFLOW_API_KEY || 'your_api_key');

const result = await ef.verify({
  agentAction: 'Transfer 5000 USDC to 0x71C... for auditing services',
  personaPreset: 'financial_compliance',
  agentCount: 3
});

console.log('Verified:', result.verified);
console.log('Verdict:', result.verdict_summary);

Cloudflare Worker Middleware

import { cloudflareVerifyGate } from '@ethersflow/sdk';

export default {
  async fetch(request: Request, env: { ETHERSFLOW_API_KEY: string }) {
    const isSafe = await cloudflareVerifyGate(
      'Transfer 5000 USDC to wallet 0x9f',
      'Vendor audit payment',
      env.ETHERSFLOW_API_KEY
    );

    if (!isSafe) {
      return new Response('Action blocked by EthersFlow Consensus Gate', { status: 403 });
    }

    // Proceed with execution
  }
};

Keywords

ethersflow

FAQs

Package last updated on 26 Sep 2026

Related posts