Function getSigner

  • Request a signer object from the global ethereum object.

    Parameters

    • Optional external: ExternalProvider

      A valid external provider. Defaults to globalThis.ethereum if not provided.

    Returns Promise<Signer>

    A promise that resolves to a valid web3 provider/signer

    Throws

    If no global ethereum object is available.

Generated using TypeDoc