@@ -54,16 +54,18 @@ npm run start -- evm --endpoint wss://example-rpc.com \
54
54
--price-service-endpoint https://example-pyth-price.com \
55
55
--price-config-file "path/to/price-config-file.yaml.testnet.sample.yaml" \
56
56
--mnemonic-file "path/to/mnemonic.txt" \
57
- [--cooldown-duration 10] \
58
- [--polling-frequency 5]
57
+ [--pushing-frequency 10] \
58
+ [--polling-frequency 5] \
59
+ [--override-gas-price-multiplier 1.1]
59
60
60
61
# For Injective
61
62
npm run start -- injective --grpc-endpoint https://grpc-endpoint.com \
62
63
--pyth-contract-address inj1z60tg0... --price-service-endpoint "https://example-pyth-price.com" \
63
64
--price-config-file "path/to/price-config-file.yaml.testnet.sample.yaml" \
64
65
--mnemonic-file "path/to/mnemonic.txt" \
65
- [--cooldown-duration 10] \
66
- [--polling-frequency 5]
66
+ [--pushing-frequency 10] \
67
+ [--polling-frequency 5] \
68
+
67
69
68
70
# Or, run the price pusher docker image instead of building from the source
69
71
docker run public.ecr.aws/pyth-network/xc-price-pusher:v<version> -- <above-arguments>
@@ -82,11 +84,11 @@ npm run start -- {network} --help
82
84
83
85
### Example
84
86
85
- For example, to push ` BTC/USD ` and ` BNB/USD ` prices on BNB testnet, run the following command:
87
+ For example, to push ` BTC/USD ` and ` BNB/USD ` prices on Fantom testnet, run the following command:
86
88
87
89
``` sh
88
90
npm run dev -- evm --endpoint https://endpoints.omniatech.io/v1/fantom/testnet/public \
89
- --pyth-contract-address 0xd7308b14BF4008e7C7196eC35610B1427C5702EA --price-service-endpoint https://xc-testnet.pyth.network \
91
+ --pyth-contract-address 0xff1a0f4744e8582DF1aE09D5611b887B6a12925C --price-service-endpoint https://xc-testnet.pyth.network \
90
92
--mnemonic-file " ./mnemonic" --price-config-file " ./price-config.testnet.sample.yaml"
91
93
```
92
94
@@ -125,3 +127,13 @@ docker-compose -f docker-compose.testnet.sample.yaml up
125
127
It will take a few minutes until all the services are up and running.
126
128
127
129
[ pyth price service ] : https://github.com/pyth-network/pyth-crosschain/tree/main/price_service/server
130
+
131
+ ## Reliability
132
+
133
+ You can run multiple instances of the price pusher to increase the reliability. It is better to use
134
+ difference RPCs to get better reliability in case an RPC goes down. ** If you use the same payer account
135
+ in different pushers, then due to blockchains nonce or sequence for accounts, a transaction won't be
136
+ pushed twiced and you won't pay additional costs most of the time.** However, there might be some race
137
+ condiitons in the RPCs because they are often behind a load balancer than can sometimes cause rejected
138
+ transactions land on-chain. You can reduce the chances of additional cost overhead by reducing the
139
+ pushing frequency.
0 commit comments