Pre-requisites - Read only access to a Snapchain instance
userDataByFid endpoint:
console. This will use the grpc APIs
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
userDataByFid endpoint:
$ curl http://localhost:3381/v1/userDataByFid\?fid\=1 | jq ".messages[].data.userDataBody"
{
"type": "USER_DATA_TYPE_PFP",
"value": "https://i.imgur.com/I2rEbPF.png"
}
{
"type": "USER_DATA_TYPE_BIO",
"value": "A sufficiently decentralized social network. farcaster.xyz"
}
{
"type": "USER_DATA_TYPE_DISPLAY",
"value": "Farcaster"
}
{
"type": "USER_DATA_TYPE_USERNAME",
"value": "farcaster"
}
console. This will use the grpc APIs
# Ensure you are in the hubble sub directory
$ cd apps/hubble
# Remove `--insecure` if the host is using TLS
$ yarn console --insecure -s localhost:3383
> res = await rpcClient.getUserDataByFid({fid: 1})
Ok {
value: {
messages: [ [Object], [Object], [Object], [Object] ],
nextPageToken: <Buffer >
}
}
> res.value.messages.map(m => m.data.userDataBody)
[
{ type: 1, value: 'https://i.imgur.com/I2rEbPF.png' },
{
type: 3,
value: 'A sufficiently decentralized social network. farcaster.xyz'
},
{ type: 2, value: 'Farcaster' },
{ type: 6, value: 'farcaster' }
]
Was this page helpful?