See the contract reference docs for documentation on each EIP-712 signature, including Typescript code examples.If you’re using Typescript/JS, the @farcaster/hub-web package includes tools for generating and working with EIP-712 signatures. To ensure you’re using the correct addresses and typehashes, we recommend importing the ABIs and EIP-712 types from the contracts module or using the provided Eip712Signer helper.See the “Working with EIP-712 signatures” example app in the hub monorepo for a reference that demonstrates each signature and contract call.
To help debug EIP-712 signing, every contract that uses EIP-712 signatures exposes its domain separator and typehashes as constants along with a hashTypedDataV4 helper view. If you’re constructing signatures in Solidity or another low level language, you can use these to help debug.
What is an FID?An FID (Farcaster ID) is a unique identifier used to distinguish applications and users. With an FID, apps and users can be identified and differentiated.Why is an FID necessary?To create or post anything on the Farcaster platform, an FID is essential for identifying your app or user.How do I get one?You can register an app fid directly through the Bundler or IdGateway, or use a Farcaster client to register an account for your app. Since you’ll need to sign key request metadata from the wallet that owns your app fid, keep the private key secure.