Docs

getCapabilities

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

Note: 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 });

Parameters

Returns

  • A promise that resolves to the capabilities of the wallet based on the EIP-5792 spec.