81trust / 100

Arc Cost

by APEX Arc transaction cost in Onchain & crypto

x402 APIPassing, checked 2 h ago

What a given operation SHOULD cost on Arc right now, in dollars - a price list computed at the gas price read at this block, and the companion to /api/x402/arc-gas which measures what transactions ACTUALLY cost across a spread of blocks. Use this one to quote an operation, that one to budget for the tail: the 20 gwei floor holds most of the time but is not a cap, and the response says so.

GET https://apexfaucet.xyz/api/x402/arc-cost

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://apexfaucet.xyz/api/x402/arc-cost"
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%2Fapexfaucet.xyz%2Fapi%2Fx402%2Farc-cost
const res = await pay("https://apexfaucet.xyz/api/x402/arc-cost");
console.log(await res.json());

Example output

{
  "data": {
    "blockSeconds": 0.55,
    "chainId": 5042,
    "costsUsdc": [
      {}
    ],
    "gasPriceGwei": 20,
    "gasPriceIsNotFixed": "These costs use the gas price at readAtB…",
    "honesty": "Rows marked as an estimate are standard …",
    "measuredByUs": {
      "bondKeep": {},
      "touchstoneAssay": {}
    },
    "note": "Arc settles gas in native USDC (18 decim…",
    "ok": true,
    "operatorCaveats": [
      "eth_getLogs is capped — drpc free plan r…"
    ],
    "readAtBlock": 24511831,
    "source": "Live Arc RPC for gas price and block tim…"
  },
  "ok": true,
  "paid": 0.003
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402160 ms$0.003
7 h agoPassed40266 ms$0.003