blockchain

Chain Simulation

Pre-sign EVM transaction simulation: an eth_call with state overrides previewing the revert reason and asset deltas before you sign. POST /v1/chain with the call {to, data, ...} and get the outcome as one JSON object. Deterministic per state instant. Pay per request in USDC; no account, no API key.

post/v1/chain-simulation

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/chain-simulation
  • Auth: none required

Request body

tostring required

Target contract address, 0x-prefixed.

datastring

Calldata, 0x-prefixed (0x for none).

fromstring

Optional sender address.

chain_idinteger

EVM chain id (default 1).

Response

The upstream response, served after payment settles.

object required

For POST /v1/chain, a JSON object with the simulated outcome: success or revert reason, asset deltas, and the chain_id. The exact shape is the service's own and is not pinned here; errors return a JSON object with an error field, and the GET routes return their own small JSON documents.

Changes

No recorded changes to this operation across all 1 revision of this API.