Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
构造参数与 verify/settle/supported 输入
new Facilitator({ recipientAddress: string, relayer?: string, waitUntil?: "confirmed", baseUrl?: string, apiKey?: string, });
verify(payload, requirements)
settle(payload, requirements, waitUntil?)
supported(filters?)
verify( payload: PaymentPayload, requirements: PaymentRequirements ): Promise<{ success: true; payer: string } | { success: false; error: string }>;
settle( payload: PaymentPayload, requirements: PaymentRequirements, waitUntil?: "confirmed" ): Promise<{ success: true; txHash: string; network: string } | { success: false; error: string }>;
supported(filters?: { chainId?: number; tokenAddress?: string; }): Promise<{ success: true; chains: number[]; tokens: { address: string; supportedMethods: ("eip3009" | "permit" | "permit2")[] }[]; } | { success: false; error: string }>;
注意:waitUntil 暂时仅支持 "confirmed"。
waitUntil
"confirmed"