Optionalconfig: ConnectWalletOptionsWallet configuration
EIP-1193 compliant provider with multi-chain support
If getUser is not provided, a default implementation using @imtbl/auth will be created.
import { connectWallet } from '@imtbl/wallet';
import { useImmutableSession } from '@imtbl/auth-next-client';
const { getUser } = useImmutableSession();
const provider = await connectWallet({ getUser });
import { connectWallet } from '@imtbl/wallet';
// Uses default Immutable-hosted authentication
const provider = await connectWallet();
const accounts = await provider.request({ method: 'eth_requestAccounts' });
Connect wallet with the provided configuration