Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/airstack-xyz/farcaster-subgraph

Repo to index farcaster data
https://github.com/airstack-xyz/farcaster-subgraph

Last synced: about 21 hours ago
JSON representation

Repo to index farcaster data

Awesome Lists containing this project

README

        

# farcaster-subgraph
Repo to index farcaster data on Goerli

This Repo indexes Users on forcaster Dapp.
1. Every user will have fId
2. One user can have more than 1 fnames.

Subgraph is deployed here:
[https://thegraph.com/subgraphs/name/airstack-xyz/farcaster-goerli](https://thegraph.com/subgraphs/name/airstack-xyz/farcaster-goerli)

1. Query to get details of a user by id:
```
{
users(where:{id: "100"}) {
id
fId
address
url
fnames {
id
fname
tokenURI
createdAtBlock
createdAtTimestamp
}
createdAtBlock
createdAtTimestamp
}

}

```
Note: Change Id as required

2. Query to get list of users

```
{
users {
id
fId
address
url
fnames {
id
fname
tokenURI
createdAtBlock
createdAtTimestamp
}
createdAtBlock
createdAtTimestamp
}

}

```