UNPKG

@stablecoin.xyz/react

Version:

React hooks and components for SBC Account Abstraction

13 lines 772 B
import type { SendUserOperationParams, UserOperationResult, UserOperationEstimate } from '@stablecoin.xyz/core'; import type { UseUserOperationOptions, UserOperationState } from '../types'; export interface UseUserOperationReturn extends UserOperationState { /** Send a user operation */ sendUserOperation: (params: SendUserOperationParams) => Promise<UserOperationResult | undefined>; /** Estimate gas for a user operation */ estimateUserOperation: (params: SendUserOperationParams) => Promise<UserOperationEstimate | undefined>; } /** * Hook for sending user operations with automatic state management */ export declare function useUserOperation(options?: UseUserOperationOptions): UseUserOperationReturn; //# sourceMappingURL=useUserOperation.d.ts.map