@web3auth/no-modal
Version:
Multi chain wallet aggregator for web3Auth
12 lines (11 loc) • 539 B
TypeScript
export declare const PAYMENT_REQUIRED_HEADER = "PAYMENT-REQUIRED";
export interface IUseX402FetchParams {
/** The URL to send the payment-gated request to. */
url: string;
/** Optional fetch init options (method, headers, body, etc.). */
options?: RequestInit;
}
export interface IUseX402FetchReturnValues {
/** Trigger the payment-gated fetch. Resolves with the raw `Response` — callers are responsible for reading and parsing the body. */
fetchWithPayment: (params: IUseX402FetchParams) => Promise<Response>;
}