AutoStack-DCA is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on envio-hyperindex, erc-7715, x402. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like nofx, ClawRouter, bitterbot-desktop, internet-court-skill, Franklin, daydreams.
Non-custodial Dollar Cost Averaging on Base Mainnet. Your funds stay in your wallet until each swap executes.
AutoStack lets you set up recurring token purchases without depositing funds into a vault or trusting a centralized service. You grant a time-bounded, amount-limited permission to a smart contract, and it executes swaps on your behalf at the frequency you specify.
The key difference from existing DCA solutions: your tokens never leave your wallet until the moment of each swap. No lockups, no custody risk.
AutoStack now features Smart Money DCA - automatically trigger your DCA based on whale activity tracked by Nansen.
| Type | Description |
|---|---|
| Basic DCA | Traditional time-based DCA. Executes at fixed intervals. |
| Smart Money DCA | Triggers when Nansen-labeled wallets (VCs, Funds, Smart Money) make qualifying purchases. |
| Signal Accumulation | Waits for multiple whale signals within a time window before triggering. |
| Hybrid | Combines time-based and smart money triggers for maximum coverage. |
Configure your whale tracking parameters:
Each signal verification costs ~$0.01 via x402 micropayments.
This project demonstrates cutting-edge technologies working together:
ERC-7715 Permissions - The smart contract only gets permission to spend a specific amount over a specific time period. You can revoke anytime.
Envio HyperIndex - Real-time blockchain indexing. When you create a strategy or execute a swap, the dashboard updates within milliseconds. No polling, no stale data.
x402 Protocol - The Smart Money Feed pulls whale trading data from Nansen's API using HTTP-native micropayments. Each request costs ~$0.01 USDC on Solana. No API keys, no subscriptions.
Uniswap V3 - Production swaps via SwapRouter02 on Base Mainnet with configurable pool fees (0.05%, 0.3%, 1%).
Base Mainnet:
0x29846754737248d7d81998762B32471967B0c8620x833589fCD6eDb6E08f4c7C32D4f71b54bdA029130x42000000000000000000000000000000000000060x2626664c2603336E57B271c5C0b26F421741e481autostack-dca/
├── contracts/ # Foundry project with AutoStackDCA.sol
├── frontend/ # Next.js 14 app with wagmi
├── indexer/ # Envio indexer for real-time data
└── scripts/ # Deployment and execution scripts
cd indexer
pnpm install
pnpm dev
This spins up a local Postgres + Hasura instance. The GraphQL playground is available at http://localhost:8080.
cd frontend
cp .env.example .env.local
# Edit .env.local with your values
pnpm install
pnpm dev
The app runs at http://localhost:3000.
Frontend .env.local:
NEXT_PUBLIC_ENVIO_ENDPOINT=http://localhost:8080/v1/graphql
NEXT_PUBLIC_CONTRACT_ADDRESS=0x29846754737248d7d81998762B32471967B0c862
# For x402 Smart Money Feed
X402_ENABLED=true
SOLANA_PRIVATE_KEY=[your-solana-keypair-array]
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
CORBITS_PROXY_URL=https://nansen.api.corbits.dev
createStrategy() or createSmartMoneyStrategy() with parameters:StrategyCreated event immediatelyFor Smart Money strategies:
Frontend → /api/smart-money → Faremeter SDK → Corbits Proxy
↓
HTTP 402 Response
↓
Solana USDC micropayment (~$0.01)
↓
Nansen whale data
Data is cached in localStorage to avoid repeated payments.
Query strategies for a user:
query {
Strategy(where: { user: { _eq: "0x..." } }) {
id
strategyId
status
executionsCompleted
totalExecutions
tokenIn
tokenOut
strategyType
poolFee
}
}
Query recent executions with whale data:
query {
Execution(order_by: { executedAt: desc }, limit: 10) {
strategyId
amountIn
amountOut
transactionHash
executedAt
triggeredBySmartMoney
whaleWallet
whaleAmountUsd
}
}
Run contract tests:
cd contracts
forge test
For testing, you can manually trigger DCA execution:
export CONTRACT=0x29846754737248d7d81998762B32471967B0c862
export RPC=https://mainnet.base.org
export PRIVATE_KEY=your-key
cast send $CONTRACT "executeDCA(uint256)" 0 --rpc-url $RPC --private-key $PRIVATE_KEY
See ARCHITECTURE.md for detailed Mermaid diagrams of the system.
MIT
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
Daydreams is a set of tools for building agents for commerce
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.
Multi-Agent AI Task Orchestrator 2026
Autonomous AI BD Agent for SolCex Exchange: 24/7 Cross-Chain Token Scoring & Payments 2026