You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: pyth-evm-js/README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Pyth prices and submit them to the network:
26
26
27
27
```typescript
28
28
const connection =newEvmPriceServiceConnection(
29
-
"https://prices.testnet.pyth.network"
29
+
"https://xc-testnet.pyth.network"
30
30
); // See Price Service endpoints section below for other endpoints
31
31
32
32
const priceIds = [
@@ -97,7 +97,7 @@ There are two examples in [examples](./src/examples/).
97
97
[This example](./src/examples/EvmPriceServiceClient.ts) fetches `PriceFeed` updates using both a HTTP-request API and a streaming websocket API. You can run it with `npm run example-client`. A full command that prints BTC and ETH price feeds, in the testnet network, looks like so:
98
98
99
99
```bash
100
-
npm run example-client -- --endpoint https://prices.testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
100
+
npm run example-client -- --endpoint https://xc-testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
You can run this example with `npm run example-relay`. A full command that updates BTC and ETH prices on the BNB Chain testnet network looks like so:
112
112
113
113
```bash
114
-
npm run example-relay -- --network bnb_testnet --mnemonic "my good mnemonic" --endpoint https://prices.testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
114
+
npm run example-relay -- --network bnb_testnet --mnemonic "my good mnemonic" --endpoint https://xc-testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
115
115
```
116
116
117
117
## How Pyth Works on EVM Chains
@@ -128,7 +128,7 @@ Price updates are not submitted on the EVM networks automatically: rather, when
128
128
129
129
Public endpoints for the Price Service are provided for both mainnet and testnet. These can be used regardless of which network you deploy your own contracts to as long as it is a Pyth supported network. For example, you can use the testnet Price Service whether you are deploying your contract to the BNB or Polygon testnet.
Copy file name to clipboardExpand all lines: pyth-terra-js/README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Pyth prices before submitting them to Terra:
26
26
27
27
```typescript
28
28
const connection =newTerraPriceServiceConnection(
29
-
"https://prices.testnet.pyth.network"
29
+
"https://xc-testnet.pyth.network"
30
30
); // See Price Service endpoints section below for other endpoints
31
31
32
32
const priceIds = [
@@ -76,7 +76,7 @@ There are two examples in [examples](./src/examples/).
76
76
[This example](./src/examples/TerraPriceServiceClient.ts) fetches `PriceFeed` updates using both a HTTP-request API and a streaming websocket API. You can run it with `npm run example-client`. A full command that prints BTC and LUNA price feeds, in the testnet network, looks like so:
77
77
78
78
```bash
79
-
npm run example-client -- --endpoint https://prices.testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
79
+
npm run example-client -- --endpoint https://xc-testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
You can run this example with `npm run example-relay`. A full command that updates BTC and LUNA prices on the testnet network looks like so:
91
91
92
92
```bash
93
-
npm run example-relay -- --network testnet --mnemonic "my good mnemonic" --endpoint https://prices.testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
93
+
npm run example-relay -- --network testnet --mnemonic "my good mnemonic" --endpoint https://xc-testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
94
94
```
95
95
96
96
## How Pyth Works in Terra
@@ -107,7 +107,7 @@ Price updates are not submitted on the Terra network automatically: rather, when
107
107
108
108
Public endpoints for the Price Service are provided for both mainnet and testnet. These can be used regardless of which network you deploy your own contracts to as long as it is a Pyth supported network. For example, you can use the testnet Price Service whether you are deploying your contract to the BNB or Polygon testnet.
0 commit comments