• Wrap an EIP-1193 or EIP-2696 compatible provider with Sapphire encryption

    const provider = wrapEthereumProvider(window.ethereum);
    

    Type Parameters

    Parameters

    • upstream: P

      Provides a send() or request() function

    • Optional options: SapphireWrapOptions

      (optional) Re-use parameters from other providers

    Returns P

    Sapphire wrapped provider