fatline-rs
Farcaster Rust client library
A library project to re-export some common Farcaster client RPC code and utilities, so that someone could interface with their own Farcaster Hub.
Planned Features
- Wrap basic Hub client and expose specific functions at a higher level
- Users:
- Get all user info (name,username,bio,url,pfp url) for specific fid
- Get user signer validity info for specific fid
- Hub info:
- Get current registered fid count
- Get storage information (global/user)
- Probably more things as well
- Streams:
- Get all user casts by fid
- Get all fids
- Get all user link messages
- Get all user profile updates
- Get all user signer messages
- Get all user reactions
- Get all cast reactions
- Get all casts by parent
- Subscriptions:
- (WIP) Subscriptions for all new merged events from hub (for processing incoming updates of all types)
- Refactor everything to use the library specific types instead of relying on consumers to use the prost / protobuf types
- Implement macros for a lot of the repeated functions to make improvements easier
- Users:
Usage
Dependencies
Add the dependency to your project
# Cargo.toml
[]
= "https://github.com/0x330a-public/fatline-rs.git"
= ["client"]
= "00aabbccdd..." # latest github commit while in early dev
(Maybe the protobuf dependencies are required for the build script I'm not sure):
nixpkgs: protobuf
Usage in project
Setting up the environment for authenticated calls:
use ;
use ;
use CastAddBody as CABody;
use utils;
async
Updating your profile:
Making a post:
Creating a Farcaster account programmatically
Firstly, create an ed25519 Signing key if you don't have the bytes already to create one: (You can also use jesse for this)
use generate_signing_key;