Solana Pusher
Running a Solana Pusher with Crossbar
You can use the same container for crossbar as a pusher service for your Solana feeds.
Getting Started
Step 1: Add your payer key to the environment
Using a pusher will require transactions to be made on-chain at a regular cadence. Thus, a well funded key must be passed into the environment.
Step 2: Set the network
You have to pass in the Solana network you're targeting in order for the pusher to work.
Step 3: Select a Min Compute Unit Price and Maximum Compute Unit Price (optional)
It's getting harder to land regular transactions on solana without priority fees - thus, Switchboard cranks use dynamic fees. Unfortunately, even dynamic fee calculators can drift from what's landing on-chain. It can be helpful to set a minimum fee (and a maximum fee for cost-savings).
Step 4: Mount the Feeds to `/solana-feeds.json`
In order to specify the feeds that the crank has access to, you'll need to mount a JSON file, solana-feeds.json
to the root.
Step 5: Boot it up:
As soon as you get this environment set up for Crossbar, it should start running. If you don't see explorer links working, try bumping the min compute unit price. Also, don't forget to use a non-rate-limited Solana rpc as this crank will constantly poll for feed updates.
Last updated