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
`query_price_feed` makes a query to the Pyth Network Terra contract
32
+
`query_price_feed` makes a query to the Pyth Network CosmWasm contract
33
33
This query requires a price feed id that indicates the product whose price should be returned.
34
34
Each product listed on Pyth Network (e.g., BTC/USD) has its own price feed id; see the [Contracts and Price Feeds](#contracts-and-price-feeds) section below for the possible products and their price feed ids.
35
35
The result of the query is a `PriceFeed` struct which contains the current price of the product along with additional metadata.
36
36
This struct also has some useful functions for manipulating and combining prices; see the [common SDK documentation](../pyth-sdk) for more details.
37
37
38
38
## Off-Chain Queries
39
39
40
-
You can use the provided schemas in the `schema` directory to directly query the terra contract from off-chain applications.
40
+
You can use the provided schemas in the `schema` directory to directly query the CosmWasm contract from off-chain applications.
41
41
A typical query requires to pass the price feed id as a hex string. it will look like:
42
42
43
43
```
@@ -52,9 +52,9 @@ By going to the contract address in [Terra Finder](https://finder.terra.money/)
52
52
53
53
## Contracts and Price Feeds
54
54
55
-
Pyth is currently only available in Terra testnet.
55
+
Pyth is currently only available in Terra Classic testnet.
56
56
57
-
### Testnet
57
+
### Terra Classic testnet
58
58
59
59
The contract address is [`terra1wzs3rgzgjdde3kg7k3aaz6qx7sc5dcwxqe9fuc`](https://finder.terra.money/testnet/address/terra1wzs3rgzgjdde3kg7k3aaz6qx7sc5dcwxqe9fuc).
0 commit comments