Created
September 27, 2022 17:57
-
-
Save gsgalloway/49145dab5224d6ecbd545e905d1c88bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Farcaster, publishCast } from '@standard-crypto/farcaster-js'; | |
import { AlchemyProvider } from "@ethersproject/providers"; | |
import { Wallet } from "ethers"; | |
async function main() { | |
const provider = new AlchemyProvider("goerli") | |
const wallet = Wallet.fromMnemonic("words words words") | |
const farcaster = new Farcaster(provider); | |
const latestPost = await farcaster.getLatestActivityForUser("gavi"); | |
await publishCast(wallet, provider, "another reply to myself", latestPost); | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment