@@ -54,16 +54,18 @@ npm run start -- evm --endpoint wss://example-rpc.com \
5454 --price-service-endpoint https://example-pyth-price.com \
5555 --price-config-file "path/to/price-config-file.yaml.testnet.sample.yaml" \
5656 --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]
5960
6061# For Injective
6162npm run start -- injective --grpc-endpoint https://grpc-endpoint.com \
6263 --pyth-contract-address inj1z60tg0... --price-service-endpoint "https://example-pyth-price.com" \
6364 --price-config-file "path/to/price-config-file.yaml.testnet.sample.yaml" \
6465 --mnemonic-file "path/to/mnemonic.txt" \
65- [--cooldown-duration 10] \
66- [--polling-frequency 5]
66+ [--pushing-frequency 10] \
67+ [--polling-frequency 5] \
68+
6769
6870# Or, run the price pusher docker image instead of building from the source
6971docker run public.ecr.aws/pyth-network/xc-price-pusher:v<version> -- <above-arguments>
@@ -82,11 +84,11 @@ npm run start -- {network} --help
8284
8385### Example
8486
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:
8688
8789``` sh
8890npm 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 \
9092 --mnemonic-file " ./mnemonic" --price-config-file " ./price-config.testnet.sample.yaml"
9193```
9294
@@ -125,3 +127,13 @@ docker-compose -f docker-compose.testnet.sample.yaml up
125127It will take a few minutes until all the services are up and running.
126128
127129[ 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