signKeyRequest

Signs a key request message using EIP-712 typed data signing. This function prepares the data for signing, signs it with the provided account, and returns the signature.

Example

const message = {
requestFid: 123456789n,
key: "0x04bfc...",
deadline: 1657758061n,
};
const signature = signKeyRequest({ account: signerAccount, message });
function signKeyRequest(options: SignKeyRequestOptions): Promise<Hex>;

Parameters

The options for signing the key request, including the account and the message.

Type

let options: SignKeyRequestOptions;

Returns

let returnType: `0x${string}`;

A promise that resolves to the signature of the key request.