aether-x402.vercel.app/v1/base/estimate-gas
Estimate the gas and the cost in ETH and USD of a Base transaction before signing it. Input: to, and optionally from, data and value
POST
https://aether-x402.vercel.app/v1/base/estimate-gasUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://aether-x402.vercel.app/v1/base/estimate-gas", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"from":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","to":"0x2211d1D0020DAEA8039E46Cf1367962070d77DA9","value":"1000000000000000"}),
});
console.log(await res.json());Example input
{
"from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"to": "0x2211d1D0020DAEA8039E46Cf1367962070d77DA9",
"value": "1000000000000000"
}More from AetherProvider status
- aether-x402.vercel.app/v1/base/balanceWallet balance on Base: the native ETH balance of any address, read live from the chain. Input: address0.001
- aether-x402.vercel.app/v1/base/erc20-balanceERC-20 token balance of a wallet on Base (USDC or any other token), formatted with symbol and decimals. Input: wallet address and token address0.002
- aether-x402.vercel.app/v1/base/priceToken price on Base by contract address: live USD price and pool liquidity from Uniswap v2/v3 and Aerodrome. Works for any token with a DEX pool, including newly launched ones0.003
- aether-x402.vercel.app/v1/base/token/riskIs this Base token safe to buy, or a honeypot, rug pull or scam? Simulates a real buy and sell to prove the token can be sold and to measure buy and sell tax, then checks mint, blacklist, pause and fee powers, proxy upgradeability, owner and DEX liquidity. Input: token address. Returns a verdict (low, caution, high, avoid), a 0-100 risk score and the evidence. Check before an agent trades a token.0.01
