useWalletInfo

Returns the wallet info for the provided wallet id.

Example

import { useWalletInfo } from "thirdweb/react";
const { data: walletInfo } = useWalletInfo("io.metamask");
console.log("Walelt name", walletInfo?.name);
function useWalletInfo(
id: undefined | WalletId,
): UseQueryResult<WalletInfo, Error>;

Parameters

Type

let id: undefined | WalletId;

Returns

let returnType: UseQueryResult<WalletInfo, Error>;