# Pocket Network EVM Transaction Simulation

> Pocket Network EVM Transaction Simulation is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Simulates an EVM transaction before signing, returning the revert reason and asset deltas as a single JSON object without requiring an account or API key.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/chain-simulation?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-evm-transaction-simulation-48754d0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3kZaPHPuMnUOSWLK-ufjK

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 pocket-network-evm-transaction-simulation-48754d0e -d '<json body>'
```

Example prompt: Before I sign this swap, simulate the transaction on Ethereum mainnet — the contract is 0xUniswapRouterAddress and the calldata is 0xabcdef1234... — and tell me if it will revert and what token balances will change.

## When to prefer this

Use this endpoint when you need a fast, stateless, pay-per-request EVM transaction simulation with no account setup — ideal for agents that must pre-flight check smart contract calls, detect reverts, or preview asset deltas before submitting a transaction on-chain. Prefer it over full node RPC calls when you want a single structured JSON response with asset delta summaries rather than raw eth_call output.

## Known failure modes

- Invalid or malformed contract address returns a validation error
- Malformed or empty calldata may produce unexpected simulation results
- Unsupported chain ID returns an error or falls back to default chain
- Contract state at simulation time may differ from broadcast time, causing divergence
- Network unavailability of the underlying Pocket Network node returns a 5xx error
- Insufficient USDC payment causes a 402 Payment Required response

## How this service works

Pay-per-call access to Pocket Network services. No account, no API key.

## Output

A JSON object containing the simulation outcome, including whether the transaction reverts (and the revert reason if so), asset deltas showing token balance changes, and portal metadata such as service ID and provenance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target contract address, 0x-prefixed."
  },
  "data": {
   "type": "string",
   "description": "Calldata, 0x-prefixed (0x for none)."
  },
  "from": {
   "type": "string",
   "description": "Optional sender address."
  },
  "chain_id": {
   "type": "integer",
   "description": "EVM chain id (default 1)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "portal": {
   "serviceId": "chain-simulation",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-evm-transaction-simulation-48754d0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
