Skip to content

shahwali-dev/vortex-agentic-pay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒͺ️ Vortex Agentic Pay

Hackathon License: MIT Framework Package Manager

An enterprise-grade, localized autonomous agent infrastructure that orchestrates non-custodial, gas-abstracted on-chain transactions. Powered by MetaMask Smart Accounts Kit, 1Shot Permissionless Relayer, and Venice AI (Privacy-first Intellect Layer), Vortex Agentic Pay enables secure machine-to-machine context execution and programmatic web3 payments.


πŸ’Ž Architectural Highlights & Engineering Excellence

Vortex Agentic Pay is built from the ground up to support high-throughput, latency-optimized autonomous workflows without compromising user privacy or regional infrastructure limits.

  • Granular Execution Permissions (ERC-7715 & ERC-7710): Implements rule-based, fine-grained delegation flows. Users delegate temporal budget constraints (e.g., spending limits per day/week) using the MetaMask Smart Accounts Kit, allowing the autonomous engine to act on their behalf smoothly.
  • Zero-Overhead Gas Abstraction: Integrates 1Shot API’s Public Relayer to completely eliminate transaction failure risks due to gas variance. Accounts are dynamically upgraded via EIP-7702 authorizations and pay for network usage permissionlessly in stablecoins (USDC/USDT), bypassing standard paymaster funding debt.
  • Privacy-Preserving Intelligence Layer: Leverages Venice AI API for uncensored, zero-surveillance agent reasoning. Utilizing advanced open-weights frontier models with built-in parameter options like real-time web search (enable_web_search) and automated scraping capabilities.

πŸ› οΈ System Architecture Diagram

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               MetaMask Smart Accounts Kit              β”‚
β”‚  (EIP-7702 Account Upgrade & ERC-7715 Permissions)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           β”‚ Sovereign Session Intent
                           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               Vortex Agent Execution Engine            β”‚
β”‚  (Privacy-Preserving Inference via Venice AI Gateway)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           β”‚ Structured Payload Generation
                           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               1Shot Permissionless Relayer             β”‚
β”‚  (Gas Abstraction Matrix & ERC-7710 Budget Compliance) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           β”‚ Gasless Broadcast
                           β–Ό
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚  Hardened On-Chain State β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ–₯️ Application Preview & User Interface

The Vortex Agentic Pay dashboard features a modular split-frame layout engineered for complete sovereign control and live telemetry monitoring.

Vortex Agentic Pay Dashboard

Core Interface Modules:

  1. Sovereign Account Controller: A linear onboarding channel that orchestrates the MetaMask Flask connection, executes the local smart account cryptographic upgrade, and signs off on temporal spending permissions (e.g., 10 USDC/Week).
  2. Executive Agent Terminal: A clean CLI telemetry log that monitors network status, active decentralized identifiers, pending ERC-7715 permissions, and live execution cycles triggered via privacy-first agents.

βš™οΈ Technology Stack

  • Core Framework: Next.js 15 (Hardened App Router, Standalone Layer Isolation)
  • Web3 Interface Core: MetaMask Smart Accounts Kit (@metamask/smart-accounts-kit), Viem v2
  • Relayer Orchestration: 1Shot API Public Relayer Core Hook Execution System
  • LLM Context Engine: Venice AI SDK (OpenAI-compatible Private Inference Gateway)
  • Package Infrastructure: pnpm Monorepo Workspaces (Strict dependency isolation)
  • Container Sandbox: Hardened Multi-stage Docker Build Pipeline (Non-root user configuration)

πŸš€ Local Development & Setup Workflow

Follow these systematic steps to spin up the agent ecosystem natively in your Linux/Ubuntu environment:

1. Environment Preparation

Ensure your environment variables are set up accurately. Clone the repository and generate your configuration mapping:

git clone [https://github.com/shahwali-dev/vortex-agentic-pay.git](https://github.com/shahwali-dev/vortex-agentic-pay.git)
cd vortex-agentic-pay
cp .env.example .env

Ensure your .env contains the correct endpoints for Venice AI and 1Shot infrastructure:

VENICE_API_KEY=your_secure_venice_api_key
NEXT_PUBLIC_1SHOT_RELAYER_URL=[https://relayer.1shotapi.com/relayers](https://relayer.1shotapi.com/relayers)

2. Monorepo Installation & Dependency Strategy

Execute a clean dependency map lock optimization via pnpm:

# Clean high-performance workspace package installation
pnpm install

# Compile the static standalone distribution build
pnpm build

🐳 Production Sandboxing (Docker Build)

The server runtime runs inside an isolated container with minimal privileges to mitigate breakout vulnerabilities.

Build Production Container Layer

docker build -t vortex-agentic-pay:latest .

Run Isolated Container Execution Bridge

Inject host environment states dynamically during runtime scheduling:

docker run -p 3000:3000 --env-file .env vortex-agentic-pay:latest

The node engine boots securely on http://localhost:3000.


πŸ’Ž Core Integration Walkthrough

1. Smart Account & 1Shot Capabilities Initialization

Before transaction submission, Vortex requests network configuration targets dynamically to ensure permission safety boundaries:

// Fetching dynamic capabilities to pick non-hardcoded payment token collectors
const response = await fetch("[https://relayer.1shotapi.com/relayers](https://relayer.1shotapi.com/relayers)", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    id: 1,
    method: "relayer_getCapabilities",
    params: ["8453"] // Base Mainnet/Sepolia dynamic matching
  })
});

2. Privacy Inference via Venice AI Gateway

The system leverages Venice AI’s text-to-action layer to interpret prompt intentions into structured on-chain transaction logs without leaving data crumbs:

import OpenAI from "openai";

const venice = new OpenAI({
  apiKey: process.env.VENICE_API_KEY,
  baseURL: "[https://api.venice.ai/api/v1](https://api.venice.ai/api/v1)",
});

const executionIntent = await venice.chat.completions.create({
  model: "zai-org-glm-5",
  messages: [{ role: "user", content: "Optimize and route treasury balance across 1Shot payload" }],
  venice_parameters: {
    enable_web_search: "auto" // Real-time data sync for on-chain optimization
  }
});

πŸ›‘οΈ Security Posture & Hardening Matrix

  • Least Privilege Delegations: Budget limits enforced via ERC-20 Periodic Transfer Permissions restrict our agent from draining user assets, enforcing safety boundaries even if an LLM hallucination occurs.
  • Hardened Execution Context: The deployment image strips out the native package manager layer post-build and transfers operational execution to the nextjs:nodejs internal non-root Linux group ecosystem.

Engineered and Hardened by Shah Wali (shahwali-dev) for MetaMask x 1Shot x Venice Dev Cook Off Hackathon.

About

Autonomous Agentic Payment Orchestrator using MetaMask Smart Accounts, Venice AI, and 1Shot API for seamless EIP-7702/7710 cross-chain transactions and A2A coordination.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors