getCapabilities

Get the capabilities of a wallet based on the EIP-5792 specification.

This function is dependent on the wallet's support for EIP-5792, but will not throw. The returned object contains a message field detailing any issues with the wallet's support for EIP-5792.

Example

import { getCapabilities } from "thirdweb/wallets/eip5792";
const wallet = createWallet("com.coinbase.wallet");
const capabilities = await getCapabilities({ wallet });
function getCapabilities(
options: GetCapabilitiesOptions<ID>,

Parameters

Type

let options: GetCapabilitiesOptions<ID>;

Returns

let returnType: Prettify<
>;
  • A promise that resolves to the capabilities of the wallet based on the EIP-5792 spec.