X

x402 MCP Storefront · Base TX Decision

by x402 MCP Storefront

GETBaseSolanaArbitrum

$0.01

per call · USD Coin on Base

Should I submit this Base transaction now, and at what fee? One call returns submit-or-wait, max fee per gas and priority fee in gwei (EIP-1559), and the estimated cost in USD for an ETH transfer, USDC ERC-20 transfer, or x402 settlement on Base mainnet. Live gas price and congestion from Base RPC blocks, no API key. For bots that queue transactions: call before every send.

Endpoint

GET https://x402-mcp.onrender.com/base/tx-decision

8

Calls / 30d

4

Unique payers / 30d

Sep 1

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://x402-mcp.onrender.com/base/tx-decision", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402-mcp.onrender.com/base/tx-decision?gas=usdc&urgency=flexible" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "as_of_block": 48941850,
  "estimated_cost": {
    "gas": 55000,
    "usd": 0.0011
  },
  "fee": {
    "current_base_fee_gwei": 0.0055,
    "max_fee_per_gas_gwei": 0.012,
    "max_priority_fee_per_gas_gwei": 0.001
  },
  "recheck_in_s": null,
  "submit": true,
  "verdict": "SETTLE_NOW"
}

Payment details

Pay to0x8a897d546c22d726b45fa25f0ebb56207e63ff4e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum
Schemesexact

Is this your API?

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

Get featured →

More from x402 MCP Storefront & similar services