TypeScript SDK

ThirdwebX402Facilitator

facilitator for the x402 payment protocol.

type ThirdwebX402Facilitator = {
address: string;
createAuthHeaders: () => Promise<{
list: Record<string, string>;
settle: Record<string, string>;
supported: Record<string, string>;
verify: Record<string, string>;
}>;
settle: (
payload: RequestedPaymentPayload,
paymentRequirements: RequestedPaymentRequirements,
) => Promise<FacilitatorSettleResponse>;
supported: () => Promise<SupportedPaymentKindsResponse>;
url: `${string}://${string}`;
verify: (
payload: RequestedPaymentPayload,
paymentRequirements: RequestedPaymentRequirements,
) => Promise<VerifyResponse>;
};