probeX402Endpoint
PQSafe AgentPay API Reference v0.1.0
PQSafe AgentPay API Reference / probeX402Endpoint
Function: probeX402Endpoint()
probeX402Endpoint(
url,fetchFn?):Promise<X402PaymentRequirements|null>
Defined in: pqsafe/agent-pay/src/rails/x402.ts:232
Check if a URL endpoint supports x402 payments. Returns the payment requirements if supported, null otherwise.
Parameters
url
string
fetchFn?
(input, init?) => Promise<Response>
Returns
Promise<X402PaymentRequirements | null>