@stablecoin.xyz/react
Version:
React hooks and components for SBC Account Abstraction
26 lines • 953 B
TypeScript
import type { AccountInfo } from '@stablecoin.xyz/core';
export interface UseSbcAppReturn {
/** SBC App Kit instance */
sbcAppKit: import('@stablecoin.xyz/core').SbcAppKit | null;
/** Whether the SDK is initialized */
isInitialized: boolean;
/** Initialization error if any */
error: Error | null;
/** Account information */
account: AccountInfo | null;
/** Whether account info is loading */
isLoadingAccount: boolean;
/** Error loading account info */
accountError: Error | null;
/** Refresh account information */
refreshAccount: () => Promise<void>;
/** EOA address (MetaMask, etc) that owns the smart account */
ownerAddress: string | null;
/** Disconnect the wallet and clear all state */
disconnectWallet: () => void;
}
/**
* Main hook for accessing SBC App Kit functionality
*/
export declare function useSbcApp(): UseSbcAppReturn;
//# sourceMappingURL=useSbcApp.d.ts.map