CLI Arguments
Overview
Old Faithful ships with an RPC server that supports gRPC and JSON-RPC.
Command line
The RPC server is available via the faithful-cli rpc
command.
The command accepts a list of epoch config files and dirs as arguments. Each config file is specific for an epoch and provides the location of the block/transaction data and the indexes for that epoch. The indexes are used to map Solana block numbers, transaction signatures, and addresses to their respective CIDs. The indexes are generated from the CAR file and can be generated via the faithful-cli index
command (see Index generation).
It supports the following flags:
--listen
: The address to listen on, e.g.--listen=:8888
--include
: You can specify one or more (reuse the same flag multiple times) glob patterns to include files or dirs that match them, e.g.--include=/path/epoch-*.yml
.--exclude
: You can specify one or more (reuse the same flag multiple times) glob patterns to exclude files or dirs that match them, e.g.--exclude=/something-*/epoch-*.yml
.--debug
: Enable debug logging.--proxy
: Proxy requests to a downstream RPC server if the data can't be found in the archive, e.g.--proxy=/path/to/my-rpc.json
. See RPC server proxying for more details.--gsfa-only-signatures
: When enabled, the RPC server will only return signatures for getSignaturesForAddress requests instead of the full transaction data.--watch
: When specified, all the provided epoch files and dirs will be watched for changes, and the RPC server will automatically reload the data when changes are detected. Usage:--watch
(boolean flag). This is useful when you want to provide just a folder and add new epochs to it without restarting the server.--epoch-load-concurrency=2
: Epochs to load in parallel when starting the RPC server. Defaults to the number of CPUs. This is useful when you have a lot of epochs and want to speed up the initial load time.--max-cache=<megabytes>
: Memory to use for caching. Defaults to 0 (no limit). This is useful when you want to limit the memory usage of the RPC server.
Last updated