Interface: X402FetchOptions
Defined in: packages/x402-server-sdk/src/fetch.ts:18
Properties
fetch?
ts
fetch?: FetchLike;Defined in: packages/x402-server-sdk/src/fetch.ts:26
Underlying fetch to wrap. Defaults to the global fetch.
select?
ts
select?: (accepts, payers) => X402Selection | undefined;Defined in: packages/x402-server-sdk/src/fetch.ts:24
Choose which payer pays which advertised requirement. Default: for each accepts[] entry in the server's order, the first payer that supports() it — so the server's preference order wins and mixed-scheme offers route correctly.
Parameters
accepts
object[]
payers
Returns
X402Selection | undefined