# SolMachina Slippage Map

> SolMachina Slippage Map is a paid API for AI agents from api.solmachina.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns a liquidity depth map for a Solana token pair, showing price impact at multiple trade sizes to reveal market depth and slippage risk.

## Facts

- Endpoint: GET https://api.solmachina.com/v1/slippage-map
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solmachina-slippage-map-c7c68afc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DICSrKRlW7GZRfiAVhkrN

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 solmachina-slippage-map-c7c68afc
```

Example prompt: Before I swap 1,000,000 lamports of SOL (So11111111111111111111111111111111111111112) for USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v), can you pull the SolMachina slippage map with size multipliers 0.1, 1, 10, and 100 so I can see how price impact scales up and whether there's enough depth to stay under 1%?

## When to prefer this

Use SolMachina Slippage Map when an AI agent or trader needs to assess Solana DEX liquidity depth before committing to a trade — especially for large or multi-size swaps where price impact risk is material. Prefer this over a simple quote endpoint when you need to understand the full slippage curve across trade sizes, not just a single quote. Ideal for pre-trade risk gating, position sizing, and automated agent decision-making on Solana.

## Known failure modes

- Unknown or illiquid mint address returns empty depth or error
- Amount specified in wrong units (e.g. whole SOL instead of lamports) causes misleading results
- Unsupported token pair with no on-chain DEX routes returns no data
- Stale or low-liquidity pool data may cause inaccurate price impact estimates
- Payment failure over x402 (insufficient USDC balance) blocks the request
- Invalid Base58 mint address returns a 400 validation error
- Too many multipliers (>8) causes request rejection

## How this service works

Before an AI agent executes on Solana, it asks SolMachina: risk + a decision (EXECUTE/REVIEW/REJECT) + an SMRI score + a signed receipt, paid per call over x402 in USDC. Trust-first — cites every source, says 'unknown' over guessing. No account, no API key.

## Output

Returns a structured slippage map with a 'pair' object identifying inputMint and outputMint, a 'depth' object showing the maximum USD tradeable under 1% and 5% price impact thresholds, a 'points' array with per-size-band entries (multiplier, swap USD value, size in base units, price impact percentage, and band label), and the baseAmount used as reference. This gives the agent a full picture of market depth and cost of liquidity at multiple trade sizes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "amount",
  "inputMint",
  "outputMint"
 ],
 "properties": {
  "mults": {
   "type": "string",
   "description": "Optional comma-separated size multipliers of the base amount (default 0.1,1,10,100; up to 8)."
  },
  "amount": {
   "type": "string",
   "description": "Base units of inputMint for the 1x reference size (lamports for SOL, 1e6 per USDC)."
  },
  "inputMint": {
   "type": "string",
   "description": "Base58 mint you are selling, e.g. So11111111111111111111111111111111111111112 (SOL)."
  },
  "outputMint": {
   "type": "string",
   "description": "Base58 mint you are buying, e.g. EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (USDC)."
  },
  "slippageBps": {
   "type": "integer",
   "description": "Slippage tolerance in basis points for min-received, 0-5000 (default 50)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pair": {
   "type": "object",
   "properties": {
    "inputMint": {
     "type": "string"
    },
    "outputMint": {
     "type": "string"
    }
   }
  },
  "depth": {
   "type": "object",
   "properties": {
    "under1pct": {
     "type": "object",
     "properties": {
      "maxUsd": {
       "type": "integer"
      }
     }
    },
    "under5pct": {
     "type": "object",
     "properties": {
      "maxUsd": {
       "type": "integer"
      }
     }
    }
   }
  },
  "points": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "band": {
      "type": "string"
     },
     "mult": {
      "type": "integer"
     },
     "swapUsdValue": {
      "type": "integer"
     },
     "sizeBaseUnits": {
      "type": "string"
     },
     "priceImpactPct": {
      "type": "number"
     }
    }
   }
  },
  "baseAmount": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solmachina-slippage-map-c7c68afc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.solmachina.com](https://www.zero.xyz/host/api.solmachina.com/llms.txt)
