Skip to content
Fourohtwo

api.avedaris.com/v1/paid/counterparty-preflight

Pre-payment economic and structural preflight for an external Base USDC counterparty: check endpoint reachability, payment terms, recipient format, caller budget, and economic ceiling before any external payment is made. $0.025 USDC per call on Base.

BaseAnswering
POSThttps://api.avedaris.com/v1/paid/counterparty-preflight

Uptime100% 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://api.avedaris.com/v1/paid/counterparty-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"endpoint":"https://seller.example/v1/paid/task","maxEconomicallyRationalSpendUsd":0.02,"maxSpendUsd":0.05,"outcomeValueUsd":0.1,"paymentRequirement":{"amountUsd":0.01,"asset":"USDC","network":"eip155:8453","payTo":"0x1111111111111111111111111111111111111111"}}),
});
console.log(await res.json());

Example input

{
  "endpoint": "https://seller.example/v1/paid/task",
  "maxEconomicallyRationalSpendUsd": 0.02,
  "maxSpendUsd": 0.05,
  "outcomeValueUsd": 0.1,
  "paymentRequirement": {
    "amountUsd": 0.01,
    "asset": "USDC",
    "network": "eip155:8453",
    "payTo": "0x1111111111111111111111111111111111111111"
  }
}

More from AveDaris Agent UtilitiesProvider status