83trust / 100

Base Tx Decision

by x402 MCP Storefront in Onchain & crypto

x402 APIPassing, checked 5 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
266 ms typical, 266 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402-mcp.onrender.com/base/tx-decision?gas=usdc&urgency=flexible"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-mcp.onrender.com%2Fbase%2Ftx-decision
const res = await pay("https://x402-mcp.onrender.com/base/tx-decision?gas=usdc&urgency=flexible");
console.log(await res.json());

Example input

{
  "gas": "usdc",
  "urgency": "flexible"
}

Example output

{
  "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"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402266 ms$0.01