PipRail
PipRail
agents check they can afford it — first
plan.ts x402
// can the agent actually settle this? check first
const plan = await agent.planPayment(url)

if (plan.payable) {
  await agent.fetch(url, { autoRoute: true })
}

// plan.best · plan.blockers · plan.fundingHint
checks token + gas + recipient before it pays piprail.com