Skip to content

Instantly share code, notes, and snippets.

@tommy-ca
tommy-ca / registerFidAndSigner.ts
Created May 22, 2024 19:54 — forked from gregfromstl/registerFidAndSigner.ts
Register a Farcaster FID and Signer
import { createThirdwebClient, simulateTransaction } from "thirdweb";
import { sendAndConfirmTransaction } from "thirdweb/transaction";
import { privateKeyToAccount } from "thirdweb/wallets";
import {
createEd25519Keypair,
registerFidAndSigner,
} from "thirdweb/extensions/farcaster";
import { optimism } from "thirdweb/chains";
const ANVIL_PRIVATE_KEY_A =