Api Endpoint

dev.workers.dolerite.base-onchain-tools/base-onchain-tools

Will this token payment actually go through, and if not exactly why. Simulates the transfer without spending gas, decodes the real revert reason (Error(string), Panic codes translated to English, or a custom error selector), and separately reports balance and allowance blockers. Understands that a caller with no ETH is fine for gasless EIP-3009 or a sponsored relayer.

Open interactive test console

Offering

Provider
base-onchain-tools.dolerite.workers.dev
Method
GET
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://base-onchain-tools.dolerite.workers.dev/v1/base/simulate-transfer
MIME type
Not provided
First seen
2026-10-16T03:02:07.735Z
Last seen
Tags
MCP, X402

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
682 ms
Average latency
1141 ms
HTTP status
402
Last checked
Reachability
100% over 14 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": "Address the tokens leave"
        },
        "to": {
          "type": "string",
          "description": "Recipient address"
        },
        "amount": {
          "type": "string",
          "description": "Amount in atomic units (for USDC, 1000000 = $1)"
        },
        "token": {
          "type": "string",
          "description": "Optional ERC-20 contract, defaults to USDC on Base"
        },
        "spender": {
          "type": "string",
          "description": "Optional: simulate transferFrom pulled by this spender instead of a direct transfer"
        }
      },
      "required": [
        "from",
        "to",
        "amount"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}