重磅交互:a16z领投3000万美金farcaster协议

Farcaster 是一个足够分散的社交网络。它是一个可以支持许多客户端的开放协议,就像电子邮件一样。用户将可以自由地在应用程序之间移动其社交身份,开发人员可以自由地在网络上构建具有新功能的应用程序。

post image

步骤1

在交互之前需要先注册两个账号 1. Alchemy.com 2.replit 使用谷歌账号注册即可。

  1. 登入Alchemy.com

post image
post image
post image

post image
post image
post image
post image
post image
post image
post image

接下来打开replit

post image
post image
post image

npm install ethers got@11.8.2 复制这段代码黏贴到shell回车

注意:黏贴需要 Ctrl shift +V

post image

接下来打开Farcaster 官方文档

https://www.farcaster.xyz/docs/fetch-casts

第2步

找到step2,下图这段代码,点右上角copy。不要手动复制,可能会报错。

post image

将之前在Alchemy.com 保存的代码替换掉 xxxxxxxxxxxxxxxxxxxx

将修改后的代码黏贴到index.js , 点击run。左侧代码说明测试成功。

post image

第三步

接着找到官方文档中的step3,右上角copy。(不要手动复制,可能报错)

post image

将这段代码放到底部代码下方

console.log("最新的以太坊区块是:", block);

注意一定要放到 } 前面

post image

点击run,出现左侧代码说明测试成功

post image

第4步

接着找到官方文档中的step4,右上角copy.

将代码黏贴到step3代码下方, (注意:顺序不能错,否则也会报错)

post image

点击run,出现左侧代码说明测试成功

post image

第五步

操作同上

点击run,出现左侧代码说明测试成功

post image

第六步

操作同上

点击run,出现左侧代码说明测试成功

post image

第七步

操作同上

点击run,出现左侧代码

通过:0x012D3606bAe7aebF03a04F8802c561330eAce70A 拥有 v

说明交互已经完成

post image