Docs

injectedProvider

Get Injected Provider for given wallet by passing a wallet ID (rdns) using EIP-6963 Provider Discovery.

Example

import { injectedProvider } from "thirdweb/wallets";
const metamaskProvider = injectedProvider("io.metamask");
if (metamaskProvider) {
console.log("Metamask is installed");
}

Parameters

Returns

The details of the Injected Provider if it exists. undefined otherwise.