Docs

getRegisterData

Constructs the data required for signing a register message in the Farcaster ID Gateway. This includes the EIP-712 domain, types, and the message to be signed.

Example

import { getRegisterData } from "thirdweb/extensions/farcaster";
const data = getRegisterData(message);

Parameters

Returns

An object containing the EIP-712 domain, types, and the message, ready to be signed.