OKX Wallet
Prompt users to connect to their OKX wallet.
Usage
import { OKXWallet } from "@thirdweb-dev/wallets";
const wallet = new OKXWallet();
wallet.connect();
Configuration
Optionally, provide a configuration object when instantiating the OKXWallet
class.
projectId (recommended)
This is only relevant if you want to use WalletConnect for connecting to OKX 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 { OKXWallet } from "@thirdweb-dev/wallets";
const wallet = new OKXWallet(
{
projectId: "YOUR_WALLET_CONNECT_PROJECT_ID",
},
);
recommended (optional)
Show this wallet as "recommended" in the ConnectWallet Modal.
OKXWallet({
recommended: true,
});
Methods
Inherits all the public methods from the AbstractClientWallet
class.