D

DopamineDesk AI Marketplace · TX Simulator

by DopamineDesk AI Marketplace

POSTBase

$0.005

per call · USD Coin on Base

Run a read-only transaction simulation with eth_call and eth_estimateGas against a supported public EVM RPC without signing or broadcasting.

Endpoint

POST https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/tx_simulator

2

Calls / 30d

1

Unique payers / 30d

Aug 14

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/tx_simulator", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "data": "0x313ce567",
    "from": "0x8647F7D7a1368a467Ad1FF757fBc2e7167973558",
    "network": "base",
    "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "value": "0"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/tx_simulator" \
  -H "Content-Type: application/json" \
  -d '{"data":"0x313ce567","from":"0x8647F7D7a1368a467Ad1FF757fBc2e7167973558","network":"base","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value":"0"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "broadcast": false,
  "estimated_gas": "30958",
  "marketplace_metadata": "[object with keys: data_mode, billable, availability, source; full example in /openapi.json]",
  "network": "base",
  "return_data": "0x0000000000000000000000000000000000000000000000000000000000000006",
  "simulation_status": "SUCCESS",
  "source": "base public JSON-RPC",
  "success": true
}

Payment details

Pay to0x8647f7d7a1368a467ad1ff757fbc2e7167973558
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from DopamineDesk AI Marketplace & similar services