wallet-engine-lib
Version:
Professional, reusable wallet UI components with Gelato SDK integration. Enterprise-grade React components for building smart wallet applications.
27 lines (26 loc) • 848 B
TypeScript
import { default as React } from 'react';
import { Chain } from 'viem';
export interface WalletClient {
address: string;
chainId: number;
isConnected: boolean;
apiKey: string;
chain: Chain;
}
export interface CreateWalletProps {
/** Gelato API key for wallet creation */
apiKey: string;
/** Target blockchain network */
chain?: Chain;
/** Callback when wallet creation is initiated */
onWalletCreating?: (ownerAddress: string) => void;
/** Callback when wallet is successfully created */
onWalletCreated?: (client: WalletClient) => void;
/** Callback for error handling */
onError?: (error: Error) => void;
/** Additional CSS classes */
className?: string;
/** Disable the component */
disabled?: boolean;
}
export declare const CreateWallet: React.FC<CreateWalletProps>;