Access to protected content on polygon mainnet
x402.payai.network/api/polygon/paid-content
Access to protected content on polygon mainnet
GET
https://x402.payai.network/api/polygon/paid-contentUptimeNot checked yet
30 days agoToday
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://x402.payai.network/api/polygon/paid-content");
console.log(await res.json());