Pre-requisites - Read only access to a Snapchain node
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.
# Default http port is 3381
$ curl http://localhost:3381/v1/castsByFid\?fid\=1 | jq ".messages[].data.castAddBody.text | select( . != null)"
"testing"
"test"
"another test"
"another testy test"
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.getCastsByFid({fid: 1})
Ok {
value: {
messages: [ [Object], [Object], [Object], [Object] ],
nextPageToken: <Buffer >
}
}
> res.value.messages.map( m => m.data.castAddBody.text)
[ 'testing', 'test', 'another test', 'another testy test' ]
Was this page helpful?