Skip to content

Instantly share code, notes, and snippets.

View gregfromstl's full-sized avatar
💻

greg gregfromstl

💻
View GitHub Profile
@gregfromstl
gregfromstl / update-metadata.ts
Created May 1, 2024 06:56
Bulk update token metadata
import {
createThirdwebClient,
type Address,
getContract,
prepareContractCall,
sendAndConfirmTransaction,
} from "thirdweb";
import { privateKeyToAccount } from "thirdweb/wallets";
import { upload } from "thirdweb/storage";
import { sepolia } from "thirdweb/chains";
@gregfromstl
gregfromstl / registerFidAndSigner.ts
Created May 2, 2024 01:00
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 =
@gregfromstl
gregfromstl / CustomConnectButton.tsx
Last active July 3, 2024 20:54
Wagmi + Thirdweb ConnectButton
'use client';
import React from "react";
import {
Connector,
createConnector,
useConfig,
} from "wagmi";
import {
ConnectButton,
} from "thirdweb/react";