# ArbiPulse Flash Loan Strategy Builder

> ArbiPulse Flash Loan Strategy Builder is a paid API for AI agents from arbipulse.vercel.app, paid per call via x402, $0.75/call, status unknown (last checked 2026-09-14).

Generates zero-capital execution calldata for Aave V3 and Balancer flash loans, including executor contract templates for flash loan arbitrage strategies

## Facts

- Endpoint: GET https://arbipulse.vercel.app/api/flash
- Price: $0.75/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arbipulse-flash-loan-strategy-builder-42e72c6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wYZhBlolnjzOSwiYVQLoW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability arbipulse-flash-loan-strategy-builder-42e72c6d
```

Example prompt: Build me a zero-capital flash loan strategy on Aave V3 to borrow 50,000 USDC, execute an arbitrage between Uniswap and Curve, and give me the executor contract template and calldata I can deploy right away.

## When to prefer this

Use this endpoint when you need to generate the actual on-chain calldata and smart contract templates for executing a flash loan arbitrage strategy with zero upfront capital, specifically targeting Aave V3 or Balancer protocols. Prefer this over the DEX price arbitrage or CEX arbitrage endpoints when you already have an opportunity identified and need the execution layer artifacts (calldata + contract) rather than opportunity discovery.

## Known failure modes

- Unsupported flash loan protocol specified — only Aave V3 and Balancer are supported
- Invalid token address or unsupported asset for flash loan
- Loan amount exceeds protocol liquidity limits
- Missing or malformed strategy parameters resulting in invalid calldata
- Payment of 0.75 USDC not processed — x402 payment required
- Strategy configuration produces unprofitable execution path

## How this service works

ArbiPulse flash loan strategy builder — zero-capital execution calldata for Aave V3 and Balancer flash loans with executor contract templates

## Output

Returns ready-to-use flash loan execution calldata and executor contract templates configured for Aave V3 or Balancer flash loans, enabling zero-capital arbitrage execution on-chain without requiring upfront liquidity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "asset": {
       "type": "string",
       "description": "USDC | USDT | WETH | WBTC | DAI (default: USDC)"
      },
      "chain": {
       "type": "string",
       "description": "ethereum | base | arbitrum | optimism | polygon (default: base)"
      },
      "amount": {
       "type": "string",
       "description": "loan amount in USD, e.g. 100000"
      },
      "protocol": {
       "type": "string",
       "description": "aave | balancer (default: aave)"
      },
      "receiver": {
       "type": "string",
       "description": "optional — shows template if not provided"
      },
      "strategy": {
       "type": "string",
       "description": "dex-arb | yield-arb | liquidation | custom (default: dex-arb)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "errors": {
     "type": "object",
     "description": "Documented error responses, keyed by HTTP status code",
     "additionalProperties": {
      "type": "object",
      "required": [
       "description"
      ],
      "properties": {
       "example": {
        "type": "object"
       },
       "description": {
        "type": "string"
       }
      }
     }
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": "USDC",
  "chain": "base",
  "calldata": "0x42b0b77c000000000000000000000000<receiver_address>000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "protocol": "aave-v3",
  "pool_address": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
  "risk_factors": [
   "Tx reverts if arb profit < loan fee",
   "Gas cost reduces net profit",
   "Front-running by MEV bots"
  ],
  "flash_fee_pct": 0.09,
  "flash_fee_usd": 90,
  "strategy_type": "dex-arb",
  "execution_flow": [
   {
    "step": 1,
    "action": "Call flashLoanSimple on Aave Pool",
    "details": "Pool transfers 100,000 USDC to your receiver contract"
   },
   {
    "step": 2,
    "action": "executeOperation callback fires",
    "details": "Your contract executes the arb — swap USDC→ETH on DEX A, ETH→USDC on DEX B"
   },
   {
    "step": 3,
    "action": "Approve and repay",
    "details": "Approve Pool for 100,090 USDC (principal + 0.09% fee) — all in same tx"
   },
   {
    "step": 4,
    "action": "Profit withdrawn",
    "details": "Remaining USDC balance is your profit — tx reverts if insufficient"
   }
  ],
  "loan_amount_usd": 100000,
  "strategy_summary": "Aave V3 Base flash loan: borrow $100,000 USDC, execute DEX arbitrage, repay with 0.09% fee ($90), keep profit.",
  "estimated_gas_usd": 0.5,
  "gas_estimate_gwei": 250000,
  "onchain_resources": [
   {
    "url": "https://docs.aave.com/developers/guides/flash-loans",
    "name": "Aave V3 Flash Loan Docs"
   },
   {
    "url": "https://basescan.org/address/0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
    "name": "Aave Base Pool"
   }
  ],
  "pulse_suggestions": [],
  "required_approvals": [
   {
    "token": "USDC",
    "amount": "amount + fee after execution",
    "spender": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
   }
  ],
  "net_profit_estimate_usd": 847.5,
  "executor_contract_template": "interface IFlashLoanSimpleReceiver {\n  function executeOperation(address asset, uint256 amount, uint256 premium, address initiator, bytes calldata params) external returns (bool);\n}\n\ncontract FlashArb is IFlashLoanSimpleReceiver {\n  address constant AAVE_POOL = 0xA238Dd80C259a72e81d7e4664a9801593F98d1c5;\n  // ... implement executeOperation
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arbipulse-flash-loan-strategy-builder-42e72c6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from arbipulse.vercel.app](https://www.zero.xyz/host/arbipulse.vercel.app/llms.txt)
