Jagantara is a decentralized insurance for Digital Assets + staking platform on **Stacks** (Clarity) that supports **real on-chain settlement** across **USDCx / sBTC / STX** and includes an **x402-style payment gate** for AI-agent actions.
jagantara is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
Jagantara is a decentralized insurance for Digital Assets + staking platform on Stacks (Clarity) that supports real on-chain settlement across USDCx / sBTC / STX and includes an x402-style payment gate for AI-agent actions.
┌─────────────────────────────────────────────────────────────┐
│ Jagantara Frontend │
│ (Next.js + @stacks/connect) │
└──────────────────────────┬──────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Stacks Testnet │
│ (Bitcoin-Secured via PoX) │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌────────────┐ │
│ │insurance-manager │ │ dao-governance │ │claim-mgr │ │
│ │ │ │ │ │ │ │
│ │ - pay-premium │ │ - submit-claim │ │ - claim │ │
│ │ - transfer-rev │ │ - vote │ │ │ │
│ └────────┬─────────┘ └────────┬─────────┘ └─────▲──────┘ │
│ │ │ │ │
│ ▼ ▼ │ │
│ ┌──────────────────┐ ┌──────────────────┐ │ │
│ │ jaga-stake │ │ jaga-token │◄──────┘ │
│ │ │ │ (SIP-010) │ │
│ │ - stake │ │ - mint/burn │ │
│ │ - unstake │ │ - transfer │ │
│ └──────────────────┘ └──────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
| Parameter | Value | Description |
|---|---|---|
| Voting Period | 1008 blocks (~7 days) | Time for DAO voting |
| Minimum Voting | 720 blocks (~5 days) | Before execution allowed |
| Approval Threshold | 66% | Required for claim approval |
| Claim Expiry | 1008 blocks (~7 days) | Time to claim after approval |
| Premium Duration | 4320 blocks (~30 days) | Policy validity period |
| Rewards Duration | 4320 blocks (~30 days) | Staking reward period |
Premiums are distributed as follows:
| Tier | Premium Rate | Example (1000 USDCx coverage) |
|---|---|---|
| Tier 1 | 0.1% (10/100,000) | 1 USDCx premium |
| Tier 2 | 0.3% (30/100,000) | 3 USDCx premium |
| Tier 3 | 0.5% (50/100,000) | 5 USDCx premium |
cd stacks-contracts
# Install dependencies
npm install
# Check contracts compile
clarinet check
# Run tests
npm test
# Deploy to devnet
clarinet deployments apply --devnet
cd stacks-contracts
# Run all tests
npm run test:all
# Run unit tests
npm test
# Run with coverage
npm run test:report
clarinet deployments apply --devnet
clarinet deployments apply --testnet
After deployment, update contract addresses in:
jagantara/src/constants/abi.tsxDeployer: ST3DB3G0GA39FA8NZ5GG4FQ89D5AN6EJRJJ20R0SY
Successfully deployed:
usdcx-token
sbtc-token
vault
insurance-manager-v2
claim-manager-v2
dao-governance-v2
Jagantara exposes an MCP-compatible API route and server-side tool execution that can require a proof-of-payment (x402-like) on Stacks testnet.
route.tsstacks-x402.tsmcp-server.tsPOST /api/mcp with tool name buy_insurance_onchain or create_claim_onchain.getX402Requirement().x-payment-txid).verifyUsdcxTransferTxid():contract_callX402_USDCX_CONTRACT_IDtransferX402_MERCHANT_ADDRESS (defaults to NEXT_PUBLIC_DEPLOYER_ADDRESS)>= X402_PRICE_*Server-side:
X402_USDCX_CONTRACT_ID (required) — token contract ID used for payment verification (SIP-010 USDCx)X402_MERCHANT_ADDRESS (optional) — recipient principal; defaults to NEXT_PUBLIC_DEPLOYER_ADDRESSX402_HEADER_NAME (optional) — defaults to x-payment-txidX402_PRICE_BUY_INSURANCE (optional) — default 100000 (uint)X402_PRICE_SUBMIT_CLAIM (optional) — default 50000 (uint)MIT
Jagantara on Stacks - Secured by Bitcoin
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
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.
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.
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.