RE: RE: Farcaster开发指南
You are viewing a single comment's thread from:

RE: Farcaster开发指南

Words
50
Reading
1 min
Listen
Play
8M

Neynar 是一个开发者平台,为在去中心化社交网络 Farcaster 协议上构建应用程序提供基础设施、应用程序编程接口 (API) 和工具。

yarn add @neynar/nodejs-sdk
//npm install @neynar/nodejs-sdk

import { NeynarAPIClient, Configuration } from "@neynar/nodejs-sdk"

const config = new Configuration({
  apiKey: "D8E054-dsxxxxx",
})

const neynarClient = new NeynarAPIClient(config)

const cast = async () => {
  try {
    const response = await neynarClient.publishCast({
      signerUuid: "f6d-xxx",
      text: `GM`
    });
    console.log(123, "response", response)

  } catch (error) {
    console.error(error)
  }
}
cast()
@lemooljiang: Neynar | Ecency