# Liquid Agent Gas Preflight Batch (Base)

> Liquid Agent Gas Preflight Batch (Base) is a paid API for AI agents from api.liquidagent.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-01).

Simulates one or more unsigned EVM transactions in batch on Base, returning gas estimates and success/failure for each, before any on-chain execution.

## Facts

- Endpoint: POST https://api.liquidagent.ai/v1/gas/preflight/batch?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquid-agent-gas-preflight-batch-base-be374a9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qG8DYoqW91E70mcG2X_I_

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 liquid-agent-gas-preflight-batch-base-be374a9b -d '<json body>'
```

Example prompt: Before I send these three contract calls on Base, can you simulate them all at once and tell me how much gas each one will need and whether they'll succeed? The first call goes to 0xAbC...123 with calldata 0xd0e30c0b and 0 ETH, the second to 0xDeF...456 with no calldata and 1000000000000000 wei, and the third to 0x789...xyz with calldata 0xa9059cbb...

## When to prefer this

Use this endpoint when you need to simulate multiple EVM transactions on Base in a single round-trip before committing gas or signing anything. It is preferable to single-call preflight endpoints when you have two or more interdependent or parallel contract interactions to validate at once, and it is the right choice when you want to budget gas accurately across a batch without any on-chain side effects.

## Known failure modes

- Invalid contract address returns simulation failure for that index
- Malformed calldata causes per-call failure with success:false
- Value exceeding simulated sender balance causes revert
- Calldata exceeding 16 KiB limit is rejected
- Network or RPC timeout causes the entire batch to fail
- Revert in one call does not necessarily fail the whole batch — per-index results are independent

## How this service works

One account for your money. And a Copilot that only acts when you approve. Earn on savings, send money in seconds, and buy stocks from $1, all from one balance, with none of the crypto.

## Output

A JSON object containing the Base chainId (8453), an overall success flag, and a results array where each entry includes the call's index, a success boolean, and a gasEstimate string (in units of gas) for that simulated transaction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Contract or wallet address to call"
  },
  "data": {
   "type": "string",
   "default": "0x",
   "description": "0x calldata, up to 16 KiB"
  },
  "from": {
   "type": "string",
   "description": "Optional msg.sender for the simulation; defaults to the zero address"
  },
  "value": {
   "type": "string",
   "default": "0",
   "description": "Native ETH value in wei as a decimal or hex string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chainId": 8453,
  "results": [
   {
    "index": 0,
    "success": true,
    "gasEstimate": "31294"
   }
  ],
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquid-agent-gas-preflight-batch-base-be374a9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.liquidagent.ai](https://www.zero.xyz/host/api.liquidagent.ai/llms.txt)
