Skip to content
LogoLogo

eth_signTypedData_v4

Signs EIP-712 typed data.

Request

type Request = {
  method: "eth_signTypedData_v4";
  params: [
    /** Address of the signer. */
    address: `0x${string}`,
    /** Serialized typed data to sign. */
    data: string
  ];
};

Response

Signature.

type Response = `0x${string}`;

Example

import RapidfireID from "@rapidfire/id";
 
const rapidfire = new RapidfireID();
const provider = rapidfire.getEthereumProvider();
 
const signature = await provider.request({
  method: "eth_signTypedData_v4",
  params: ["0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef", "..."],
});