Function recoverTypedSignature

  • Recover the address of the account that created the given EIP-712 signature. The version provided must match the version used to create the signature.

    Type Parameters

    Parameters

    • options: {
          data: V extends "V1"
              ? TypedDataV1
              : TypedMessage<T>;
          signature: string;
          version: V;
      }

      The signature recovery options.

      • data: V extends "V1"
            ? TypedDataV1
            : TypedMessage<T>

        The typed data that was signed.

      • signature: string

        The '0x-prefixed hex encoded message signature.

      • version: V

        The signing version to use.

    Returns string

    The '0x'-prefixed hex address of the signer.