CreateHttpFacilitatorParams
このコンテンツはまだ日本語訳がありません。
Defined in: src/x402/facilitator.ts:644
Parameters for createHttpFacilitator.
Properties
baseUrl
readonlybaseUrl:string
Defined in: src/x402/facilitator.ts:651
Base URL of the facilitator service (Coinbase CDP, your own host, any
x402 v2-compliant endpoint). Endpoints /verify, /settle, /supported
are POST / POST / GET respectively relative to this URL. Trailing slash
is stripped.
fetch?
readonlyoptionalfetch?: (input,init?) =>Promise<Response>
Defined in: src/x402/facilitator.ts:664
Override the global fetch (e.g. for in-process testing or to inject
an undici Agent in Node).
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>
getAuthHeaders?
readonlyoptionalgetAuthHeaders?: (endpoint) =>Record<string,string> |Promise<Record<string,string>>
Defined in: src/x402/facilitator.ts:657
Optional callback invoked per request that returns headers to merge
into the outbound request (typically Authorization). Receives the
endpoint name so the caller can compute distinct signatures per route.
Parameters
endpoint
"verify" | "settle" | "supported"
Returns
Record<string, string> | Promise<Record<string, string>>