vinliao / hub-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Farcaster Hub Proxy

A proxy to fetch data from Farcaster Hub. It provides all read-only functions from hub-nodejs as APIs. Please note that this is only a temporary solution and will be replaced by language-specific packages and modules to talk to Farcaster Hub.

Please head to index.js to see the available endpoints. All the functions are well-documented, you should be able to get up and running quickly.

Example usage:

curl --request POST \
  --url https://hub-proxy-production.up.railway.app/get-reactions-by-cast \
  --header 'Content-Type: application/json' \
  --data '{
    "reactionType": "REACTION_TYPE_LIKE",
    "castId": {
      "fid": 2,
      "hash": "ee04762bea3060ce3cca154bced5947de04aa253"
    }
  }'

To deploy the proxy pointing at your own Hub, put a MAINNET_HUB_RPC_URL in your .env file.

About

License:MIT License


Languages

Language:JavaScript 98.8%Language:Dockerfile 1.2%