@@ -10,7 +10,7 @@ By default, Pyth does not automatically update the on-chain price every time the
10
10
instead, anyone can permissionlessly update the on-chain price prior to using it.
11
11
For more information please refer to [ this document] ( https://docs.pyth.network/documentation/how-pyth-works ) .
12
12
13
- Protocols integrating with can update the on-chain Pyth prices in two different ways.
13
+ Protocols integrating with Pyth can update the on-chain Pyth prices in two different ways.
14
14
The first approach is on-demand updates: package a Pyth price update together with each transaction that depends on it.
15
15
On-demand updates minimize latency and are more gas efficient, as prices are only updated on-chain when they are needed.
16
16
@@ -145,6 +145,33 @@ npm run start -- near \
145
145
[--pushing-frequency 10] \
146
146
[--polling-frequency 5]
147
147
148
+ # For Solana, using Jito (recommended)
149
+ npm run start -- solana \
150
+ --endpoint https://api.mainnet-beta.solana.com \
151
+ --keypair-file ./id.json \
152
+ --shard-id 1 \
153
+ --jito-endpoint mainnet.block-engine.jito.wtf \
154
+ --jito-keypair-file ./jito.json \
155
+ --jito-tip-lamports 100000 \
156
+ --jito-bundle-size 5 \
157
+ --price-config-file ./price-config.yaml \
158
+ --price-service-endpoint https://hermes.pyth.network/ \
159
+ --pyth-contract-address pythWSnswVUd12oZpeFP8e9CVaEqJg25g1Vtc2biRsT \
160
+ --pushing-frequency 30 \
161
+ [--polling-frequency 5]
162
+
163
+ # For Solana, using Solana RPC
164
+ npm run start -- solana \
165
+ --endpoint https://api.devnet.solana.com \
166
+ --keypair-file ./id.json \
167
+ --shard-id 1 \
168
+ --price-config-file ./price-config.yaml \
169
+ --price-service-endpoint https://hermes.pyth.network/ \
170
+ --pyth-contract-address pythWSnswVUd12oZpeFP8e9CVaEqJg25g1Vtc2biRsT \
171
+ --pushing-frequency 30 \
172
+ [--polling-frequency 5]
173
+
174
+
148
175
149
176
# Or, run the price pusher docker image instead of building from the source
150
177
docker run public.ecr.aws/pyth-network/xc-price-pusher:v<version> -- <above-arguments>
0 commit comments