Yellowstone Fumarole CLI
Fumarole CLI tool
Install
Usage
)
Configuration file
Here's how to configure your config file:
endpoint: https://fumarole.endpoint.rpcpool.com
x-token: 00000000-0000-0000-0000-000000000000
You can test your configuration file with test-config subcommand:
By default, if you don't provide --config, fumarole CLI will use the value at FUMAROLE_CONFIG environment variable if set,
otherwise fallback to ~/.fumarole/config.yaml.
Enabling ZSTD compression
If you plan to subscribe to a lot of data or if your internet connection has high latency, you should enable ZSTD compression like so:
endpoint: https://fumarole.endpoint.rpcpool.com
x-token: 00000000-0000-0000-0000-000000000000
response_compression: zstd
Create a Persistent Subscriber
To create a persistent subscriber at the tip of Fumarole's log:
To replay from a slot, query the slot-range and pick a slot within the slot range:
Then you can use --initial-offset-policy with --from-slot options:
Note: The option --from-slot is only interpreted if you set --initial-offset-policy 'from-slot, otherwise it is ignored.
List all persistent subscribers
| | | |
| | | |
| | | |
The stale column indicates if your persistent subscriber fell behind the fumarole log.
Delete a persistent subscribers
Delete all persistent subscribers
Stream summary on terminal
To stream out from the CLI, you can use the stream command and its various features!
Filters
You can filter by event type : account, transaction, slot status and block meta:
You can also filter incoming Geyser events by account pubkeys, account owners and transaction account inclusion.
Here is an example to get all account updates owned by Token SPL program:
Here is how to chain multiple filters together:
The above command stream all data required by DAS.
Note: This command serves more as a testing tool/playground for you to try it out as it only prints summarized data.
Parallel subscription
By default, fumarole CLI tool only open one TCP connection to Fumarole service. In case you need to subscribe to a lot of traffic, enabling parallel TCP connections will help alot with performance.
Enabling Prometheus metrics
When subscribing, you can enable prometheus metrics and bind to a port to view fumarole related metrics into HTML format.
Using --prometheus 0 this will bind to a random port on 127.0.0.1.
You can specify the address like this: