# StatePulse Blockchain Transaction Simulator

> StatePulse Blockchain Transaction Simulator is a paid API for AI agents from statepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Simulates an Ethereum smart contract transaction and returns whether it would revert, the output hex, and a confidence level — without broadcasting to the network.

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/blockchain/simulate
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-blockchain-transaction-simulator-ba143294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LNU2pFnr3u1-_xwtYRVX8

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 statepulse-blockchain-transaction-simulator-ba143294 -d '<json body>'
```

Example prompt: Can you simulate this Ethereum contract call to check if it'll revert before I actually send it — the contract is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, calldata is 0xa9059cbb000...00de0b6b3a7640000, and the sender is 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?

## When to prefer this

Use this endpoint when you need a fast, keyless, pay-per-call simulation of an Ethereum smart contract call to check for reverts or preview outputs before committing a real on-chain transaction. Prefer it over full node eth_call when you want a managed, serverless simulation with a confidence indicator and no API key setup required.

## Known failure modes

- Unsupported contract or network returns supported:false
- Malformed calldata returns a 400-level error
- Contract not found at address returns an error or low confidence result
- Simulation backend temporarily unavailable returns 5xx
- Payment not processed via x402/USDC returns 402 payment required

## How this service works

Runs eth_call state simulation against the Base blockchain RPC to check for transaction reverts. Matches: EVM revert checks, test contract call, inspect transaction failure, dry-run solidity method, gas estimator, test token swap failure, simulate multisig transaction execution.

## Output

Returns a JSON object with a 'result' field containing 'reverted' (boolean indicating if the tx would revert), 'output_hex' (the raw hex output of the call), a 'supported' flag (boolean), and a 'confidence' string (e.g. 'high').

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "reverted": false,
   "output_hex": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "supported": true,
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-blockchain-transaction-simulator-ba143294/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from statepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/statepulse-api.hahavoid0.workers.dev/llms.txt)
