Api Endpoint

base-simulate

Simulate a Base mainnet transaction before sending it - will it succeed, estimated gas, and the decoded revert reason if it would fail.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/base/simulate
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
simulate transaction base, transaction simulation, base rpc, eth_call, revert reason

Payment pricing

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

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
  }
]

Observed health

Status
Reachable
Latest latency
1164 ms
Average latency
922 ms
HTTP status
405
Last checked
Reachability
100% over 13 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": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "from_address": {
          "title": "From Address",
          "type": "string"
        },
        "to": {
          "title": "To",
          "type": "string"
        },
        "data": {
          "default": "0x",
          "title": "Data",
          "type": "string"
        },
        "value_wei": {
          "default": 0,
          "title": "Value Wei",
          "type": "integer"
        }
      },
      "required": [
        "from_address",
        "to"
      ],
      "title": "SimulateInput",
      "type": "object"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "will_succeed": {
          "title": "Will Succeed",
          "type": "boolean"
        },
        "gas_estimate": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gas Estimate"
        },
        "revert_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Revert Reason"
        },
        "return_data": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Return Data"
        }
      },
      "required": [
        "will_succeed",
        "gas_estimate",
        "revert_reason",
        "return_data"
      ],
      "title": "SimulateOutput"
    }
  },
  "required": [
    "type"
  ]
}