• Create a connector for the EIP-1193 provider.

    Parameters

    Returns {
        getProvider: () => EIP1193Provider;
        chainIdtoNetwork(chainId: string): undefined | Network;
        connect(
            options?: { network?: Network },
        ): Promise<{ accounts: string[]; network: undefined | Network }>;
        disconnect(): Promise<void>;
        getAccounts(): Promise<string[]>;
        getChainId(): Promise<string>;
        onAccountsChanged(accounts: string[]): void;
        onChainChanged(chainId: string): void;
        onConnect(): Promise<void>;
        onDisconnect(): void;
        permissions(): Promise<{ snap: boolean; wallet: boolean }>;
        setup(): { getProvider: () => EIP1193Provider; setup(): ...; connect(options?: { network?: Network | undefined; }): Promise<{ accounts: string[]; network: Network | undefined; }>; ... 9 more ...; onDisconnect(): void; };
        switchChain(network?: undefined | Network): Promise<Network>;
    }

    • getProvider: () => EIP1193Provider
    • chainIdtoNetwork:function
      • Parameters

        • chainId: string

        Returns undefined | Network

        Returns mainnet, testnet or undefined if not a filecoin chain

    • connect:function
      • Parameters

        • options: { network?: Network } = {}

        Returns Promise<{ accounts: string[]; network: undefined | Network }>

    • disconnect:function
    • getAccounts:function
    • getChainId:function
    • onAccountsChanged:function
    • onChainChanged:function
    • onConnect:function
    • onDisconnect:function
    • permissions:function
    • setup:function
      • Returns { getProvider: () => EIP1193Provider; setup(): ...; connect(options?: { network?: Network | undefined; }): Promise<{ accounts: string[]; network: Network | undefined; }>; ... 9 more ...; onDisconnect(): void; }

    • switchChain:function
      • Parameters

        • network: undefined | Network = currentNetwork

        Returns Promise<Network>