go back to the wallet selector screen in connect wallet modal
temporarily hide the ConnectModal This is useful when you want to open another modal and do not want to show the ConnectModal in the background
indicates whether the connect wallet modal is open or not
Size of the modal
This is always compact
on React Native
Optional
onCalled when the wallet is connected but it's part of another wallet's connection flow.
the instance of the connected wallet
selectionData passed from selectUI
's onSelect
function
set selectionData
show the hidden connect wallet modal again
List of all supported wallets including your wallet.
theme of the connect wallet modal
WalletConfig
object of your wallet
you can use this to connect to your wallet
useConnect
hook const connect = useConnect();
// call this function to connect to your wallet
async function handleConnect() {
await connect(walletConfig, options);
}
OR
const createWalletInstance = useCreateWalletInstance();
const setConnectedWallet = useSetConnectedWallet();
const setConnectionStatus = useSetConnectionStatus();
// call this function to connect to your wallet
async function handleConnect() {
// create instance
const walletInstance = createWalletInstance(walletConfig);
// connect wallet
setConnectionStatus('connecting);
try {
await walletInstance.connect(options);
// set connected wallet
setConnectedWallet(walletInstance);
} catch {
setConnectionStatus('disconnected');
}
}
Generated using TypeDoc
when the wallet is connected, call this function to indicate that the wallet is connected and it is safe to close the Modal