Function: createX402Fetch()¶
Defined in: rine-ts-sdk/src/resources/x402-fetch.ts:62
Build a fetch-compatible function that transparently pays x402 402
challenges. On a non-402 response the original response is returned unchanged.
A policy refusal throws (from selectRequirement) — the request is NOT paid.
Parameters¶
| Parameter | Type |
|---|---|
opts |
X402FetchOptions |
Returns¶
(input, init?) => Promise\<Response>