Skip to main content
If your goal is to get started as quickly as possible, consider a managed service like Neynar instead of running your own node.

Requirements

  • 16 GB of RAM
  • 4 CPU cores or vCPUs
  • 2 TB of free storage
  • A public IP address with ports 3381 - 3383 exposed

Sync a node

The easiest way to run Snapchain is using Docker. Once installed, run the following commands in a new folder
Check the docker logs to ensure that the snapshot is being downloaded.
Snapshots are about 200 GB in size and may take a few hours to sync and decompress. Once complete, you should see logs like this:
It will take a few hours for the node to sync. You can monitor it by running:

Query a node

Once the node is in sync you can start querying it for the latest messages from a user. You’ll need the user’s account id to get their messages. If you don’t have this handy, you can do a lookup by username from the public Farcaster name server.
The @farcaster user’s account id is 1, and so you can fetch the latest messages by querying the node over its HTTP API: