description |
---|
Consume Pyth Network prices in applications on Cosmwasm |
Cosmwasm contracts can update and fetch the Pyth prices using the Pyth Cosmwasm Contract, deployed on their network. The documented source code can be found here.
The mechanism by which price feeds are updated on Cosmwasm is explained here. The pyth-common-js can be used to fetch the latest price feed data which then can be passed to the ExecuteMsg
, on-chain function.
- Minimal on-chain contract which queries the pyth contract.
Pyth is currently available on the following cosmwasm chains:
Network | Contract address |
---|---|
Injective | inj1z60tg0tekdzcasenhuuwq3htjcd5slmgf7gpez |
Network | Available Price Feeds |
---|---|
Cosmwasm Testnet | https://pyth.network/developers/price-feed-ids#cosmwasm-testnet |