@0xsequence/anypay-sdk
Version:
SDK for Anypay functionality
31 lines • 1.12 kB
TypeScript
import React from "react";
import "@0xsequence/design-system/preset";
export type Theme = "light" | "dark" | "auto";
export declare const defaultWalletOptions: string[];
export type AnyPayWidgetProps = {
sequenceApiKey: string;
sequenceIndexerUrl?: string;
sequenceApiUrl?: string;
sequenceEnv?: "local" | "cors-anywhere" | "dev" | "prod";
toAddress?: string;
toAmount?: string;
toChainId?: number | string;
toToken?: string;
toCalldata?: string;
provider?: any;
children?: React.ReactNode;
renderInline?: boolean;
theme?: Theme;
walletOptions?: string[];
onOriginConfirmation?: (txHash: string) => void;
onDestinationConfirmation?: (txHash: string) => void;
privyAppId?: string;
privyClientId?: string;
useSourceTokenForButtonText?: boolean;
};
export declare const AnyPayWidget: (props: AnyPayWidgetProps) => import("react/jsx-runtime").JSX.Element;
export declare function ShadowPortal({ children }: {
children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export default AnyPayWidget;
//# sourceMappingURL=widget.d.ts.map