You are viewing a single comment's thread from:

RE: Farcaster开发指南

in #starnote13 hours ago

The example shows you how to:
https://github.com/farcasterxyz/hub-monorepo/tree/main/packages/hub-nodejs/examples/hello-world

  • Make onchain transactions to create an account
  • Rent a storage unit so you can publish messages
  • Add an account key to sign messages
  • Acquire an fname for your account
  • Create, sign and publish messages
    该示例向您展示了如何
    进行链上交易以创建账户
    租用一个存储单元,以便发布消息
    添加账户密钥以签署信息
    为账户获取 fname
    创建、签署和发布消息

现在,我们将在密钥注册表中添加一个账户密钥。每个账户密钥都必须有一个已签名的元数据字段,该字段来自请求该密钥的应用程序的 fid。在本例中,我们将使用自己的 fid。请注意,这需要用持有 fid 的地址的私钥签署一条信息。如果无法做到这一点,请先为应用程序注册一个单独的 fid 并使用它。

当然,你也可以直接在Farcaster手机端进行注册!