RPC Method eth_signTypedDataV4 implementation

  • Parameters

    • thorClient: ThorClient

      The thor client instance to use.

    • params: unknown[]

      The standard array of rpc call parameters. * params[0]: The hex encoded address of the account to sign the typed message. * params[1] An object or a JSON string containing: * types - An array of EIP712Domain object. It is an array specifying one or more (name, version, chainId, verifyingContract) tuples. * domain - Contains the domain separator values specified in the EIP712Domain type. * primaryType: A string specifying the name of the primary type for the message. * message: An object containing the data to sign.

    • Optionalprovider: VeChainProvider

      The provider instance to use.

    Returns Promise<string>