Function useRequestAccounts
- useRequestAccounts(): {
appName: string | undefined;
isLoading: boolean;
isAuthenticated: boolean;
isReady: boolean;
user: User | undefined;
onAccept: (() => Promise<void>);
onDeny: (() => Promise<void>);
error: string | null;
requestAccountsData: Authentication | null;
details: AppMetadata | null;
configureEmbeddedWallet: (({ chain, password }: {
chain: number;
password?: string;
}) => Promise<UserProfile | null>);
} Returns {
appName: string | undefined;
isLoading: boolean;
isAuthenticated: boolean;
isReady: boolean;
user: User | undefined;
onAccept: (() => Promise<void>);
onDeny: (() => Promise<void>);
error: string | null;
requestAccountsData: Authentication | null;
details: AppMetadata | null;
configureEmbeddedWallet: (({ chain, password }: {
chain: number;
password?: string;
}) => Promise<UserProfile | null>);
}
appName: string | undefined
isLoading: boolean
isAuthenticated: boolean
isReady: boolean
user: User | undefined
onAccept: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
onDeny: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
error: string | null
configureEmbeddedWallet: (({ chain, password }: {
chain: number;
password?: string;
}) => Promise<UserProfile | null>)
- ({ chain, password }): Promise<UserProfile | null>
Parameters
- { chain, password }: {
chain: number;
password?: string;
}chain: number
Optional
password?: string
Returns Promise<UserProfile | null>