Docs

getKeyRequestData

Prepares the data required for signing a key request using EIP-712 typed data signing. This includes the domain, types, primary type, and the message to be signed.

Example

const message = {
requestFid: 123456789n,
key: "0x04bfc...",
deadline: 1657758061n,
};
const eip712Data = getKeyRequestData(message);

Parameters

Returns

An object containing the domain, types, primary type, and the message for EIP-712 signing.