Api Endpoint

Transaction Simulation

Simulate an UNSIGNED transaction against live Base state before an agent signs: will it SUCCEED or revert (with the contract's own reason), the gas estimate and ETH cost, and — decoded from the calldata — whether it grants an approval, and whether that approval is UNLIMITED (approve/permit) or a setApprovalForAll, the classic drain vectors. Pass from, to, and optionally data (calldata) + value. The pre-execution check the agent-safety playbook says to run and block on. Not financial advice.

Open interactive test console

Offering

Provider
402.com.tr
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://402.com.tr/api/x402/simulate-tx
MIME type
application/json
First seen
2026-11-25T17:21:16.363Z
Last seen
Tags
Onchain, EVM, wallet-intel, Security, Data, simulate, Base, X402

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.03 USDC
Atomic price: 30000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.03 USDC
Atomic price: 30000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "30000",
    "payTo": "0x973a31858f4d2125f48c880542da11a2796f12d6"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "30000",
    "payTo": "4au4N67H9KpfqgPC5yEu15Ac6weHJVNnkRQnW7sucgHX"
  }
]

Observed health

Status
Healthy
Latest latency
3604 ms
Average latency
795 ms
HTTP status
402
Last checked
Reachability
100% over 2 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "Sender address"
        },
        "to": {
          "type": "string",
          "description": "To (recipient/contract)"
        },
        "data": {
          "type": "string",
          "description": "Calldata (hex, optional)"
        },
        "value": {
          "type": "string",
          "description": "ETH value (optional)"
        }
      },
      "required": [
        "from",
        "to"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "data": {
              "description": "Calldata (hex, optional)",
              "type": "string"
            },
            "from": {
              "description": "Sender address",
              "type": "string"
            },
            "to": {
              "description": "To (recipient/contract)",
              "type": "string"
            },
            "value": {
              "description": "ETH value (optional)",
              "type": "string"
            }
          },
          "required": [
            "from",
            "to"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}