api.liquidagent.ai/v1/gas
Gas sponsorship for one ERC-4337 user operation on Base (EntryPoint v0.8). Price = max($0.03, 1.3× the op's gas cap); this is the floor — send your user operation to get the exact quote. Bodies this URL accepts: {sender, calls[, redelegate:true]} (plain wallet, EIP-7702) | {userOperation} unsigned (any EntryPoint v0.8 smart account, bring your own operation) | JSON-RPC ERC-7677. Then POST the sign
POST
https://api.liquidagent.ai/v1/gasUptime100% of 3 checks 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://api.liquidagent.ai/v1/gas", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"method":"pm_getPaymasterData","params":[{"callData":"0x","callGasLimit":"0x30d40","maxFeePerGas":"0x5f5e100","maxPriorityFeePerGas":"0xf4240","nonce":"0x0","preVerificationGas":"0x13880","sender":"0xYourSmartAccount","verificationGasLimit":"0x186a0"},"0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108","0x2105",{"x402":"<payment object>"}]}),
});
console.log(await res.json());Example input
{
"method": "pm_getPaymasterData",
"params": [
{
"callData": "0x",
"callGasLimit": "0x30d40",
"maxFeePerGas": "0x5f5e100",
"maxPriorityFeePerGas": "0xf4240",
"nonce": "0x0",
"preVerificationGas": "0x13880",
"sender": "0xYourSmartAccount",
"verificationGasLimit": "0x186a0"
},
"0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108",
"0x2105",
{
"x402": "<payment object>"
}
]
}