UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

25 lines (24 loc) 956 B
import React from "react"; import { useConnectCallbackProps } from "../hooks/useConnectCallback"; import { CustomTheme, DaimoPayContextOptions, Mode, Theme } from "../types"; type DaimoPayProviderProps = { children?: React.ReactNode; theme?: Theme; mode?: Mode; customTheme?: CustomTheme; options?: DaimoPayContextOptions; debugMode?: boolean; /** * Be careful with this endpoint, some endpoints (incl. Alchemy) don't support * `signatureSubscribe` which leads to txes behaving erratically * (ex. successful txes take minutes to confirm instead of seconds) */ solanaRpcUrl?: string; /** Custom Pay API, useful for test and staging. */ payApiUrl?: string; } & useConnectCallbackProps; /** * Provides context for DaimoPayButton and hooks. Place in app root or layout. */ export declare const DaimoPayProvider: (props: DaimoPayProviderProps) => import("react/jsx-runtime").JSX.Element; export {};