@xylabs/sdk-react
    Preparing search index...

    Interface EthWalletApi

    An interface that includes methods defined in other EIP proposals that are wallet specific and not supported by an Ethereum Provider (i.e. BrowserProvider) directly.

    interface EthWalletApi {
        switchEthereumChain: (chainId: Brand) => Promise<void>;
        switchEthereumChainError?: Error;
    }

    Implemented by

    Index

    Properties

    switchEthereumChain: (chainId: Brand) => Promise<void>

    Switch the connected chain in the wallet according to EIP-3326 See - https://eips.ethereum.org/EIPS/eip-3326

    switchEthereumChainError?: Error