Crypto.com Defi Wallet
Prompt users to connect to their Defi wallet.
Usage
import { CryptoDefiWallet } from "@thirdweb-dev/wallets";
const wallet = new CryptoDefiWallet();
wallet.connect();
Configuration
Optionally, provide a configuration object when instantiating the CryptoDefiWallet
class.
projectId (recommended)
This is only relevant if you want to use WalletConnect for connecting to Defi wallet mobile app when MetaMask is not injected.
This projectId
can be obtained at cloud.walletconnect.com. It is highly recommended to use your own project id and only use the default one for testing purposes.
import { CryptoDefiWallet } from "@thirdweb-dev/wallets";
const wallet = new CryptoDefiWallet(
{
projectId: "YOUR_WALLET_CONNECT_PROJECT_ID",
},
);
recommended (optional)
Show this wallet as "recommended" in the ConnectWallet Modal.
CryptoDefiWallet({
recommended: true,
});
Methods
Inherits all the public methods from the AbstractClientWallet
class.