Connect
// Some where within your codebase...
const { actions, session, accounts } = useProvider();
const response = await actions.connect()Inputs (Optional)
{
chain: string;
pairing?: { topic: string };
openModal?: boolean;
}Return Type
Promise<{
data: SessionTypes.Struct || null
error: Error || null
}>Example usage:
Last updated