Local deployment without Docker
Firehose Starknet local deployment without Docker
Last updated
Firehose Starknet local deployment without Docker
Last updated
Tip: is recommended for easier setup and maintenance.
This guide walks you through installing firehose-starknet
and the instrumented pathfinder
node from source, and demonstrates running the Firehose stack without using Docker.
You need these to get started:
1.21 or higher
A reasonably recent version of
pathfinder
To install the instrumented pathfinder
(v0.10.2) from source, simply run this cargo
command:
Tip: You can uninstall later it with:
Verify that the pathfinder
command is now available:
Tip: If the command is not found, make sure the directory $HOME/.cargo/bin
is in your PATH
environment variable.
firehose-starknet
To install firehose-starknet
(v0.2.1) from source, first clone the repository anywhere you like:
Then change directory into the repository:
Make sure you're checked out to the desired version (v0.2.1):
And run the installation command:
The firehose-starknet
application is available as the firestark
command. Verify that it's been installed successfully:
Tip: If the command is not found, make sure the directory $HOME/go/bin
(or $GOPATH/bin
) is in your PATH
environment variable.
First of all, a new data directory should be created for persisting Firehose and node data. This can be any folder you want, here we create a firestark-data
folder in the current working directory:
Then, make 4 sub-directories inside it to store data from different components:
Now run the following firestark
command, where YOUR_ETHEREUM_URL
must be replaced with your own URL for Ethereum Mainnet RPC, to bring up the whole stack:
Once the process is up and running, the Firehose stack will start producing blocks. You can verify that it's working by running this grpcurl
command:
The grpcurl
command subscribes to the block stream, and you should be able to see new blocks being printed to the console as they become available.
Tip: You need to have installed for this command to work.