# Liquid Agent Transaction Preflight (Base)

> Liquid Agent Transaction Preflight (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 an unsigned Ethereum Base transaction to estimate gas usage and an indicative USDC sponsorship price, without signing or broadcasting.

## Facts

- Endpoint: POST https://api.liquidagent.ai/v1/gas/preflight?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-transaction-preflight-base-c312b3f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8XZS58Eh4I6scP58WM5Se

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-transaction-preflight-base-c312b3f8 -d '<json body>'
```

Example prompt: Before I send this transaction, can you preflight it on Base — the target contract is 0xAbC...123, the calldata is 0xa9059cbb000...001, and I'm sending 0 ETH — and tell me the estimated gas and USDC sponsorship price?

## When to prefer this

Choose this endpoint when you need to validate or estimate gas for an unsigned transaction on the Base chain before committing it, especially when you want an indicative USDC gas sponsorship price alongside the gas estimate. It is ideal for agents that need to preflight smart contract calls, catch reverts before broadcasting, or budget transaction costs in USDC — without any signing or on-chain side effects.

## Known failure modes

- Invalid or malformed contract address returns a validation error
- Calldata exceeding 16 KiB is rejected
- Invalid hex-encoded calldata returns a parse error
- Simulation fails if the target contract does not exist on Base
- Unreachable or rate-limited Base RPC node may cause timeout
- Ambiguous value format (non-decimal, non-hex) may cause parsing error

## How this service works

Base transaction preflight: simulate an unsigned transaction, estimate gas and an indicative USDC sponsorship price. No signing or broadcast. $0.005 per completed preflight, including a decoded revert.

## Output

Returns a simulation result including estimated gas usage, an indicative USDC sponsorship price for the transaction, and if the transaction would revert, a decoded revert reason — all without signing or broadcasting anything to the network.

## 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,
  "success": true,
  "gasEstimate": "50000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquid-agent-transaction-preflight-base-c312b3f8/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)
